build: 添加Python3.13支持并更新 tox 配置

1. 新增Python3.13版本的分类支持
2. 启用isolated_build模式,切换依赖安装为.[dev]
3. 简化pytest执行参数,新增传递更多环境变量
This commit is contained in:
2026-06-20 14:04:23 +08:00
parent 9f9f48743b
commit 3b793b41f3
2 changed files with 9 additions and 5 deletions
+1
View File
@@ -5,6 +5,7 @@ classifiers = [
"Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12", "Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.8", "Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9", "Programming Language :: Python :: 3.9",
"Topic :: Software Development :: Libraries :: Application Frameworks", "Topic :: Software Development :: Libraries :: Application Frameworks",
+8 -5
View File
@@ -1,4 +1,5 @@
[tox] [tox]
isolated_build = true
envlist = py38, py39, py310, py311, py312, py313 envlist = py38, py39, py310, py311, py312, py313
min_version = 4.0 min_version = 4.0
requires = tox-uv requires = tox-uv
@@ -7,12 +8,14 @@ skipsdist = true
[testenv] [testenv]
uv_sync = true uv_sync = true
deps = deps =
. .[dev]
.[tox]
commands = commands =
pytest -m "not slow" -n 2 --dist=loadfile {posargs} pytest -m "not slow" {posargs}
passenv = * passenv =
CI
GITHUB_*
UV_*
PYTHON*
setenv = setenv =
PYTHONPATH = {toxinidir}/src PYTHONPATH = {toxinidir}/src
PYTHONDONTWRITEBYTECODE = 1 PYTHONDONTWRITEBYTECODE = 1
QT_QPA_PLATFORM = offscreen