mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-07-04 12:23:17 +03:00
py3 compatible setup.
This commit is contained in:
parent
bf8ceca122
commit
364299b0aa
8
setup.py
8
setup.py
|
@ -1,6 +1,8 @@
|
||||||
#!/usr/bin/env python
|
#!/usr/bin/env python
|
||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
|
|
||||||
|
#from __future__ import unicode_literals
|
||||||
|
|
||||||
from setuptools import setup
|
from setuptools import setup
|
||||||
import re
|
import re
|
||||||
import os
|
import os
|
||||||
|
@ -45,9 +47,9 @@ 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")
|
||||||
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")
|
||||||
sys.exit()
|
sys.exit()
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user