mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-06-16 19:43:21 +03:00
proper manifest. setup groks version from __init__
This commit is contained in:
parent
fb805bbb7c
commit
c4d800ef32
5
MANIFEST.in
Normal file
5
MANIFEST.in
Normal file
|
@ -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
|
|
@ -1 +1,3 @@
|
||||||
VERSION="0.1.1"
|
__version__ = '0.1.1'
|
||||||
|
|
||||||
|
VERSION = __version__ # synonym
|
||||||
|
|
17
setup.py
17
setup.py
|
@ -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(
|
||||||
'Topic :: Internet :: WWW/HTTP',
|
'Topic :: Internet :: WWW/HTTP',
|
||||||
]
|
]
|
||||||
)
|
)
|
||||||
|
|
||||||
import os, shutil
|
|
||||||
shutil.rmtree(os.path.join(os.path.dirname(__file__), 'djangorestframework.egg-info'), True)
|
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user