Commit c4d800ef by Tom Christie

proper manifest. setup groks version from __init__

parent fb805bbb
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
VERSION="0.1.1" __version__ = '0.1.1'
VERSION = __version__ # synonym
...@@ -3,13 +3,19 @@ ...@@ -3,13 +3,19 @@
from setuptools import setup 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( setup(
name = "djangorestframework", name = 'djangorestframework',
version = "0.1", version = VERSION,
url = 'https://bitbucket.org/tomchristie/django-rest-framework/wiki/Home', url = 'https://bitbucket.org/tomchristie/django-rest-framework/wiki/Home',
download_url = 'https://bitbucket.org/tomchristie/django-rest-framework/downloads', download_url = 'https://bitbucket.org/tomchristie/django-rest-framework/downloads',
license = 'BSD', license = 'BSD',
description = "A lightweight REST framework for Django.", description = 'A lightweight REST framework for Django.',
author = 'Tom Christie', author = 'Tom Christie',
author_email = 'tom@tomchristie.com', author_email = 'tom@tomchristie.com',
packages = ['djangorestframework', packages = ['djangorestframework',
...@@ -30,8 +36,3 @@ setup( ...@@ -30,8 +36,3 @@ setup(
'Topic :: Internet :: WWW/HTTP', 'Topic :: Internet :: WWW/HTTP',
] ]
) )
import os, shutil
shutil.rmtree(os.path.join(os.path.dirname(__file__), 'djangorestframework.egg-info'), True)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment