-
Notifications
You must be signed in to change notification settings - Fork 4
/
tox.ini
81 lines (76 loc) · 1.69 KB
/
tox.ini
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
# Generated from:
# https://github.com/zopefoundation/meta/tree/master/config/toolkit
[tox]
minversion = 3.18
envlist =
release-check
lint
py38
py39
py310
py311
py312
pypy3
docs
[testenv]
skip_install = true
deps =
setuptools < 69
zc.buildout >= 3.0.1
wheel > 0.37
setenv =
zope_i18n_compile_mo_files=True
py312: VIRTUALENV_PIP=23.1.2
py312: PIP_REQUIRE_VIRTUALENV=0
commands_pre =
{envbindir}/buildout -nc {toxinidir}/buildout.cfg buildout:directory={envdir}
commands =
{envdir}/bin/test-grok {posargs:-cv}
[testenv:checkversions]
commands_pre =
{envbindir}/buildout -nc {toxinidir}/buildout.cfg buildout:directory={envdir} install checkversions
commands =
{envdir}/bin/checkversions grok-versions.cfg []
[testenv:lint]
basepython = python3
commands_pre =
mkdir -p {toxinidir}/parts/flake8
allowlist_externals =
mkdir
commands =
isort --check-only --diff {toxinidir}/docs
flake8 {toxinidir}/docs
deps =
flake8
isort
[testenv:release-check]
description = ensure that the distribution is ready to release
basepython = python3
skip_install = true
deps =
twine
build
check-manifest
check-python-versions >= 0.20.0
wheel
commands_pre =
commands =
check-manifest
check-python-versions --only setup.py,tox.ini,.github/workflows/tests.yml
python -m build --sdist --no-isolation
twine check dist/*
[testenv:isort-apply]
basepython = python3
skip_install = true
commands_pre =
deps =
isort
commands =
isort {toxinidir}/docs []
[testenv:docs]
basepython = python3
deps =
-r docs/requirements.txt
commands_pre =
commands =
sphinx-build -b html -d docs/_build/doctrees docs docs/_build/html