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:
4
setup.py
4
setup.py
@@ -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
20
tox.ini
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user