We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 30313d2 commit 4a75a9cCopy full SHA for 4a75a9c
setup.py
@@ -59,8 +59,14 @@ def get_package_data(package):
59
60
61
if sys.argv[-1] == 'publish':
62
- os.system("python setup.py sdist upload")
63
- os.system("python setup.py bdist_wheel upload")
+ if os.system("pip freeze | grep wheel"):
+ 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
68
+ os.system("python setup.py sdist bdist_wheel")
69
+ os.system("twine upload dist/*")
70
print("You probably want to also tag the version now:")
71
print(" git tag -a %s -m 'version %s'" % (version, version))
72
print(" git push --tags")
0 commit comments