forked from JuanCuello/conformity
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
93 lines (82 loc) · 2.51 KB
/
setup.py
File metadata and controls
93 lines (82 loc) · 2.51 KB
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
from __future__ import (
absolute_import,
unicode_literals,
)
import sys
from setuptools import (
find_packages,
setup,
)
from conformity import __version__
def readme():
with open('README.rst') as f:
return f.read()
currency_requires = [
'currint',
]
country_requires = [
'pycountry',
]
spinx_requires = [
'sphinx~=2.2;python_version>="3.6"',
]
tests_require = [
'freezegun',
'mypy~=0.740;python_version>"3.4"',
'pytest',
'pytest-cov',
'pytest-runner',
'pytz',
] + currency_requires + country_requires + spinx_requires
setup(
name='conformity',
version=__version__,
author='Eventbrite, Inc.',
author_email='opensource@eventbrite.com',
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,<20',
'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,
},
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/',
},
)