2015-12-30 16:58:28 +01:00
|
|
|
[tox]
|
2023-08-10 00:18:02 +02:00
|
|
|
envlist = py38, py39, py310, py311, docs, flake8
|
2015-12-30 16:58:28 +01:00
|
|
|
|
2020-05-09 01:08:16 +02:00
|
|
|
[gh-actions]
|
|
|
|
python =
|
|
|
|
2.7: py27
|
|
|
|
3.6: py36
|
|
|
|
3.7: py37
|
|
|
|
3.8: py38
|
2021-10-30 22:21:34 +02:00
|
|
|
3.9: py39
|
|
|
|
3.10: py310
|
2023-04-19 22:15:47 +02:00
|
|
|
3.11: py311
|
2023-08-10 00:18:02 +02:00
|
|
|
3.12: py312
|
2020-05-09 01:08:16 +02:00
|
|
|
|
2015-12-30 16:58:28 +01:00
|
|
|
[testenv]
|
2023-08-10 00:18:02 +02:00
|
|
|
deps = jaconv
|
2015-12-30 16:58:28 +01:00
|
|
|
coverage
|
2016-03-28 14:23:18 -07:00
|
|
|
scripttest
|
2016-07-24 01:53:37 +02:00
|
|
|
mock
|
2023-09-17 23:24:16 +02:00
|
|
|
pytest>=7.4
|
2016-08-30 13:09:29 +02:00
|
|
|
pytest-cov
|
2016-09-27 19:50:33 +02:00
|
|
|
pytest-mock
|
2023-09-17 23:24:16 +02:00
|
|
|
hypothesis>=6.83
|
2019-10-07 07:25:28 +02:00
|
|
|
python-barcode
|
2023-08-17 01:37:50 +02:00
|
|
|
extras = all
|
2023-08-15 01:03:36 +02:00
|
|
|
commands = pytest
|
2023-04-19 22:18:25 +02:00
|
|
|
passenv = ESCPOS_CAPABILITIES_PICKLE_DIR, ESCPOS_CAPABILITIES_FILE, CI, TRAVIS, TRAVIS_*, APPVEYOR, APPVEYOR_*, CODECOV_*
|
2023-08-15 01:03:36 +02:00
|
|
|
setenv = PY_IGNORE_IMPORTMISMATCH=1
|
2016-06-20 16:41:46 +02:00
|
|
|
|
|
|
|
[testenv:docs]
|
|
|
|
basepython = python
|
|
|
|
changedir = doc
|
2023-08-24 23:02:33 +02:00
|
|
|
deps = sphinx>=7.2.3
|
2016-06-20 16:41:46 +02:00
|
|
|
setuptools_scm
|
2019-10-07 07:25:28 +02:00
|
|
|
python-barcode
|
2023-10-05 14:15:19 +02:00
|
|
|
sphinx-argparse
|
2023-09-07 22:08:31 +02:00
|
|
|
sphinxcontrib-spelling>=8.0.0
|
2023-07-29 02:02:13 +02:00
|
|
|
sphinxcontrib.datatemplates
|
2023-08-24 23:02:33 +02:00
|
|
|
sphinx-autodoc-typehints
|
2021-10-30 22:21:34 +02:00
|
|
|
sphinx_rtd_theme
|
2023-08-10 01:38:47 +02:00
|
|
|
pycups
|
2016-06-20 16:41:46 +02:00
|
|
|
commands = sphinx-build -W -b html -d {envtmpdir}/doctrees . {envtmpdir}/html
|
2023-09-07 22:08:31 +02:00
|
|
|
sphinx-build -W -b spelling -d {envtmpdir}/doctrees . {envtmpdir}/spelling
|
2017-01-30 01:26:50 +01:00
|
|
|
|
|
|
|
[testenv:flake8]
|
|
|
|
basepython = python
|
|
|
|
deps = flake8
|
2023-08-15 01:03:36 +02:00
|
|
|
flake8-docstrings
|
2017-01-30 01:26:50 +01:00
|
|
|
commands = flake8
|
2023-08-15 01:03:36 +02:00
|
|
|
|
|
|
|
[testenv:mypy]
|
|
|
|
basepython = python
|
|
|
|
deps = mypy
|
|
|
|
types-six
|
2023-09-17 23:24:16 +02:00
|
|
|
types-mock
|
2023-08-15 01:03:36 +02:00
|
|
|
types-PyYAML
|
|
|
|
types-appdirs
|
|
|
|
types-Pillow
|
2023-08-25 01:19:23 +02:00
|
|
|
types-pyserial
|
2023-10-31 13:55:48 +01:00
|
|
|
types-pywin32>=306.0.0.6
|
2023-09-17 23:24:16 +02:00
|
|
|
hypothesis>=6.83
|
2023-08-15 01:03:36 +02:00
|
|
|
jaconv
|
2023-09-17 23:24:16 +02:00
|
|
|
commands = mypy src test
|