Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 40 lines (35 sloc) 1.403 kB
114738c Add setup.py
tom christie tom@tomchristie.com authored
1 #!/usr/bin/env/python
2 # -*- coding: utf-8 -*-
3
bed7d8c tox, runcoverage, and setup.py test
Tom Christie authored
4 from setuptools import setup
114738c Add setup.py
tom christie tom@tomchristie.com authored
5
c4d800e proper manifest. setup groks version from __init__
Tom Christie authored
6 import os, re
7
8 path = os.path.join(os.path.dirname(__file__), 'djangorestframework', '__init__.py')
9 init_py = open(path).read()
10 VERSION = re.match("__version__ = '([^']+)'", init_py).group(1)
11
114738c Add setup.py
tom christie tom@tomchristie.com authored
12 setup(
c4d800e proper manifest. setup groks version from __init__
Tom Christie authored
13 name = 'djangorestframework',
14 version = VERSION,
7ee9adb point to django-rest-framework.org as the homepage, point to pypi for…
Tom Christie authored
15 url = 'http://django-rest-framework.org',
16 download_url = 'http://pypi.python.org/pypi/djangorestframework/',
114738c Add setup.py
tom christie tom@tomchristie.com authored
17 license = 'BSD',
c4d800e proper manifest. setup groks version from __init__
Tom Christie authored
18 description = 'A lightweight REST framework for Django.',
114738c Add setup.py
tom christie tom@tomchristie.com authored
19 author = 'Tom Christie',
20 author_email = 'tom@tomchristie.com',
ded60f5 setup.py
tom christie tom@tomchristie.com authored
21 packages = ['djangorestframework',
22 'djangorestframework.templatetags',
bed7d8c tox, runcoverage, and setup.py test
Tom Christie authored
23 'djangorestframework.tests',
3470134 Add utils to setup.py - see if the examples tests now pass
Tom Christie authored
24 'djangorestframework.runtests',
25 'djangorestframework.utils'],
ded60f5 setup.py
tom christie tom@tomchristie.com authored
26 package_dir={'djangorestframework': 'djangorestframework'},
27 package_data = {'djangorestframework': ['templates/*', 'static/*']},
fabf7c2 Coverage for all platforms working. Had some trouble with dependencie…
markotibold authored
28 test_suite = 'djangorestframework.runtests.runcoverage.main',
114738c Add setup.py
tom christie tom@tomchristie.com authored
29 classifiers = [
30 'Development Status :: 4 - Beta',
31 'Environment :: Web Environment',
32 'Framework :: Django',
33 'Intended Audience :: Developers',
34 'License :: OSI Approved :: BSD License',
35 'Operating System :: OS Independent',
36 'Programming Language :: Python',
37 'Topic :: Internet :: WWW/HTTP',
38 ]
ded60f5 setup.py
tom christie tom@tomchristie.com authored
39 )
Something went wrong with that request. Please try again.