diff options
| -rw-r--r-- | MANIFEST.in | 5 | ||||
| -rw-r--r-- | README | 4 | ||||
| -rw-r--r-- | djangorestframework/__init__.py | 4 | ||||
| -rw-r--r-- | setup.py | 18 |
4 files changed, 23 insertions, 8 deletions
diff --git a/MANIFEST.in b/MANIFEST.in new file mode 100644 index 00000000..fc9ce976 --- /dev/null +++ b/MANIFEST.in @@ -0,0 +1,5 @@ +recursive-include djangorestframework/static *.ico *.txt +recursive-include djangorestframework/templates *.txt *.html +recursive-include examples .keep *.py *.txt +recursive-include docs *.py *.rst *.html *.txt +include AUTHORS LICENSE requirements.txt tox.ini @@ -34,3 +34,7 @@ sphinx-build -c docs -b html -d docs/build docs html deactivate # Ensure we are not currently running in a virtualenv tox + +# To create sdist packages + +python setup.py sdist --formats=gztar,zip diff --git a/djangorestframework/__init__.py b/djangorestframework/__init__.py index 26482435..963e23b1 100644 --- a/djangorestframework/__init__.py +++ b/djangorestframework/__init__.py @@ -1 +1,3 @@ -VERSION="0.2.0" +__version__ = '0.2.0' + +VERSION = __version__ # synonym @@ -3,13 +3,19 @@ from setuptools import setup +import os, re + +path = os.path.join(os.path.dirname(__file__), 'djangorestframework', '__init__.py') +init_py = open(path).read() +VERSION = re.match("__version__ = '([^']+)'", init_py).group(1) + setup( - name = "djangorestframework", - version = "0.1", - url = 'https://bitbucket.org/tomchristie/django-rest-framework/wiki/Home', - download_url = 'https://bitbucket.org/tomchristie/django-rest-framework/downloads', + name = 'djangorestframework', + version = VERSION, + url = 'http://django-rest-framework.org', + download_url = 'http://pypi.python.org/pypi/djangorestframework/', license = 'BSD', - description = "A lightweight REST framework for Django.", + description = 'A lightweight REST framework for Django.', author = 'Tom Christie', author_email = 'tom@tomchristie.com', packages = ['djangorestframework', @@ -31,5 +37,3 @@ setup( 'Topic :: Internet :: WWW/HTTP', ] ) - - |
