django-rest-framework/setup.py

40 lines
1.4 KiB
Python
Raw Permalink Normal View History

2011-02-19 21:41:23 +03:00
#!/usr/bin/env/python
# -*- coding: utf-8 -*-
2011-03-13 20:08:46 +03:00
from setuptools import setup
2011-02-19 21:41:23 +03:00
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)
2011-02-19 21:41:23 +03:00
setup(
name = 'djangorestframework',
version = VERSION,
url = 'http://django-rest-framework.org',
download_url = 'http://pypi.python.org/pypi/djangorestframework/',
2011-02-19 21:41:23 +03:00
license = 'BSD',
description = 'A lightweight REST framework for Django.',
2011-02-19 21:41:23 +03:00
author = 'Tom Christie',
author_email = 'tom@tomchristie.com',
2011-02-19 22:00:05 +03:00
packages = ['djangorestframework',
'djangorestframework.templatetags',
2011-03-13 20:08:46 +03:00
'djangorestframework.tests',
'djangorestframework.runtests',
'djangorestframework.utils'],
2011-02-19 22:00:05 +03:00
package_dir={'djangorestframework': 'djangorestframework'},
package_data = {'djangorestframework': ['templates/*', 'static/*']},
test_suite = 'djangorestframework.runtests.runcoverage.main',
2011-02-19 21:41:23 +03:00
classifiers = [
'Development Status :: 4 - Beta',
'Environment :: Web Environment',
'Framework :: Django',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Topic :: Internet :: WWW/HTTP',
]
2011-02-19 22:00:05 +03:00
)