Skip to content

Commit 75ff754

Browse files
committed
Use twine to upload to pypi.
1 parent 24372ec commit 75ff754

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

setup.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,11 @@ def get_package_data(package):
4848
if os.system("pip freeze | grep wheel"):
4949
print("wheel not installed.\nUse `pip install wheel`.\nExiting.")
5050
sys.exit()
51-
os.system("python setup.py sdist upload")
52-
os.system("python setup.py bdist_wheel upload")
51+
if os.system("pip freeze | grep twine")
52+
print("twine not installed.\nUse `pip install twine`.\nExiting.")
53+
sys.exit()
54+
os.system("python setup.py sdist bdist_wheel")
55+
os.system("twine upload dist/*")
5356
print("You probably want to also tag the version now:")
5457
print(" git tag -a %s -m 'version %s'" % (version, version))
5558
print(" git push --tags")

0 commit comments

Comments
 (0)