-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
76 lines (65 loc) · 1.88 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
import sys
from packaging import version as vv
from setuptools import find_packages, setup
from SARS2seq.version import __version__
if sys.version_info.major != 3 or sys.version_info.minor < 7:
print("Error: you must execute setup.py using Python 3.7 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 SARS2seq
"""
)
try:
import snakemake
except SystemError:
sys.exit(
"""
Error: SnakeMake could not be accessed.
Please make sure SnakeMake is installed properly before installing SARS2seq
"""
)
if vv.parse(snakemake.__version__) < vv.parse("7.0"):
sys.exit(
f"""
The installed SnakeMake version is older than the minimally required version:
Installed SnakeMake version: {snakemake.__version__}
Required SnakeMake version: 7.0 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="SARS2seq",
author="Florian Zwagemaker, Dennis Schmitz, Karim Hajji, Annelies Kroneman",
author_email="[email protected]",
license="AGPLv3",
version=__version__,
packages=find_packages(),
scripts=["SARS2seq/workflow/workflow.smk", "SARS2seq/workflow/directories.py"],
package_data={
"SARS2seq": ["workflow/envs/*", "workflow/scripts/*", "workflow/files/*"]
},
install_requires=[
"urllib3>=1.26",
"biopython>=1.78",
"drmaa==0.7.9",
"fpdf==1.7.2",
"pyyaml==6.0",
"tabulate==0.8.10",
],
entry_points={
"console_scripts": [
"sars2seq = SARS2seq.SARS2seq:main",
"SARS2seq = SARS2seq.SARS2seq:main",
]
},
keywords=[],
include_package_data=True,
zip_safe=False,
)