-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
59 lines (52 loc) · 1.12 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
[tox]
requires = tox>=4
envlist = py312
[flake8]
max-line-length = 100
[testenv:lint]
description = run linter with flake8
deps =
flake8
commands =
flake8 --ignore=E722,E402,W503 usr/lib/renametoix
[testenv:clean]
description = removes temporary folders
skip_install = true
commands =
python tools/prepare.py clean
[testenv:test-py312]
description = run pytest
setenv =
PYTHONPATH = {toxinidir}/src
deps =
pytest
commands = pytest
[testenv:build-package]
description = build package
skip_install = true
deps =
build
commands =
tox -e lint
python tools/prepare.py prepare-pip
python -m build
[testenv:publish-dev]
description = publish to test.pypi.org
skip_install = true
allowlist_externals = tox
deps =
build
twine
commands =
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 build-package
python -m twine upload --skip-existing --config-file "{env:HOME}/.pypirc" dist/*