Fix CI: use Python 3.10 for docs job#63
Open
kephale wants to merge 1 commit into
Open
Conversation
The docs job was configured to use Python 3.9, but pyproject.toml requires Python >=3.10. This caused `pip install ".[docs]"` to fail because the package itself cannot be installed on Python 3.9. Also updates: - actions/checkout and actions/setup-python to v4/v5 in test and deploy jobs (docs job already used v4/v5) - Python classifiers to match actually supported versions (3.10-3.12) - black and ruff target-version to py310 (matching requires-python)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
pyproject.tomlrequires>=3.10, causingpip install ".[docs]"to fail with a version incompatibility error. Changed to Python 3.10.actions/checkoutfrom v2 to v4 andactions/setup-pythonfrom v2 to v5 in the test and deploy jobs (the docs job already used v4/v5).target-versionfrom py38 to py310, matching the project'srequires-python = ">=3.10".Context
The last 3 CI runs (Feb 2025) all failed. The most recent run on
main(run 22385795318) shows all 9 test matrix jobs passing, but the docs job fails at the "Install dependencies" step because Python 3.9 cannot satisfyrequires-python = ">=3.10".Test plan