-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathsetup.py
102 lines (91 loc) · 2.82 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
import sys
from packaging import version as vv
from setuptools import find_packages, setup
from ViroConstrictor import __version__
if sys.version_info.major != 3 or sys.version_info.minor < 10:
print("Error: you must execute setup.py using Python 3.10 or later")
sys.exit(1)
try:
import conda
except SystemError:
sys.exit(
"""
Error: conda could not be accessed.
Please make sure conda is installed and functioning properly before installing ViroConstrictor
"""
)
try:
import snakemake
except SystemError:
sys.exit(
"""
Error: SnakeMake could not be accessed.
Please make sure SnakeMake is installed properly before installing ViroConstrictor
"""
)
if vv.parse(snakemake.__version__) < vv.parse("7.15.2"):
sys.exit(
f"""
The installed SnakeMake version is older than the minimally required version:
Installed SnakeMake version: {snakemake.__version__}
Required SnakeMake version: 7.15.2 or later
Please update SnakeMake to a supported version and try again
"""
)
with open("README.md", "rb") as readme:
DESCR = readme.read().decode()
setup(
name="ViroConstrictor",
description="Analysis of Viral Amplicon NGS data",
author="Florian Zwagemaker, Dennis Schmitz, Karim Hajji, Annelies kroneman",
author_email="[email protected]",
license="AGPLv3",
version=__version__,
packages=find_packages(),
python_requires=">=3.10",
scripts=[
"ViroConstrictor/workflow/workflow.smk",
"ViroConstrictor/workflow/match_ref.smk",
"ViroConstrictor/workflow/directories.py",
"ViroConstrictor/workflow/presets.py",
],
package_data={
"ViroConstrictor": [
"workflow/envs/*",
"workflow/scripts/*",
"workflow/wrappers/*",
"workflow/files/*",
"workflow/scripts/match_ref/*",
"workflow/*",
]
},
install_requires=[
"urllib3==1.26.*",
"biopython==1.81",
"drmaa==0.7.9",
"fpdf2==2.5.1",
"pandas>=1.4.2",
"openpyxl==3.1.*",
"pyyaml==6.0",
"rich==13.*",
"AminoExtract==0.3.1",
],
entry_points={
"console_scripts": [
"ViroConstrictor = ViroConstrictor.__main__:main",
"viroconstrictor = ViroConstrictor.__main__:main",
"viroConstrictor = ViroConstrictor.__main__:main",
"Viroconstrictor = ViroConstrictor.__main__:main",
]
},
keywords=[],
include_package_data=True,
zip_safe=False,
classifiers=[
"Development Status :: 5 - Production/Stable",
"Programming Language :: Python :: 3.10",
"License :: OSI Approved :: GNU Affero General Public License v3",
"Topic :: Scientific/Engineering :: Bio-Informatics",
"Intended Audience :: Science/Research",
],
)