Skip to content

Commit 3c5256b

Browse files
committed
fix pypi oublish
1 parent c22c48b commit 3c5256b

File tree

2 files changed

+31
-6
lines changed

2 files changed

+31
-6
lines changed

setup.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
[metadata]
2-
description-file = README.md
2+
description_file = README.md

setup.py

100644100755
Lines changed: 30 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,29 @@
1+
#!/usr/bin/env python3
12

23
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+
320

421
with open("README.md", "r", encoding="utf-8") as fh:
522
long_description = fh.read()
623

724
setuptools.setup(
825
name="nested-multipart-parser",
9-
version="0.0.3",
26+
version="0.1.0",
1027
author="Example Author",
1128
license='MIT',
1229
author_email='[email protected]',
@@ -18,15 +35,23 @@
1835
"Bug Tracker": "https://github.com/remigermain/nested-multipart-parser/issues",
1936
},
2037
classifiers=[
21-
'Operating System :: OS Independent',
38+
'Development Status :: 5 - Production/Stable',
2239
'Environment :: Web Environment',
2340
'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',
2545
'Intended Audience :: Developers',
46+
'License :: OSI Approved :: BSD License',
47+
'Operating System :: OS Independent',
2648
'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',
2854
'Topic :: Internet :: WWW/HTTP',
29-
'License :: OSI Approved :: MIT License'
3055
],
3156
packages=["nested_multipart_parser"],
3257
python_requires=">=3.6",

0 commit comments

Comments
 (0)