Generative environments, and disable lxml on pypy3 which doesn't work yet.
This commit is contained in:
49
tox.ini
49
tox.ini
@@ -1,5 +1,6 @@
|
|||||||
[tox]
|
[tox]
|
||||||
envlist = py26, py27, pypy, pypy3, py34, docs, style
|
envlist = py{26,27,34,py,py3}, docs, style
|
||||||
|
|
||||||
|
|
||||||
[testenv]
|
[testenv]
|
||||||
# by default tox runs with --pre which tickles this bug:
|
# by default tox runs with --pre which tickles this bug:
|
||||||
@@ -8,39 +9,21 @@ install_command = pip install {opts} {packages}
|
|||||||
commands =
|
commands =
|
||||||
py.test [] jsonschema
|
py.test [] jsonschema
|
||||||
{envpython} -m doctest README.rst
|
{envpython} -m doctest README.rst
|
||||||
deps =
|
py{26,27,34,py}: sphinx-build -b doctest docs {envtmpdir}/html
|
||||||
{[testenv:notpy34]deps}
|
|
||||||
{[testenv:py34]deps}
|
|
||||||
|
|
||||||
[testenv:py26]
|
|
||||||
deps =
|
|
||||||
{[testenv:notpy34]deps}
|
|
||||||
{[testenv:all]deps}
|
|
||||||
argparse
|
|
||||||
unittest2
|
|
||||||
|
|
||||||
[testenv:py34]
|
|
||||||
commands =
|
|
||||||
py.test [] jsonschema
|
|
||||||
{envpython} -m doctest README.rst
|
|
||||||
deps =
|
|
||||||
{[testenv:all]deps}
|
|
||||||
{[testenv:notpy26]deps}
|
|
||||||
|
|
||||||
[testenv:notpy34]
|
|
||||||
deps =
|
|
||||||
mock
|
|
||||||
|
|
||||||
[testenv:notpy26]
|
|
||||||
deps =
|
|
||||||
rfc3987
|
|
||||||
|
|
||||||
[testenv:all]
|
|
||||||
deps =
|
deps =
|
||||||
pytest
|
pytest
|
||||||
sphinx
|
|
||||||
strict-rfc3339
|
strict-rfc3339
|
||||||
webcolors
|
webcolors
|
||||||
|
py{27,34,py,py3}: rfc3987
|
||||||
|
|
||||||
|
py26: argparse
|
||||||
|
py26: unittest2
|
||||||
|
py{26,27,py,py3}: mock
|
||||||
|
|
||||||
|
py{26,27,34}: lxml
|
||||||
|
pypy: git+https://github.com/amauryfa/lxml.git@cffi
|
||||||
|
py{26,27,34,py}: sphinx
|
||||||
|
|
||||||
|
|
||||||
[testenv:coverage]
|
[testenv:coverage]
|
||||||
commands =
|
commands =
|
||||||
@@ -48,10 +31,9 @@ commands =
|
|||||||
coverage report --show-missing
|
coverage report --show-missing
|
||||||
coverage html
|
coverage html
|
||||||
deps =
|
deps =
|
||||||
{[testenv:notpy34]deps}
|
|
||||||
{[testenv:py34]deps}
|
|
||||||
coverage
|
coverage
|
||||||
|
|
||||||
|
|
||||||
[testenv:docs]
|
[testenv:docs]
|
||||||
basepython = python
|
basepython = python
|
||||||
changedir = docs
|
changedir = docs
|
||||||
@@ -60,13 +42,16 @@ deps =
|
|||||||
commands =
|
commands =
|
||||||
sphinx-build [] -W -b html -d {envtmpdir}/doctrees . {envtmpdir}/html
|
sphinx-build [] -W -b html -d {envtmpdir}/doctrees . {envtmpdir}/html
|
||||||
|
|
||||||
|
|
||||||
[testenv:style]
|
[testenv:style]
|
||||||
deps = flake8
|
deps = flake8
|
||||||
commands =
|
commands =
|
||||||
flake8 [] --max-complexity 10 jsonschema
|
flake8 [] --max-complexity 10 jsonschema
|
||||||
|
|
||||||
|
|
||||||
[flake8]
|
[flake8]
|
||||||
ignore = E203,E302,E303,E701,F811
|
ignore = E203,E302,E303,E701,F811
|
||||||
|
|
||||||
|
|
||||||
[pytest]
|
[pytest]
|
||||||
addopts = -r s -s
|
addopts = -r s -s
|
||||||
|
Reference in New Issue
Block a user