-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathsetup.py
44 lines (39 loc) · 1.11 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
from pathlib import Path
from setuptools import find_packages, setup
def get_version(fname=Path.cwd().joinpath("rxnrep", "__init__.py")):
with open(fname) as fin:
for line in fin:
line = line.strip()
if "__version__" in line:
v = line.split("=")[1]
if "'" in v:
version = v.strip("' ")
elif '"' in v:
version = v.strip('" ')
break
return version
setup(
name="rxnrep",
version=get_version(),
packages=find_packages(),
install_requires=[
"numpy",
"scikit-learn",
"requests",
"pyyaml",
"pytorch-lightning",
"hydra-core",
"pandas",
],
author="Mingjian Wen",
author_email="[email protected]",
url="https://github.com/mjwen/rxnrep",
description="short description",
long_description="long description",
classifiers=[
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Operating System :: OS Independent",
],
zip_safe=False,
)