| 1 |
[tox] |
| 2 |
envlist = py310,py311,py312,py313,scaffolds,sqlalchemy-1.4,sqlalchemy-2,pep8 |
| 3 |
|
| 4 |
[testenv] |
| 5 |
deps = sqlalchemy > 1.4 |
| 6 |
-r{toxinidir}/test-requirements.txt |
| 7 |
commands={envpython} -m pip freeze |
| 8 |
pytest -v |
| 9 |
|
| 10 |
[testenv:sqlalchemy-1.4] |
| 11 |
deps = sqlalchemy < 2 |
| 12 |
-r{toxinidir}/test-requirements.txt |
| 13 |
commands={envpython} -m pip freeze |
| 14 |
pytest -v |
| 15 |
|
| 16 |
[testenv:sqlalchemy-2] |
| 17 |
deps = sqlalchemy >= 2 |
| 18 |
-r{toxinidir}/test-requirements.txt |
| 19 |
commands={envpython} -m pip freeze |
| 20 |
pytest -v |
| 21 |
|
| 22 |
[testenv:scaffolds] |
| 23 |
deps = -r{toxinidir}/test-requirements.txt |
| 24 |
changedir={envdir}/tmp |
| 25 |
commands=pecan create testing123 |
| 26 |
{envpython} testing123/setup.py install |
| 27 |
pycodestyle --repeat --show-source testing123/setup.py testing123/testing123 |
| 28 |
{envpython} -m pip freeze |
| 29 |
{envpython} {toxinidir}/pecan/tests/scaffold_builder.py |
| 30 |
|
| 31 |
[testenv:pep8] |
| 32 |
deps = pycodestyle |
| 33 |
commands = pycodestyle --repeat --show-source pecan setup.py --ignore=E402,W504 |
| 34 |
|
| 35 |
# Generic environment for running commands like packaging |
| 36 |
[testenv:venv] |
| 37 |
commands={posargs} |
| 38 |
|
| 39 |
[testenv:docs] |
| 40 |
deps = sphinx >= 5.0 |
| 41 |
commands = sphinx-build -W -b html docs/source docs/build/html |