-
Notifications
You must be signed in to change notification settings - Fork 25
/
setup.py
131 lines (117 loc) · 4.16 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
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
from __future__ import (
absolute_import,
unicode_literals,
)
import codecs
import sys
from setuptools import (
find_packages,
setup,
)
from pysoa import __version__
def readme():
with codecs.open('README.rst', 'rb', encoding='utf8') as f:
return f.read()
install_requires = [
'attrs>=18.2,<22',
'conformity~=1.28',
'currint>=1.6,<3',
'enum34;python_version<"3.4"',
'msgpack~=0.6,>=0.6.2',
'pymetrics~=1.0.7',
'pytz>=2019.1',
'redis>=2.10,<4.0,!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*', # shortest way to say 2.10+ or 3.4+ but not older versions
'six~=1.10',
'typing~=3.7.4;python_version<"3.5"',
# For context, see the comment in pysoa.common.compatibility. Due to the peculiarities of the patching detailed
# there, we pin these dependencies to hard versions, or else things might break when they update. When new versions
# come out, we'll bump and adjust our patching or, hopefully, relax and remove our patching.
'contextvars==2.4;python_version>"3.4" and python_version<"3.7"',
'aiocontextvars==0.2.2;python_version>"3.4" and python_version<"3.7"',
]
test_helper_requirements = [
'mock>=2.0;python_version<"3.3"',
]
test_plan_requirements = test_helper_requirements + [
'pyparsing~=2.2',
'pytest>4.2,<5.4',
'pytest-asyncio~=0.10.0;python_version>"3.4"',
'Faker~=5.0.0;python_version>"3.4"'
]
mypy_require = [
'mypy~=0.740,<=0.910;python_version>"3.4" and python_version<"3.7"',
'mypy~=0.991;python_version>="3.7"',
'types-six~=0.1.7;python_version>"3.4"',
'types-setuptools~=57.0.0;python_version>"3.4"',
'types-mock~=0.1.3;python_version>"3.4"',
'types-requests~=2.25.6;python_version>"3.4"',
'types-pytz;python_version>"3.6"',
'types-redis;python_version>"3.6"',
'typing-extensions~=3.7.4;python_version<"3.7"',
'typing-extensions~=3.10;python_version>="3.7"',
]
# testing
tests_require = [
'coverage~=4.5',
'factory_boy~=2.11.1',
'freezegun~=0.3',
'lunatic-python-universal~=2.1',
'mockredispy~=2.9',
'parameterized~=0.7',
] + mypy_require + test_plan_requirements
setup(
name='pysoa',
version=__version__,
author='Eventbrite, Inc.',
author_email='[email protected]',
description='A Python library for writing (micro)services and their clients',
long_description=readme(),
url='http://github.com/eventbrite/pysoa',
packages=list(map(str, find_packages(include=['pysoa', 'pysoa.*']))),
package_data={
str('pysoa'): [str('py.typed')], # PEP 561,
},
zip_safe=False, # PEP 561
include_package_data=True,
install_requires=install_requires,
tests_require=tests_require,
setup_requires=['pytest-runner'] if {'pytest', 'test', 'ptr'}.intersection(sys.argv) else [],
test_suite='tests',
extras_require={
'docs': [
'conformity[docs]~=1.26,>=1.26.4',
'django~=1.11',
'sphinx~=2.2;python_version>="3.6"',
] + test_plan_requirements,
'testing': tests_require,
'test_helpers': test_helper_requirements,
'test_plans': test_plan_requirements,
},
entry_points={
'pytest11': [
'pysoa_test_plan=pysoa.test.plugins.pytest.plans',
'pysoa_test_fixtures=pysoa.test.plugins.pytest.fixtures',
]
},
license='Apache 2.0',
classifiers=[
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Developers',
'License :: OSI Approved :: Apache Software License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Topic :: Software Development',
],
project_urls={
'Documentation': 'https://pysoa.readthedocs.io',
'Issues': 'https://github.com/eventbrite/pysoa/issues',
'CI': 'https://travis-ci.org/eventbrite/pysoa/',
},
)