-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathsetup.py
38 lines (34 loc) · 1.23 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
from setuptools import setup, find_packages
from pathlib import Path
def get_version(fname=Path.cwd().joinpath("bondnet", "__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="bondnet",
version=get_version(),
packages=find_packages(),
entry_points={"console_scripts": ["bondnet = bondnet.scripts.predict_cli:cli"]},
install_requires=["numpy", "pyyaml", "scikit-learn", "click"],
author="Mingjian Wen",
author_email="[email protected]",
url="https://github.com/mjwen/bondnet",
description="short description",
long_description="long description",
classifiers=[
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"License :: OSI Approved :: Common Development and Distribution License 1.0 (CDDL-1.0)",
"Operating System :: OS Independent",
],
zip_safe=False,
)