-
Notifications
You must be signed in to change notification settings - Fork 50
/
setup.py
70 lines (61 loc) · 1.74 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
from __future__ import with_statement
import sys
from setuptools import setup
def get_version():
with open('itunesiap/version.txt') as f:
return f.read().strip()
def get_readme():
try:
with open('README.rst') as f:
return f.read().strip()
except IOError:
return ''
install_requires = [
'requests[security]>=2.18.4', 'prettyexc>=0.6.0',
'six>=1.10.0', 'python-dateutil>=2.6.1',
'pytz',
]
tests_require = [
'pytest>=3.0.0', 'pytest-cov', 'pytest-lazy-fixture', 'tox',
'mock', 'patch',
]
if sys.version_info[:2] >= (3, 5):
install_requires.extend([
'aiohttp>=3.0.1', 'aiodns>=1.1.1',
])
tests_require.extend([
'pytest-asyncio'
])
setup(
name='itunes-iap',
version=get_version(),
description='Apple iTunes In-app purchase verification api.',
long_description=get_readme(),
author='Jeong YunWon',
author_email='itunesiap@youknowone.org',
url='https://github.com/youknowone/itunes-iap',
packages=(
'itunesiap',
),
package_data={
'itunesiap': ['version.txt']
},
install_requires=install_requires,
tests_require=tests_require,
extras_require={
'tests': tests_require,
'doc': ['sphinx'],
},
classifiers=[
'Intended Audience :: Developers',
'Operating System :: OS Independent',
'License :: OSI Approved :: BSD License',
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
],
)