|
a |
|
b/setup.py |
|
|
1 |
"""Install package.""" |
|
|
2 |
import codecs |
|
|
3 |
import os |
|
|
4 |
|
|
|
5 |
from setuptools import find_packages, setup |
|
|
6 |
|
|
|
7 |
|
|
|
8 |
def read(rel_path): |
|
|
9 |
here = os.path.abspath(os.path.dirname(__file__)) |
|
|
10 |
with codecs.open(os.path.join(here, rel_path), 'r') as fp: |
|
|
11 |
return fp.read() |
|
|
12 |
|
|
|
13 |
|
|
|
14 |
def get_version(rel_path): |
|
|
15 |
for line in read(rel_path).splitlines(): |
|
|
16 |
if line.startswith('__version__'): |
|
|
17 |
delim = '"' if '"' in line else "'" |
|
|
18 |
return line.split(delim)[1] |
|
|
19 |
else: |
|
|
20 |
raise RuntimeError('Unable to find version string.') |
|
|
21 |
|
|
|
22 |
|
|
|
23 |
setup( |
|
|
24 |
name='paccmann_predictor', |
|
|
25 |
version=get_version('paccmann_predictor/__init__.py'), |
|
|
26 |
description=('PyTorch implementation of PaccMann'), |
|
|
27 |
long_description=open('README.md').read(), |
|
|
28 |
long_description_content_type='text/markdown', |
|
|
29 |
url='https://github.com/PaccMann/paccmann_predictor', |
|
|
30 |
author='Ali Oskooei, Jannis Born, Matteo Manica, Joris Cadow', |
|
|
31 |
author_email=( |
|
|
32 |
'ali.oskooei@gmail.com, jab@zurich.ibm.com, ' |
|
|
33 |
'drugilsberg@gmail.com, joriscadow@gmail.com' |
|
|
34 |
), |
|
|
35 |
install_requires=[ |
|
|
36 |
'numpy', |
|
|
37 |
'scipy', |
|
|
38 |
'torch>=1.0.0', |
|
|
39 |
'pandas', |
|
|
40 |
'tqdm', |
|
|
41 |
'rdkit', |
|
|
42 |
'pytoda>=1.1.5', |
|
|
43 |
], |
|
|
44 |
packages=find_packages('.'), |
|
|
45 |
zip_safe=False, |
|
|
46 |
) |