|
| 1 | +#!/usr/bin/env python |
| 2 | + |
| 3 | +import os |
| 4 | +import re |
| 5 | +from setuptools import setup |
| 6 | + |
| 7 | +version_file = os.path.join('multipart', '__init__.py') |
| 8 | +with open(version_file, 'rb') as f: |
| 9 | + version_data = f.read().strip().decode('ascii') |
| 10 | + |
| 11 | +version_re = re.compile(r'((?:\d+)\.(?:\d+)\.(?:\d+))') |
| 12 | +version = version_re.search(version_data).group(0) |
| 13 | + |
| 14 | +tests_require = [ |
| 15 | + 'pytest', |
| 16 | + 'pytest-cov', |
| 17 | + 'PyYAML' |
| 18 | +] |
| 19 | + |
| 20 | +setup(name='python-multipart', |
| 21 | + version=version, |
| 22 | + description='A streaming multipart parser for Python', |
| 23 | + author='Andrew Dunham', |
| 24 | + url='https://github.com/andrew-d/python-multipart', |
| 25 | + license='Apache-2.0', |
| 26 | + platforms='any', |
| 27 | + zip_safe=False, |
| 28 | + tests_require=tests_require, |
| 29 | + packages=[ |
| 30 | + 'multipart', |
| 31 | + 'multipart.tests', |
| 32 | + ], |
| 33 | + python_requires='>=3.7', |
| 34 | + classifiers=[ |
| 35 | + 'Development Status :: 5 - Production/Stable', |
| 36 | + 'Environment :: Web Environment', |
| 37 | + 'Intended Audience :: Developers', |
| 38 | + 'License :: OSI Approved :: Apache Software License', |
| 39 | + 'Operating System :: OS Independent', |
| 40 | + 'Programming Language :: Python :: 3 :: Only', |
| 41 | + 'Programming Language :: Python :: 3', |
| 42 | + 'Programming Language :: Python :: 3.7', |
| 43 | + 'Programming Language :: Python :: 3.8', |
| 44 | + 'Programming Language :: Python :: 3.9', |
| 45 | + 'Programming Language :: Python :: 3.10', |
| 46 | + 'Programming Language :: Python :: 3.11', |
| 47 | + 'Topic :: Software Development :: Libraries :: Python Modules' |
| 48 | + ], |
| 49 | + test_suite = 'multipart.tests.suite', |
| 50 | + ) |
| 51 | + |
0 commit comments