mirror of
https://github.com/encode/django-rest-framework.git
synced 2024-11-22 17:47:04 +03:00
Use twine to upload to pypi.
This commit is contained in:
parent
24372ec778
commit
75ff754517
7
setup.py
7
setup.py
|
@ -48,8 +48,11 @@ if sys.argv[-1] == 'publish':
|
||||||
if os.system("pip freeze | grep wheel"):
|
if os.system("pip freeze | grep wheel"):
|
||||||
print("wheel not installed.\nUse `pip install wheel`.\nExiting.")
|
print("wheel not installed.\nUse `pip install wheel`.\nExiting.")
|
||||||
sys.exit()
|
sys.exit()
|
||||||
os.system("python setup.py sdist upload")
|
if os.system("pip freeze | grep twine")
|
||||||
os.system("python setup.py bdist_wheel upload")
|
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("You probably want to also tag the version now:")
|
||||||
print(" git tag -a %s -m 'version %s'" % (version, version))
|
print(" git tag -a %s -m 'version %s'" % (version, version))
|
||||||
print(" git push --tags")
|
print(" git push --tags")
|
||||||
|
|
Loading…
Reference in New Issue
Block a user