| 1 |
[tox] |
| 2 |
minversion = 4.0 |
| 3 |
envlist = clean,py38,py39,py310,py311,py312,py313,report |
| 4 |
skip_missing_interpreters = true |
| 5 |
|
| 6 |
[testenv] |
| 7 |
allowlist_externals = |
| 8 |
ruff |
| 9 |
passenv = |
| 10 |
FORCE_COLOR |
| 11 |
commands = |
| 12 |
python3 -m pytest --cov --cov-append --cov-report=term-missing jsonpickle tests {posargs} |
| 13 |
depends = |
| 14 |
{py38,py39,py310,py311,py312,py313}: clean |
| 15 |
report: py38,py39,py310,py311,py312,py313 |
| 16 |
extras = |
| 17 |
cov |
| 18 |
testing |
| 19 |
pip_version = pip |
| 20 |
sitepackages = true |
| 21 |
usedevelop = true |
| 22 |
|
| 23 |
[testenv:clean] |
| 24 |
deps = coverage |
| 25 |
skip_install = true |
| 26 |
commands = python3 -m coverage erase |
| 27 |
|
| 28 |
[testenv:docs] |
| 29 |
extras = |
| 30 |
docs |
| 31 |
testing |
| 32 |
changedir = docs |
| 33 |
commands = |
| 34 |
python3 -m sphinx -v . {toxinidir}/build/html |
| 35 |
|
| 36 |
[testenv:release] |
| 37 |
skip_install = True |
| 38 |
deps = |
| 39 |
build |
| 40 |
twine[keyring]>=1.13 |
| 41 |
path |
| 42 |
passenv = |
| 43 |
TWINE_PASSWORD |
| 44 |
setenv = |
| 45 |
TWINE_USERNAME = {env:TWINE_USERNAME:__token__} |
| 46 |
commands = |
| 47 |
python3 -c "import path; path.Path('dist').rmtree_p()" |
| 48 |
python3 -m build . |
| 49 |
python3 -m twine upload ./dist/* |
| 50 |
|
| 51 |
[testenv:report] |
| 52 |
deps = coverage |
| 53 |
skip_install = true |
| 54 |
commands = |
| 55 |
python3 -m coverage report |
| 56 |
python3 -m coverage html |