-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
90 lines (82 loc) · 2.46 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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
from setuptools import setup, find_packages
import os
import shutil
name = "pyoma"
req_packages = [
"numpy >= 1.20, <2",
"tables >= 3.8.0",
"future",
"fuzzyset2 >= 0.1.1",
"tqdm",
"pyopa >= 0.8",
"pandas >= 0.22",
'biopython >= 1.76 ; python_version >= "3.6"',
'biopython == 1.76 ; python_version < "3.6"',
"datasketch",
"ete3",
"networkx",
"property_manager",
]
cur_dir = os.path.abspath(os.path.dirname(__file__))
# Create oma2hdf to install
shutil.copyfile("bin/importdata.py", "bin/oma2hdf")
__version__ = "Undefined"
for line in open("{}/__init__.py".format(name)):
if line.startswith("__version__"):
exec(line.strip())
with open(os.path.join(cur_dir, "README.md"), encoding="utf-8") as f:
long_description = f.read()
setup(
name=name,
version=__version__,
author="DessimozLab",
author_email="[email protected]",
description="library to interact and build OMA hdf5 files",
long_description=long_description,
long_description_content_type="text/markdown",
licence="MPL 2.0",
packages=find_packages(exclude=("tests",)),
classifiers=[
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"Topic :: Scientific/Engineering :: Bio-Informatics",
"License :: OSI Approved :: Mozilla Public License 2.0 (MPL 2.0)",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
],
scripts=["bin/importdata.py", "bin/oma2hdf", "bin/map_to_closest_seq"],
package_data={"pyoma": ["browser/*.drw"]},
install_requires=req_packages,
extras_require={
"create_db": [
"PySAIS",
"familyanalyzer>=0.7.3",
"matplotlib",
"scikit-learn",
"scikit-fuzzy",
"pebble",
"lark-parser",
"pyham",
],
"enrichment": [
"plotly",
"scikit-learn",
"statsmodels",
"scipy",
],
"notebooks": [
"jupyter",
"matplotlib",
"seaborn",
],
"docs": ["sphinx"],
},
test_require=["nose"],
python_requires=">=3.6",
)
# Remove local copy of oma2hdf (installed)
os.remove("bin/oma2hdf")