aboutsummaryrefslogtreecommitdiffstats
path: root/setup.py
diff options
context:
space:
mode:
authorTom Christie2011-03-13 17:08:46 +0000
committerTom Christie2011-03-13 17:08:46 +0000
commitbed7d8c3a99425b8dfa5c5a9c6b1d49a46f5284f (patch)
treed3ad16683a727ea847ca807660419e3f290929cb /setup.py
parentd6e7e95d95e7367f0d999c14d874d810a028a177 (diff)
downloaddjango-rest-framework-bed7d8c3a99425b8dfa5c5a9c6b1d49a46f5284f.tar.bz2
tox, runcoverage, and setup.py test
Diffstat (limited to 'setup.py')
-rw-r--r--setup.py10
1 files changed, 8 insertions, 2 deletions
diff --git a/setup.py b/setup.py
index 0015f0d9..4c5ff054 100644
--- a/setup.py
+++ b/setup.py
@@ -1,7 +1,7 @@
#!/usr/bin/env/python
# -*- coding: utf-8 -*-
-from distutils.core import setup
+from setuptools import setup
setup(
name = "djangorestframework",
@@ -14,9 +14,11 @@ setup(
author_email = 'tom@tomchristie.com',
packages = ['djangorestframework',
'djangorestframework.templatetags',
- 'djangorestframework.tests'],
+ 'djangorestframework.tests',
+ 'djangorestframework.runtests'],
package_dir={'djangorestframework': 'djangorestframework'},
package_data = {'djangorestframework': ['templates/*', 'static/*']},
+ test_suite = 'djangorestframework.runtests.runtests.main',
classifiers = [
'Development Status :: 4 - Beta',
'Environment :: Web Environment',
@@ -29,3 +31,7 @@ setup(
]
)
+import os, shutil
+shutil.rmtree(os.path.join(os.path.dirname(__file__), 'djangorestframework.egg-info'), True)
+
+