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