Skip to content
This repository has been archived by the owner on May 26, 2020. It is now read-only.

Commit

Permalink
Tweak publish to use twine
Browse files Browse the repository at this point in the history
  • Loading branch information
jpadilla committed Jun 12, 2015
1 parent f0186a0 commit 242aeb7
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions setup.py
Expand Up @@ -64,11 +64,17 @@ def get_package_data(package):


if sys.argv[-1] == 'publish':
os.system("python setup.py sdist upload")
os.system("python setup.py bdist_wheel upload")
print("You probably want to also tag the version now:")
if os.system('pip freeze | grep wheel'):
print('wheel not installed.\nUse `pip install wheel`.\nExiting.')
sys.exit()
if os.system('pip freeze | grep twine'):
print('twine not installed.\nUse `pip install twine`.\nExiting.')
sys.exit()
os.system('python setup.py sdist bdist_wheel')
os.system('twine upload dist/*')
print('You probably want to also tag the version now:')
print(" git tag -a {0} -m 'version {0}'".format(version))
print(" git push --tags")
print(' git push --tags')
sys.exit()


Expand Down

0 comments on commit 242aeb7

Please sign in to comment.