-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathsetup.py
109 lines (93 loc) · 2.97 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
103
104
105
106
107
108
109
#!/usr/bin/env python3
import sys
from setuptools import setup
from setuptools.command.test import test as TestCommand
# Load version
exec(open("transcriptic/version.py").read())
# Test Runner (reference: https://docs.pytest.org/en/latest/goodpractices.html)
class PyTest(TestCommand):
user_options = [("pytest-args=", "a", "Arguments to pass to pytest")]
def initialize_options(self):
TestCommand.initialize_options(self)
self.pytest_args = "--cov=transcriptic --cov-report=term"
def run_tests(self):
import shlex
# import here, cause outside the eggs aren't loaded
import pytest
errno = pytest.main(shlex.split(self.pytest_args))
sys.exit(errno)
# Test and Documentation dependencies
test_deps = [
"coverage>=4.5, <5",
"jsonschema>=2.6, <3",
"mock>=3, <4",
"pre-commit>=2.4, <3",
"pylint==2.5.2", # should be consistent with .pre-commit-config.yaml
"pytest>=5.4, <6",
"pytest-cov>=2, <3",
"tox>=3.15, <4",
"responses>=0.13.4",
]
doc_deps = [
"Sphinx>=2.4, <3",
"mock>=3, <4",
"releases>=1.6.3, <2",
"sphinx_rtd_theme>=0.4.3, <1",
]
# Extra module dependencies
jupyter_deps = ["pandas>=1, <2", "responses>=0.12.0,<1", "jupyter>=1.0.0, <2"]
analysis_deps = [
"autoprotocol>=7.6.1,<8",
"matplotlib>=3,<4",
# Version 1.21 upwards only support Python >= 3.7
"numpy>=1.14,<=1.20.3",
"pandas>=1,<2",
"pillow>=8,<9",
"plotly>=1.13,<2",
]
setup(
name="transcriptic",
description="Transcriptic CLI & Python Client Library",
url="https://github.com/transcriptic/transcriptic",
version=__version__, # pylint: disable=undefined-variable
packages=["transcriptic", "transcriptic.jupyter", "transcriptic.analysis"],
include_package_data=True,
tests_require=test_deps,
python_requires=">=3.6",
install_requires=[
"Click>=7.0,<8",
"httpsig==1.3.0",
"requests>2.21.0,<3",
"pycryptodome==3.9.6",
"python-magic>=0.4,<1",
"Jinja2>=3.0,<4",
"responses>=0.13.4",
],
extras_require={
"jupyter": jupyter_deps,
"analysis": analysis_deps,
"docs": doc_deps,
"test": test_deps,
},
cmdclass={"pytest": PyTest},
entry_points="""
[console_scripts]
transcriptic=transcriptic.cli:cli
""",
license="BSD",
classifiers=[
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"Operating System :: MacOS :: MacOS X",
"Operating System :: Microsoft :: Windows",
"Operating System :: Unix",
"Programming Language :: Python",
"Topic :: Scientific/Engineering",
"Topic :: Software Development",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
],
)