-
Notifications
You must be signed in to change notification settings - Fork 2
/
setup.py
104 lines (92 loc) · 2.89 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
from __future__ import (
absolute_import,
unicode_literals,
)
import sys
from setuptools import ( # type: ignore
find_packages,
setup,
)
from conformity import __version__
def readme():
with open('README.rst') as f:
return f.read()
currency_requires = [
'currint',
]
country_requires = [
'pycountry<19.7.15;python_version<"3"',
'pycountry>=19.7.15;python_version>="3"',
]
spinx_requires = [
'sphinx~=3.5;python_version>="3.6"',
'jinja2==3.0.3;python_version>="3.6"',
]
tests_require = [
'freezegun==1.0.0',
'mock;python_version<"3.3"',
'mypy~=0.740;python_version>"3.4"',
'pytest>4.2,<5.4',
'pytest-cov~=2.5',
'coverage~=5.2',
'pytest-runner',
'pytz',
'importlib-metadata~=5.0;python_version>"3.6"'
] + currency_requires + country_requires + spinx_requires
mypy_requires = [
'types-six;python_version>="3.7"',
'types-pytz;python_version>="3.7"',
]
setup(
name='conformity',
version=__version__,
author='Eventbrite, Inc.',
author_email='[email protected]',
description='Cacheable schema description and validation',
long_description=readme(),
url='http://github.com/eventbrite/conformity',
packages=list(map(str, find_packages(include=['conformity', 'conformity.*']))),
package_data={
str('conformity'): [str('py.typed')], # PEP 561,
str('conformity.sphinx_ext'): [str('static/*')],
},
zip_safe=False, # PEP 561
include_package_data=True,
install_requires=[
'attrs>=17.4,<22',
'six',
'typing~=3.7.4;python_version<"3.5"',
],
tests_require=tests_require,
setup_requires=['pytest-runner'] if {'pytest', 'test', 'ptr'}.intersection(sys.argv) else [],
test_suite='tests',
extras_require={
'currency': currency_requires,
'country': country_requires,
'sphinx': spinx_requires,
'docs': spinx_requires + country_requires + currency_requires,
'testing': tests_require,
'mypy': mypy_requires,
},
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://conformity.readthedocs.io',
'Issues': 'https://github.com/eventbrite/conformity/issues',
'CI': 'https://travis-ci.org/eventbrite/conformity/',
},
)