forked from python-attrs/cattrs
-
Notifications
You must be signed in to change notification settings - Fork 1
/
tox.ini
55 lines (50 loc) · 989 Bytes
/
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
# Keep docs in sync with docs env and .readthedocs.yml.
[gh-actions]
python =
3.8: py38
3.9: py39
3.10: py310
3.11: py311, lint
3.12: py312
pypy-3: pypy3
[tox]
envlist = pypy3, py38, py39, py310, py311, py312, lint
isolated_build = true
skipsdist = true
[testenv:lint]
basepython = python3.11
allowlist_externals =
make
pdm
commands =
pdm install -G lint
make lint
[testenv]
setenv =
PDM_IGNORE_SAVED_PYTHON="1"
allowlist_externals = pdm
commands =
pdm install -G :all,test
coverage run -m pytest tests {posargs}
passenv = CI
package = wheel
wheel_build_env = .pkg
[testenv:pypy3]
setenv =
PYTHONPATH = {toxinidir}:{toxinidir}/cattr
FAST = 1
allowlist_externals = pdm
commands =
pdm install -G :all,test
coverage run -m pytest tests {posargs}
passenv = CI
[testenv:docs]
basepython = python3.11
setenv =
PYTHONHASHSEED = 0
deps =
sphinx
zope.interface
commands =
make docs
allowlist_externals = make