Install html5lib in the tox configuration automatically and directly call runtests.py without detour to setuptools' test command. We're not installing lxml automatically since it doesn't reliably work on all platforms.

This commit is contained in:
Jannis Leidel
2011-04-18 12:56:12 +02:00
parent 93c7166c5b
commit 7c918799c9
2 changed files with 19 additions and 5 deletions

View File

@@ -114,9 +114,6 @@ setup(
install_requires = [
'BeautifulSoup',
],
tests_require = [
'Django', 'BeautifulSoup',
],
classifiers = [
'Development Status :: 4 - Beta',
'Framework :: Django',
@@ -126,6 +123,5 @@ setup(
'Programming Language :: Python',
'Topic :: Internet :: WWW/HTTP',
],
test_suite='compressor.tests.runtests.runtests',
zip_safe = False,
)

20
tox.ini
View File

@@ -2,51 +2,69 @@
distribute=false
sitepackages=true
commands =
python setup.py test
python compressor/tests/runtests.py
[testenv:py25-1.1.X]
basepython = python2.5
deps =
BeautifulSoup
html5lib
django==1.1.4
[testenv:py26-1.1.X]
basepython = python2.6
deps =
BeautifulSoup
html5lib
django==1.1.4
[testenv:py27-1.1.X]
basepython = python2.7
deps =
BeautifulSoup
html5lib
django==1.1.4
[testenv:py25-1.2.X]
basepython = python2.5
deps =
BeautifulSoup
html5lib
django==1.2.5
[testenv:py26-1.2.X]
basepython = python2.6
deps =
BeautifulSoup
html5lib
django==1.2.5
[testenv:py27-1.2.X]
basepython = python2.7
deps =
BeautifulSoup
html5lib
django==1.2.5
[testenv:py25-1.3.X]
basepython = python2.5
deps =
BeautifulSoup
html5lib
django==1.3
[testenv:py26-1.3.X]
basepython = python2.6
deps =
BeautifulSoup
html5lib
django==1.3
[testenv:py27-1.3.X]
basepython = python2.7
deps =
BeautifulSoup
html5lib
django==1.3