Skip to content

Commit 4a75a9c

Browse files
committed
Version 2.4.5
Update release script.
1 parent 30313d2 commit 4a75a9c

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

setup.py

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,14 @@ def get_package_data(package):
5959

6060

6161
if sys.argv[-1] == 'publish':
62-
os.system("python setup.py sdist upload")
63-
os.system("python setup.py bdist_wheel upload")
62+
if os.system("pip freeze | grep wheel"):
63+
print("wheel not installed.\nUse `pip install wheel`.\nExiting.")
64+
sys.exit()
65+
if os.system("pip freeze | grep twine"):
66+
print("twine not installed.\nUse `pip install twine`.\nExiting.")
67+
sys.exit()
68+
os.system("python setup.py sdist bdist_wheel")
69+
os.system("twine upload dist/*")
6470
print("You probably want to also tag the version now:")
6571
print(" git tag -a %s -m 'version %s'" % (version, version))
6672
print(" git push --tags")

0 commit comments

Comments
 (0)