-
Notifications
You must be signed in to change notification settings - Fork 32
/
tox.ini
49 lines (38 loc) · 1.38 KB
/
tox.ini
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
# Tox (http://tox.testrun.org/) is a tool for running Python test suites on
# multiple versions of Python with a single command. This configuration file
# will run the test suite on all supported Python versions. To use it,
# `pip-accel install tox' and then run `tox' from this directory.
[tox]
envlist = py27, py34, py35, py36, py37, pypy, pypy3
[testenv]
deps =
--requirement=requirements-tests.txt
--constraint=constraints.txt
commands = py.test --cov {posargs}
passenv = TRAVIS
[pytest]
addopts = -p no:logging --verbose
python_files = py2deb/tests.py
[flake8]
exclude = .tox
extend-ignore = D211,D401,D412
max-line-length = 120
# The following sections force Tox to create virtual environments based on
# Python binaries that are (assumed to be) installed using Debian packages
# because this is required for py2deb to function properly. This forces Tox to
# sidestep the custom compiled Python binaries that are used on Travis CI by
# default. See https://github.com/paylogic/py2deb/issues/3.
[testenv:py27]
basepython = /usr/bin/python2.7
[testenv:py35]
basepython = /usr/bin/python3.5
[testenv:py36]
basepython = /usr/bin/python3.6
[testenv:py37]
basepython = /usr/bin/python3.7
[testenv:pypy]
basepython = /usr/bin/pypy
install_command = {toxinidir}/scripts/pypy.sh {opts} {packages}
[testenv:pypy3]
basepython = /usr/bin/pypy3
install_command = {toxinidir}/scripts/pypy.sh {opts} {packages}