diff options
| author | Xavier Ordoquy | 2015-02-06 10:12:57 +0100 |
|---|---|---|
| committer | Xavier Ordoquy | 2015-02-06 10:12:57 +0100 |
| commit | 75ff754517c30df043de906b0a6fb0e1777570b7 (patch) | |
| tree | a6e3db58eb970d54d5101844490096a4b7be7f8b /setup.py | |
| parent | 24372ec7787b1b84e46f197b2559011331e2988c (diff) | |
| download | django-rest-framework-75ff754517c30df043de906b0a6fb0e1777570b7.tar.bz2 | |
Use twine to upload to pypi.
Diffstat (limited to 'setup.py')
| -rwxr-xr-x | setup.py | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -48,8 +48,11 @@ if sys.argv[-1] == 'publish': if os.system("pip freeze | grep wheel"): print("wheel not installed.\nUse `pip install wheel`.\nExiting.") sys.exit() - os.system("python setup.py sdist upload") - os.system("python setup.py bdist_wheel upload") + 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 %s -m 'version %s'" % (version, version)) print(" git push --tags") |
