forked from cherrypy/cheroot
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtox.ini
More file actions
81 lines (73 loc) · 1.96 KB
/
tox.ini
File metadata and controls
81 lines (73 loc) · 1.96 KB
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
81
[tox]
envlist = python
minversion = 3.11.1
requires =
pip >= 9
[testenv]
deps =
pip >= 9
setuptools>=31.0.1
whitelist_externals =
rm
bash
test
commands =
rm -rf .eggs/
bash -c "if [[ '{env:CIRCLECI:disabled}' == 'disabled' ]]; then pytest --testmon-off {posargs}; fi"
bash -c "if [[ '{env:CIRCLECI:disabled}' != 'disabled' ]]; then circleci tests glob **/test/**.py | circleci tests split --split-by=timings | grep -v '__init__.py' | xargs pytest --testmon-off {posargs}; fi"
codecov -f coverage.xml -X gcov
usedevelop = True
extras = testing
passenv =
WEBTEST_INTERACTIVE
CI
TRAVIS
TRAVIS_*
APPVEYOR
APPVEYOR_*
CIRCLECI
CIRCLE_*
PYTHONDONTWRITEBYTECODE
PYTEST_*
setenv =
PYTHONDONTWRITEBYTECODE=x
WEBTEST_INTERACTIVE=false
[testenv:build-docs]
basepython = python3.7
description = Build The Docs
changedir = docs
#-a -n -W \
commands =
python -m sphinx \
-b html --color \
-d "{toxworkdir}/docs_doctree" \
. "{toxworkdir}/docs_out"
# Print out the output docs dir and a way to serve html:
python -c \
'import pathlib; '\
'docs_dir = pathlib.Path(r"{toxworkdir}") / "docs_out"; index_file = docs_dir / "index.html"; print(f"\nDocumentation available under `file://\{index_file\}`\n\nTo serve docs, use `python3 -m http.server --directory \{docs_dir\} 0`\n")'
extras =
docs
testing
[testenv:watch]
commands = ptw --runner=pytest
[testenv:pre-commit]
deps =
{[testenv]deps}
pre-commit
commands = pre-commit run --all-files {posargs}
[testenv:pre-commit-failing]
deps =
{[testenv:pre-commit]deps}
commands = pre-commit run --config .pre-commit-config.yaml.failing --all-files {posargs}
[testenv:setup-check]
deps =
setuptools-scm
twine
extras =
docs
usedevelop = False
commands =
python -m setup checkdocs check --metadata --restructuredtext --strict --verbose
python -m twine check .tox/dist/*
python -m setuptools_scm ls