/
setup.py
71 lines (58 loc) · 1.83 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
import sys
from packaging import version as vv
from setuptools import find_packages, setup
from Jovian import __package_name__, __version__
if sys.version_info.major != 3 or sys.version_info.minor < 6:
print("Jovian requires Python 3.6 or higher")
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 Jovian
"""
)
try:
import snakemake
except SystemError:
sys.exit(
"""
Error: snakemake could not be accessed.
Please make sure snakemake is installed and functioning properly before installing Jovian
"""
)
if vv.parse(snakemake.__version__) < vv.parse("6.0"):
sys.exit(
f"""
The installed SnakeMake version is older than the minimally required version:
Installed SnakeMake version: {snakemake.__version__}
Required SnakeMake version: 6.0 or later
Please update SnakeMake to a supported version and try again
"""
)
# TODO this isn't used.
with open("README.md", "r") as fh:
long_description = fh.read()
setup(
name=__package_name__,
author="Dennis Schmitz",
author_email="DennisSchmitz@users.noreply.github.com",
url="https://github.com/DennisSchmitz/jovian",
license="AGPLv3",
version=__version__,
packages=find_packages(),
scripts=["Jovian/workflow/Snakefile", "Jovian/workflow/directories.py"],
package_data={"Jovian": ["workflow/envs/*", "workflow/scripts/*", "workflow/scripts/html/*", "workflow/files/*", "workflow/files/html/*"]},
install_requires=["drmaa==0.7.9", "pyyaml==6.0", "biopython==1.79"],
entry_points={
"console_scripts": [
"jovian = Jovian.Jovian:main",
"Jovian = Jovian.Jovian:main",
]
},
keywords=[],
include_package_data=True,
zip_safe=False,
)