forked from molinfo-vienna/cypstrate
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
63 lines (59 loc) · 1.84 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
52
53
54
55
56
57
58
59
60
61
62
63
from setuptools import find_packages, setup
# some RDKit versions are not recognized by setuptools
# -> check if RDKit is installed by attempting to import it
# -> if RDKit can be imported, do not add it to install_requires
rdkit_installed = False
try:
import rdkit
rdkit_installed = True
except ModuleNotFoundError:
pass
# rdkit 2022.3.3 is the oldest (reasonable) version
rdkit_requirement = ["rdkit>=2022.3.3"] if not rdkit_installed else []
setup(
name="cypstrate",
version="0.2.2",
maintainer="Johannes Kirchmair",
maintainer_email="[email protected]",
packages=find_packages(),
python_requires=">=3.8,<3.9",
url="https://github.com/molinfo-vienna/cypstrate.git",
description="CYPstrate: Prediction of Cytochrome P450 substrates",
long_description=open("README.md").read(),
long_description_content_type="text/markdown",
license="BSD 3-Clause License",
include_package_data=True,
install_requires=rdkit_requirement
+ [
"scikit-learn==0.23.2",
"gensim==3.8.3",
"numpy==1.19.2",
"mol2vec==0.2.2",
"nerdd-module>=0.3.10",
"chembl_structure_pipeline>=1.0.0,<1.2.0",
# avoid warnings about numpy.distutils
"setuptools < 60.0",
# install importlib-resources and importlib-metadata for old Python versions
"importlib-resources>=5; python_version<'3.9'",
"importlib-metadata>=4.6; python_version<'3.10'",
],
extras_require={
"dev": [
"mypy",
"ruff",
],
"test": [
"pytest",
"pytest-watch",
"pytest-cov",
"pytest-bdd",
"hypothesis",
"hypothesis-rdkit",
],
},
entry_points={
"console_scripts": [
"cypstrate=cypstrate.__main__:main",
],
},
)