1
1
Fork 0
mirror of https://github.com/pypa/pip synced 2023-12-13 21:30:23 +01:00
pip/tox.ini

60 lines
1.4 KiB
INI
Raw Normal View History

2012-09-08 16:18:25 +02:00
[tox]
2015-05-27 19:32:39 +02:00
envlist =
2017-06-14 08:08:11 +02:00
docs, packaging, lint-py2, lint-py3, mypy,
py27, py34, py35, py67, py37, pypy, pypy3
2012-09-08 16:18:25 +02:00
[testenv]
passenv = CI GIT_SSL_CAINFO
2015-05-14 12:59:33 +02:00
setenv =
# This is required in order to get UTF-8 output inside of the subprocesses
# that our tests use.
LC_CTYPE = en_US.UTF-8
deps = -r{toxinidir}/tools/tests-requirements.txt
commands = pytest --timeout 300 []
install_command = python -m pip install {opts} {packages}
usedevelop = True
2017-11-14 07:33:01 +01:00
[testenv:coverage-py3]
basepython = python3
commands = pytest --timeout 300 --cov=pip --cov-report=term-missing --cov-report=xml --cov-report=html tests/unit {posargs}
2017-11-14 07:33:01 +01:00
[testenv:docs]
deps = -r{toxinidir}/tools/docs-requirements.txt
basepython = python2.7
commands =
2017-10-07 18:45:27 +02:00
sphinx-build -W -b html -d {envtmpdir}/doctrees docs docs/build/html
sphinx-build -W -b man -d {envtmpdir}/doctrees docs docs/build/man
2014-01-27 14:29:29 +01:00
[testenv:packaging]
2015-10-01 15:13:16 +02:00
deps =
2015-09-28 02:28:36 +02:00
check-manifest
2016-01-04 23:30:54 +01:00
readme_renderer
2015-10-01 15:13:16 +02:00
commands =
2015-09-28 02:28:36 +02:00
check-manifest
python setup.py check -m -r -s
[lint]
deps =
flake8==3.3.0
isort==4.2.5
commands =
flake8 .
isort --recursive --check-only --diff src/pip tests
2014-01-27 20:40:32 +01:00
[testenv:lint-py2]
basepython = python2
deps = {[lint]deps}
commands = {[lint]commands}
2014-01-27 20:40:32 +01:00
[testenv:lint-py3]
basepython = python3
deps = {[lint]deps}
commands = {[lint]commands}
2017-07-17 19:32:30 +02:00
[testenv:mypy]
basepython = python3
deps = mypy
commands =
mypy src
mypy src -2