-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathtox.ini
More file actions
49 lines (46 loc) · 1.13 KB
/
Copy pathtox.ini
File metadata and controls
49 lines (46 loc) · 1.13 KB
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
[tox]
min_version = 4.0
env_list =
py310
py311
py312
py313
py314
[testenv]
runner = uv-venv-lock-runner
extras =
redis
memcached
# The Redis/Memcached suites are opt-in because they wipe the server they
# connect to; without these they skip. See tests/live_servers.py.
passenv =
CACHEX_TEST_REDIS_HOST
CACHEX_TEST_REDIS_PORT
CACHEX_TEST_MEMCACHED_HOST
CACHEX_TEST_MEMCACHED_PORT
CACHEX_REQUIRE_LIVE_SERVERS
commands = pytest {posargs:tests}
# Oldest supported stack: every direct dependency of the package, extras
# included, at the lower bound declared in pyproject.toml, on the oldest
# supported Python. Not in env_list; run it with `tox -e lowest`.
[testenv:lowest]
runner = uv-venv-runner
base_python = python3.10
uv_resolution = lowest-direct
extras =
redis
memcached
jwt
# These are direct requirements here too, so they resolve to their floors.
# Starlette 1.0's TestClient needs httpx (newer releases use httpx2).
deps =
httpx>=0.27.0
pytest>=8.3.5
pytest-asyncio>=0.26.0
[gh-actions]
python =
3.10: py310
3.11: py311
3.12: py312
3.13: py313
3.14: py314