From 63e70fdeb1d588b6088ad4cccf39b0eba9b7a568 Mon Sep 17 00:00:00 2001 From: Cursor Agent Date: Sun, 15 Nov 2026 16:22:35 +0000 Subject: [PATCH] Fix test to match new Python 3.10+ requirement Update test_packaging_configuration_remains_compatible_with_supported_python to expect requires-python >= 3.10 instead of >= 3.8, matching the change in PR #170. Also update the setuptools comment to match the simplified version in pyproject.toml. Co-authored-by: karlwaldman --- tests/test_release_readiness.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/tests/test_release_readiness.py b/tests/test_release_readiness.py index 4cae6aa..d48b714 100644 --- a/tests/test_release_readiness.py +++ b/tests/test_release_readiness.py @@ -228,11 +228,10 @@ def test_secret_and_identity_workflows_only_run_default_branch_code() -> None: def test_packaging_configuration_remains_compatible_with_supported_python() -> None: project = (ROOT / "pyproject.toml").read_text() - # Python 3.8 resolves a setuptools release whose schema does not yet accept - # the PEP 639 string form. Keep the PEP 621 table while 3.8 is supported. + # Setuptools 77+ warns on the legacy license table assert 'requires = ["setuptools>=70.1,<77", "wheel"]' in project assert 'license = {file = "LICENSE"}' in project - assert 'requires-python = ">=3.8"' in project + assert 'requires-python = ">=3.10"' in project assert "[tool.ruff.lint]" in project