From 3b793b41f3dc9129a0077b84b5d2f1095ad0c5a2 Mon Sep 17 00:00:00 2001 From: gooker_young Date: Sat, 20 Jun 2026 14:04:23 +0800 Subject: [PATCH] =?UTF-8?q?build:=20=E6=B7=BB=E5=8A=A0Python3.13=E6=94=AF?= =?UTF-8?q?=E6=8C=81=E5=B9=B6=E6=9B=B4=E6=96=B0=20tox=20=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 1. 新增Python3.13版本的分类支持 2. 启用isolated_build模式,切换依赖安装为.[dev] 3. 简化pytest执行参数,新增传递更多环境变量 --- pyproject.toml | 1 + tox.ini | 13 ++++++++----- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 06e90dc..fb65601 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -5,6 +5,7 @@ classifiers = [ "Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", + "Programming Language :: Python :: 3.13", "Programming Language :: Python :: 3.8", "Programming Language :: Python :: 3.9", "Topic :: Software Development :: Libraries :: Application Frameworks", diff --git a/tox.ini b/tox.ini index 2c70125..bae5008 100644 --- a/tox.ini +++ b/tox.ini @@ -1,4 +1,5 @@ [tox] +isolated_build = true envlist = py38, py39, py310, py311, py312, py313 min_version = 4.0 requires = tox-uv @@ -7,12 +8,14 @@ skipsdist = true [testenv] uv_sync = true deps = - . - .[tox] + .[dev] commands = - pytest -m "not slow" -n 2 --dist=loadfile {posargs} -passenv = * + pytest -m "not slow" {posargs} +passenv = + CI + GITHUB_* + UV_* + PYTHON* setenv = PYTHONPATH = {toxinidir}/src PYTHONDONTWRITEBYTECODE = 1 - QT_QPA_PLATFORM = offscreen