File: tox.ini

package info (click to toggle)
python-deprecated 1.3.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 3,340 kB
  • sloc: python: 1,656; makefile: 32
file content (53 lines) | stat: -rw-r--r-- 1,532 bytes parent folder | download
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
50
51
52
53
# Tox configuration file
# ======================
#
# Tox (https://tox.readthedocs.io/) is a tool for running tests
# in multiple virtualenvs. This configuration file will run the
# test suite on all supported python versions. To use it, "pip install tox"
# and then run "tox" from this directory.

[tox]
# PyPy configuration (on Linux/OSX):
# - /usr/local/bin/pypy3 -> /opt/pypy3.6-v7.3.0-osx64/bin/pypy3
envlist =
    py{37,38}-wrapt{1.10,1.11,1.12,1.13,1.14}
    py{39,310}-wrapt{1.10,1.11,1.12,1.13,1.14,1.15,1.16,1.17,2.0}
    py{311}-wrapt{1.14,1.15,1.16,1.17,2.0}
    py{312}-wrapt{1.16,1.17,2.0}
    py{313,314}-wrapt{1.17,2.0}
    pypy3
    coverage
    docs

[testenv]
commands = pytest tests/
deps =
    py{37,38,39,310,311,312,313,314,py3}: PyTest
    wrapt1.10: wrapt ~= 1.10.0
    wrapt1.11: wrapt ~= 1.11.0
    wrapt1.12: wrapt ~= 1.12.0
    wrapt1.13: wrapt ~= 1.13.0
    wrapt1.14: wrapt ~= 1.14.0
    wrapt1.15: wrapt ~= 1.15.0
    wrapt1.16: wrapt ~= 1.16.0
    wrapt1.17: wrapt ~= 1.17.0
    wrapt2.0: wrapt ~= 2.0.0
    setuptools; python_version>="3.12"

[testenv:coverage]
basepython = python
commands =
    pytest --cov-report=term-missing --cov=deprecated --cov-report=html tests/
deps =
    coverage
    pytest
    pytest-cov
    setuptools; python_version>="3.12"

[testenv:docs]
basepython = python
deps =
    -r docs/requirements.txt
commands =
    sphinx-build -b html -d {envtmpdir}/doctrees docs/source/ {envtmpdir}/html
    sphinx-build -b epub -d {envtmpdir}/doctrees docs/source/ {envtmpdir}/epub