|
| 1 | +#!/usr/bin/env python3 |
1 | 2 |
|
2 | 3 | import setuptools |
| 4 | +import os |
| 5 | +import sys |
| 6 | + |
| 7 | +if sys.argv[-1] == 'publish': |
| 8 | + if os.system("pip freeze | grep twine"): |
| 9 | + print("twine not installed.\nUse `pip install twine`.\nExiting.") |
| 10 | + sys.exit() |
| 11 | + os.system('rm -rf dist nested_multipart_parser.egg-info') |
| 12 | + os.system("python setup.py sdist") |
| 13 | + if os.system("twine check dist/*"): |
| 14 | + print("twine check failed. Packages might be outdated.") |
| 15 | + print("Try using `pip install -U twine wheel`.\nExiting.") |
| 16 | + sys.exit() |
| 17 | + os.system("twine upload dist/*") |
| 18 | + sys.exit() |
| 19 | + |
3 | 20 |
|
4 | 21 | with open("README.md", "r", encoding="utf-8") as fh: |
5 | 22 | long_description = fh.read() |
6 | 23 |
|
7 | 24 | setuptools.setup( |
8 | 25 | name="nested-multipart-parser", |
9 | | - version="0.0.3", |
| 26 | + version="0.1.0", |
10 | 27 | author="Example Author", |
11 | 28 | license='MIT', |
12 | 29 | |
|
18 | 35 | "Bug Tracker": "https://github.com/remigermain/nested-multipart-parser/issues", |
19 | 36 | }, |
20 | 37 | classifiers=[ |
21 | | - 'Operating System :: OS Independent', |
| 38 | + 'Development Status :: 5 - Production/Stable', |
22 | 39 | 'Environment :: Web Environment', |
23 | 40 | 'Framework :: Django', |
24 | | - 'Framework :: Django :: 3', |
| 41 | + 'Framework :: Django :: 2.2', |
| 42 | + 'Framework :: Django :: 3.0', |
| 43 | + 'Framework :: Django :: 3.1', |
| 44 | + 'Framework :: Django :: 3.2', |
25 | 45 | 'Intended Audience :: Developers', |
| 46 | + 'License :: OSI Approved :: BSD License', |
| 47 | + 'Operating System :: OS Independent', |
26 | 48 | 'Programming Language :: Python', |
27 | | - 'Programming Language :: Python :: 3', |
| 49 | + 'Programming Language :: Python :: 3.6', |
| 50 | + 'Programming Language :: Python :: 3.7', |
| 51 | + 'Programming Language :: Python :: 3.8', |
| 52 | + 'Programming Language :: Python :: 3.9', |
| 53 | + 'Programming Language :: Python :: 3 :: Only', |
28 | 54 | 'Topic :: Internet :: WWW/HTTP', |
29 | | - 'License :: OSI Approved :: MIT License' |
30 | 55 | ], |
31 | 56 | packages=["nested_multipart_parser"], |
32 | 57 | python_requires=">=3.6", |
|
0 commit comments