Commit 4ee111a5 by Alex Gaynor

Started working on tox support.

parent 90cdc13a
...@@ -3,4 +3,4 @@ django_taggit.egg-info/ ...@@ -3,4 +3,4 @@ django_taggit.egg-info/
dist/ dist/
_build/ _build/
MyProject.kpf MyProject.kpf
.tox/
...@@ -32,6 +32,6 @@ setup( ...@@ -32,6 +32,6 @@ setup(
'Programming Language :: Python', 'Programming Language :: Python',
'Framework :: Django', 'Framework :: Django',
], ],
test_suite='runtests.runtests' test_suite='taggit.tests.runtests.runtests'
) )
#!/usr/bin/env python #!/usr/bin/env python
import os
import sys import sys
from os.path import dirname, abspath
from django.conf import settings from django.conf import settings
if not settings.configured: if not settings.configured:
...@@ -21,7 +20,11 @@ from django.test.simple import run_tests ...@@ -21,7 +20,11 @@ from django.test.simple import run_tests
def runtests(*test_args): def runtests(*test_args):
if not test_args: if not test_args:
test_args = ['tests'] test_args = ['tests']
parent = dirname(abspath(__file__)) parent = os.path.join(
os.path.dirname(os.path.abspath(__file__)),
"..",
"..",
)
sys.path.insert(0, parent) sys.path.insert(0, parent)
failures = run_tests(test_args, verbosity=1, interactive=True) failures = run_tests(test_args, verbosity=1, interactive=True)
sys.exit(failures) sys.exit(failures)
......
[tox]
envlist = py25,py26,py27,pypy
[testenv]
commands = python setup.py test
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 sign in to comment