forked from mordred-descriptor/mordred
-
Notifications
You must be signed in to change notification settings - Fork 2
/
setup.py
51 lines (40 loc) · 1.34 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
45
46
47
48
49
50
51
import io
import os
import sys
from setuptools import setup, find_packages
install_requires = ["six==1.*", "numpy==1.*", "networkx==2.*"]
if sys.version_info < (3, 4, 0):
install_requires.append("enum34")
def get_version():
with open(os.path.join("mordred", "_version.txt")) as f:
return f.read().strip()
def get_test_data():
for p, _, fs in os.walk(os.path.join("mordred", "tests", "references")):
p = p.split(os.sep)[2:]
for f in fs:
yield os.path.join(*(p + [f]))
README_rst = ""
fndoc = os.path.join(os.path.dirname(__file__), "README.rst")
with io.open(fndoc, mode="r", encoding="utf-8") as fd:
README_rst = fd.read()
setup(
name="mordred",
version=get_version(),
description="molecular descriptor calculator",
long_description=README_rst,
license="BSD-3-Clause",
author="Hirotomo Moriwaki",
author_email="[email protected]",
url="https://github.com/mordred-descriptor/mordred",
platforms=["any"],
keywords="QSAR chemoinformatics",
packages=find_packages(),
package_data={
"mordred": ["data/*.txt", "_version.txt"],
"mordred.tests": list(get_test_data()),
},
install_requires=install_requires,
tests_require=["nose==1.*", "PyYaml>=4.2b1"],
extras_require={"full": ["pandas", "tqdm"]},
cmdclass={"test": None},
)