diff options
Diffstat (limited to 'setup.py')
| -rw-r--r-- | setup.py | 24 |
1 files changed, 13 insertions, 11 deletions
@@ -3,19 +3,26 @@ 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', 'djangorestframework.templatetags', 'djangorestframework.tests', - 'djangorestframework.runtests'], + 'djangorestframework.runtests', + 'djangorestframework.utils'], package_dir={'djangorestframework': 'djangorestframework'}, package_data = {'djangorestframework': ['templates/*', 'static/*']}, test_suite = 'djangorestframework.runtests.runcoverage.main', @@ -30,8 +37,3 @@ setup( 'Topic :: Internet :: WWW/HTTP', ] ) - -#import os, shutil -#shutil.rmtree(os.path.join(os.path.dirname(__file__), 'djangorestframework.egg-info'), True) - - |
