aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--MANIFEST.in5
-rw-r--r--README4
-rw-r--r--djangorestframework/__init__.py4
-rw-r--r--setup.py18
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
diff --git a/README b/README
index 70df13b8..6f28dc3a 100644
--- a/README
+++ b/README
@@ -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
diff --git a/setup.py b/setup.py
index e5dc4e0e..1d738328 100644
--- a/setup.py
+++ b/setup.py
@@ -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',
]
)
-
-