-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathsetup.py
102 lines (86 loc) · 2.5 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
91
92
93
94
95
96
97
98
99
100
101
102
#!/usr/bin/env python3
import glob
import os
import setuptools
def is_mac():
version = os.uname().version
sysname = os.uname().sysname
return sysname == "Darwin" and "ARM64" in version
with open("README.md", "r") as fh:
long_description = fh.read()
def get_version():
with open("VERSION", "r") as f:
return f.readline().strip()
if is_mac():
install_requires = [
"biopython>=1.79",
"scikit-learn<=1.2.2",
"numpy<=1.26.4",
"pandas",
"click",
"joblib",
"loguru",
"tensorflow-macos==2.9.1",
"alive-progress>=3.0.1",
"requests>=2.25.1",
]
else:
install_requires = [
"biopython>=1.79",
"scikit-learn<=1.2.2",
"numpy",
"pandas",
"click",
"joblib",
"loguru",
"tensorflow==2.9.1",
"alive-progress>=3.0.1",
"requests>=2.25.1",
]
packages = setuptools.find_packages()
print(packages)
package_data = {
"phynteny_utils": [
"phynteny_utils/*",
"phynteny_utils/models/*",
"phynteny_utils/phrog_annotation_info/*",
],
"train_phynteny": ["train_phynteny/*"],
}
model_files = glob.glob("phynteny_utils/models/*")
data_files = [(".", ["LICENSE", "README.md"])]
setuptools.setup(
name="phynteny",
version=get_version(),
zip_safe=True,
author="Susanna Grigson",
author_email="susie.grigson@gmail.com",
description="Phynteny: Synteny-based prediction of bacteriophage genes",
long_description=long_description,
long_description_content_type="text/markdown",
url="https://github.com/susiegriggo/Phynteny",
license="MIT",
packages=packages,
package_data=package_data,
data_files=data_files,
include_package_data=True,
scripts=["phynteny"],
entry_points={
"console_scripts": [
"generate_training_data=train_phynteny.generate_training_data:main",
"train_model=train_phynteny.train_phyntenty:main",
"compute_confidence=train_phynteny.compute_confidence:main",
"install_models=phynteny_utils.install_models:main",
],
},
classifiers=[
"Development Status :: 1 - Planning",
"Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License",
"Natural Language :: English",
"Topic :: Scientific/Engineering :: Bio-Informatics",
"Operating System :: OS Independent",
],
install_requires=install_requires,
python_requires="<3.11",
)