-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
78 lines (69 loc) · 1.46 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
[tox]
requires = tox>=4
envlist = py312
[flake8]
max-line-length = 100
[testenv:py312]
description = run pytest with code coverage
setenv =
PYTHONPATH = {toxinidir}/src
deps =
pytest
pytest-cov
commands = pytest --cov=pytracetoix --cov-report=term-missing
[testenv:lint]
description = run linter with flake8
deps =
flake8
commands =
flake8 src/pytracetoix/pytracetoix.py
[testenv:build-docs]
description = build docs
skip_install = true
deps =
sphinx
sphinx_rtd_theme
commands = sphinx-build -b html . docs
[testenv:build-package]
description = build package
skip_install = true
deps =
build
commands = python -m build
[testenv:publish-dev]
description = publish to test.pypi.org
skip_install = true
allowlist_externals = tox
deps =
build
twine
commands =
tox -e lint
tox -e py312
tox -e build-docs
tox -e build-package
python -m twine upload --skip-existing --config-file "{env:HOME}/.pypirc-dev" dist/*
[testenv:publish]
description = publish to pypi.org
skip_install = true
allowlist_externals = tox
deps =
build
twine
commands =
tox -e lint
tox -e py312
tox -e build-docs
tox -e build-package
python -m twine upload --skip-existing --config-file "{env:HOME}/.pypirc" dist/*
[testenv:example-README]
commands =
python examples/example-README.py
[testenv:example-flask-1]
deps =
Flask
changedir = examples/examples-flask-1
setenv =
FLASK_ENV = development
commands =
flask run