-
Notifications
You must be signed in to change notification settings - Fork 91
Update infrastructure for new pythons and prep for latest sphinx #706
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
490948a
Helper function for env app deprecation
choldgraf 7e0cf8d
More updates for latest sphinx
choldgraf 23239f6
Add compatibility function for app
choldgraf 73b6a18
Update to latest python and sphinx versions
choldgraf 981cd26
Clean up the env handler
choldgraf c190d44
More updates for new versions
choldgraf 2c407df
remove 3.9 tests
choldgraf cebcb93
Stop testing sphinx 9
choldgraf cfa9cad
no variables
choldgraf 885c401
Merge branch 'main' into maint/new-sphinx
bsipocz c98fbe8
Adding some narrative to version limits and consistency between requi…
bsipocz 65ba72b
Have to add the upper pin as we are still not compatible
bsipocz File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
| Original file line number | Diff line number | Diff line change | ||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -19,32 +19,26 @@ jobs: | |||||||||||||||||
| fail-fast: false | ||||||||||||||||||
| matrix: | ||||||||||||||||||
| os: [ubuntu-latest] | ||||||||||||||||||
| python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"] | ||||||||||||||||||
| sphinx: [""] # Newest Sphinx (any) | ||||||||||||||||||
| python-version: ["3.10", "3.11", "3.12", "3.13"] | ||||||||||||||||||
| sphinx: ["~=8.0"] # temporary limit, bring it back to newest sphinx once we are sphinx9 compatible | ||||||||||||||||||
| myst-parser: [""] # Newest MyST Parser (any) | ||||||||||||||||||
| include: | ||||||||||||||||||
| # Just check the other platforms once | ||||||||||||||||||
| - os: windows-latest | ||||||||||||||||||
| python-version: "3.12" | ||||||||||||||||||
| python-version: "3.13" | ||||||||||||||||||
| sphinx: "~=8.0" | ||||||||||||||||||
| myst-parser: "~=4.0" | ||||||||||||||||||
| pillow: "==11.0.0" | ||||||||||||||||||
| - os: macos-latest | ||||||||||||||||||
| python-version: "3.12" | ||||||||||||||||||
| python-version: "3.13" | ||||||||||||||||||
| sphinx: "~=8.0" | ||||||||||||||||||
| myst-parser: "~=4.0" | ||||||||||||||||||
| pillow: "==11.0.0" | ||||||||||||||||||
| - os: ubuntu-latest | ||||||||||||||||||
| python-version: "3.12" | ||||||||||||||||||
| python-version: "3.13" | ||||||||||||||||||
| sphinx: "~=8.0" | ||||||||||||||||||
| myst-parser: "~=4.0" | ||||||||||||||||||
| pillow: "==11.0.0" | ||||||||||||||||||
| # Oldest known-compatible dependencies | ||||||||||||||||||
| - os: ubuntu-latest | ||||||||||||||||||
| python-version: "3.9" | ||||||||||||||||||
| sphinx: "==5.0.0" | ||||||||||||||||||
| myst-parser: "==1.0.0" | ||||||||||||||||||
| pillow: "==11.0.0" | ||||||||||||||||||
| # Mid-range dependencies | ||||||||||||||||||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Keeping the oldest job
Suggested change
|
||||||||||||||||||
| - os: ubuntu-latest | ||||||||||||||||||
| python-version: "3.11" | ||||||||||||||||||
|
|
@@ -53,8 +47,8 @@ jobs: | |||||||||||||||||
| pillow: "==11.0.0" | ||||||||||||||||||
| # Newest known-compatible dependencies | ||||||||||||||||||
| - os: ubuntu-latest | ||||||||||||||||||
| python-version: "3.12" | ||||||||||||||||||
| sphinx: "==8.0.2" | ||||||||||||||||||
| python-version: "3.13" | ||||||||||||||||||
| sphinx: "~=8.0" | ||||||||||||||||||
| myst-parser: "==4.0.0" | ||||||||||||||||||
| pillow: "==11.0.0" | ||||||||||||||||||
|
|
||||||||||||||||||
|
|
||||||||||||||||||
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,7 +1,19 @@ | ||
| from typing import Any | ||
|
|
||
| from docutils.nodes import Element | ||
|
|
||
|
|
||
| def findall(node: Element): | ||
| # findall replaces traverse in docutils v0.18 | ||
| # note a difference is that findall is an iterator | ||
| return getattr(node, "findall", node.traverse) | ||
|
|
||
|
|
||
| def get_env_app(env: Any): | ||
| """Return the Sphinx app without triggering deprecated accessors.""" | ||
| # This is the new Sphinx app behavior | ||
| app = getattr(env, "_app", None) | ||
| if app is None: | ||
| # This was removed in Sphinx 9 | ||
| app = env.app | ||
| return app |
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
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
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
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
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
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
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
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
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
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
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
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we need to keep an "oldest" job around otherwise won't really spot when we silently drop support