forked from Kludex/python-multipart
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
executable file
·60 lines (52 loc) · 1.67 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
#!/usr/bin/env python
from __future__ import print_function
import os
import re
import sys
from setuptools import setup
version_file = os.path.join('multipart', '_version.py')
with open(version_file, 'rb') as f:
version_data = f.read().strip()
if sys.version_info[0] >= 3:
version_data = version_data.decode('ascii')
version_re = re.compile(r'((?:\d+)\.(?:\d+)\.(?:\d+))')
version = version_re.search(version_data).group(0)
tests_require = [
'pytest',
'pytest-cov',
'PyYAML'
]
if sys.version_info[0:2] < (3, 3):
tests_require.append('mock')
setup(name='python-multipart',
version=version,
description='A streaming multipart parser for Python',
author='Andrew Dunham',
url='http://github.com/andrew-d/python-multipart',
license='Apache',
platforms='any',
zip_safe=False,
install_requires=[
'six>=1.4.0',
],
tests_require=tests_require,
packages=[
'multipart',
'multipart.tests',
],
classifiers=[
'Development Status :: 5 - Production/Stable',
'Environment :: Web Environment',
'Intended Audience :: Developers',
'License :: OSI Approved :: Apache Software License',
'Operating System :: OS Independent',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Topic :: Software Development :: Libraries :: Python Modules'
],
test_suite = 'multipart.tests.suite',
)