Skip to content

Commit 63e70fd

Browse files
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 <karl.waldman@gmail.com>
1 parent 4157471 commit 63e70fd

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

‎tests/test_release_readiness.py‎

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -228,11 +228,10 @@ def test_secret_and_identity_workflows_only_run_default_branch_code() -> None:
228228
def test_packaging_configuration_remains_compatible_with_supported_python() -> None:
229229
project = (ROOT / "pyproject.toml").read_text()
230230

231-
# Python 3.8 resolves a setuptools release whose schema does not yet accept
232-
# the PEP 639 string form. Keep the PEP 621 table while 3.8 is supported.
231+
# Setuptools 77+ warns on the legacy license table
233232
assert 'requires = ["setuptools>=70.1,<77", "wheel"]' in project
234233
assert 'license = {file = "LICENSE"}' in project
235-
assert 'requires-python = ">=3.8"' in project
234+
assert 'requires-python = ">=3.10"' in project
236235
assert "[tool.ruff.lint]" in project
237236

238237

0 commit comments

Comments
 (0)