2019-05-12 15:40:45 +00:00
|
|
|
[tox]
|
|
|
|
skipsdist = True
|
2021-03-26 02:29:45 +00:00
|
|
|
envlist = lint,docs,py36,py37,py38,py39,py310,mypy
|
2019-05-12 15:40:45 +00:00
|
|
|
deps = -r{toxinidir}/requirements.txt
|
2021-03-26 02:29:45 +00:00
|
|
|
skip_missing_interpreters=True
|
|
|
|
|
2019-05-12 15:40:45 +00:00
|
|
|
|
2019-05-12 17:38:49 +00:00
|
|
|
[travis]
|
|
|
|
python =
|
|
|
|
3.6: py36
|
2020-11-10 05:46:36 +00:00
|
|
|
3.7: py37
|
|
|
|
3.8: py38, lint, docs
|
|
|
|
3.9: py39
|
|
|
|
3.10: py310
|
2019-09-12 07:22:55 +00:00
|
|
|
pypy: pypy
|
|
|
|
pypy3: pypy3
|
2019-05-12 17:38:49 +00:00
|
|
|
|
2019-05-12 15:40:45 +00:00
|
|
|
[testenv]
|
|
|
|
setenv =
|
|
|
|
PYTHONPATH = {toxinidir}/src
|
|
|
|
deps =
|
|
|
|
-r{toxinidir}/requirements.txt
|
2020-05-15 03:04:52 +00:00
|
|
|
# libvirt-python==5.5.0
|
2019-08-26 11:11:58 +00:00
|
|
|
|
2019-05-12 15:40:45 +00:00
|
|
|
commands =
|
|
|
|
trial cowrie
|
|
|
|
|
|
|
|
[testenv:lint]
|
|
|
|
deps =
|
|
|
|
-r{toxinidir}/requirements.txt
|
|
|
|
-r{toxinidir}/requirements-dev.txt
|
|
|
|
commands =
|
2021-03-25 16:16:42 +00:00
|
|
|
flake8 --ignore E203,E501,W503 --count --application-import-names cowrie --statistics {toxinidir}/src
|
2020-11-10 05:46:36 +00:00
|
|
|
basepython = python3.8
|
2019-05-12 15:40:45 +00:00
|
|
|
|
|
|
|
[testenv:docs]
|
|
|
|
setenv =
|
|
|
|
PYTHONPATH = {toxinidir}/src
|
|
|
|
changedir = docs
|
|
|
|
deps =
|
|
|
|
-r{toxinidir}/requirements.txt
|
|
|
|
-r{toxinidir}/requirements-dev.txt
|
|
|
|
commands =
|
|
|
|
sphinx-build -W -b html -d {envtmpdir}/doctrees . {envtmpdir}/html
|
2020-11-10 05:46:36 +00:00
|
|
|
basepython = python3.8
|
2021-03-26 02:29:45 +00:00
|
|
|
|
|
|
|
[testenv:mypy]
|
|
|
|
description = run Mypy (static type checker)
|
|
|
|
|
|
|
|
deps =
|
2021-04-03 15:53:44 +00:00
|
|
|
-r{toxinidir}/requirements.txt
|
|
|
|
-r{toxinidir}/requirements-dev.txt
|
2021-03-26 02:29:45 +00:00
|
|
|
|
|
|
|
commands =
|
|
|
|
mypy \
|
|
|
|
--cache-dir="{toxworkdir}/mypy_cache" \
|
2021-04-03 15:53:44 +00:00
|
|
|
--config-file="{toxinidir}/mypy.ini" \
|
2021-03-26 02:29:45 +00:00
|
|
|
{tty:--pretty:} \
|
|
|
|
{posargs:src}
|