Set up wheel distribution support

This commit is contained in:
George Hickman 2013-11-15 15:49:53 +00:00
parent 128bda5712
commit 4807e00bff
2 changed files with 3 additions and 0 deletions

2
setup.cfg Normal file
View File

@ -0,0 +1,2 @@
[wheel]
universal = 1

View File

@ -45,6 +45,7 @@ version = get_version('rest_framework')
if sys.argv[-1] == 'publish': if sys.argv[-1] == 'publish':
os.system("python setup.py sdist upload") 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:") 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")