-
Notifications
You must be signed in to change notification settings - Fork 30
/
Copy pathtox.ini
80 lines (64 loc) · 1.83 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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
[tox]
skip_missing_interpreters = true
envlist =
flake8
py39-{tw203,tw2210,twtrunk,asyncio}
# Twisted <22.10 on Python 3.11 fails with:
# src/twisted/test/raiser.c:198:12: fatal error: longintrepr.h: Datei oder Verzeichnis nicht gefunden
py311-{ tw2210,twtrunk,asyncio}
pypy39-{tw203,tw2210,twtrunk,asyncio}
pypy310-{tw203,tw2210,twtrunk,asyncio}
# MAP: GitHub Actions Python Name => Tox Env Name (for Python)
#
# when called without a specific environment ("-e"), detect the
# python version / get from GH action, and map to tox env
#
# https://github.com/ymyzk/tox-gh-actions
#
[gh-actions]
python =
3.9: py39
3.11: py311
pypy-3.9: pypy38
pypy-3.10: pypy310
[testenv]
deps =
pytest==7.2.1
coverage==7.0.5
tw203: twisted==20.3.0
tw2210: twisted==22.10.0
twtrunk: https://github.com/twisted/twisted/archive/trunk.zip
{tw203,tw2210,twtrunk}: pytest-twisted==1.10
changedir=test
# this is so that our combined coverage files all have the same paths
# for the txaio code; thanks ionelmc on #python
usedevelop=true
allowlist_externals =
sh
coverage
commands =
pytest -W ignore::DeprecationWarning -v -s --basetemp=/tmp
# sh -c "coverage run --parallel-mode --source=txaio `which pytest` -v -s --basetemp=/tmp"
[testenv:flake8]
deps =
flake8
changedir=.
commands =
flake8 -v --statistics \
--max-line-length=119 txaio/ \
test/ \
--exclude=test/_asyncio_test_utils.py
[testenv:sphinx]
description =
Generate docs using Sphinx.
skip_install = False
deps =
sphinx
sphinx_rtd_theme
commands =
python -V
sphinx-build --version
# first test with all warnings fatal
sphinx-build -nWT -b dummy {toxinidir}/docs {toxinidir}/docs/_build
# generate HTML output
sphinx-build -b html {toxinidir}/docs {toxinidir}/docs/_build