mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-06-20 13:33:18 +03:00
Version 2.4.5
Update release script.
This commit is contained in:
parent
30313d2a8a
commit
4a75a9c0cb
10
setup.py
10
setup.py
|
@ -59,8 +59,14 @@ version = get_version('rest_framework')
|
||||||
|
|
||||||
|
|
||||||
if sys.argv[-1] == 'publish':
|
if sys.argv[-1] == 'publish':
|
||||||
os.system("python setup.py sdist upload")
|
if os.system("pip freeze | grep wheel"):
|
||||||
os.system("python setup.py bdist_wheel upload")
|
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("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