forked from jannikmi/timezonefinder
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtox.ini
More file actions
29 lines (26 loc) · 1008 Bytes
/
tox.ini
File metadata and controls
29 lines (26 loc) · 1008 Bytes
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
[tox]
isolated_build = true
envlist =
# TODO python 3.13 with numba
integration,docs,py{39,310,311,312}{,-numba,-pytz},py313{,-pytz}
[testenv]
allowlist_externals = uv
commands =
!numba: uv run -v pytest -m "not integration" {posargs}
numba: uv run -v --group numba pytest -m "not integration" {posargs}
pytz: uv run -v --group pytz pytest -m "not integration" {posargs}
[testenv:integration]
description = run integration tests only
# run expensive integration tests only once (includes building sdist and wheel)
basepython = python3.13
allowlist_externals = uv
commands =
uv run -v pytest -m "integration" {posargs}
[testenv:docs]
description = build documentation
basepython = python3.12
allowlist_externals = uv,sphinx-build
commands =
uv run -v --group docs python3 --version
sphinx-build -d "{envtmpdir}{/}doctree" docs "{toxworkdir}{/}docs_out" --color -b html
python -c 'print(r"documentation available under file://{toxworkdir}{/}docs_out{/}index.html")'