GeezerVison is showing github.com — Add support for Python 3.15 by hugovk · Pull Request #2183 · gitpython-developers/GitPython
Conversation
The Python 3.15 beta is out. 🚀
The 3.15 release manager (👋 hi, that's me!) said:
We strongly encourage maintainers of third-party Python projects to test with 3.15 during the beta phase and report issues found to the Python bug tracker as soon as possible. While the release is planned to be feature-complete entering the beta phase, it is possible that features may be modified or, in rare cases, removed up until the start of the release candidate phase (2026-08-04). Our goal is to have no ABI changes after beta 4 and as few code changes as possible after the first release candidate. To achieve that, it will be extremely important to get as much exposure for 3.15 as possible during the beta phase.
This includes creating pre-release wheels for 3.15, as it helps other projects to do their own testing. However, we recommend that your regular production releases wait until 3.15.0rc1, to avoid the risk of ABI breaks.
Also declare support for 3.13-3.15 with Trove classifiers.
And includes a suggestion: stop testing free-threaded 3.13t. It was experimental, 3.14t and up are properly supported and have better performance, and many other projects are stopping testing 3.13t, such as cibuildwheel and Pillow.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
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.
Pull request overview
Adds CI coverage and packaging metadata updates to recognize and exercise Python 3.15 (including free-threaded builds) during the beta period, aligning GitPython’s declared support with current upstream Python testing guidance.
Changes:
- Add Trove classifiers for Python 3.13–3.15 in
setup.py.
- Extend the GitHub Actions test matrix to run on Python 3.15 / 3.15t and stop testing 3.13t.
- Mark 3.15 / 3.15t as “experimental” to enable
actions/setup-python pre-release installs via allow-prereleases.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.
| File |
Description |
| setup.py |
Adds Trove classifiers for Python 3.13–3.15 to reflect supported versions. |
| .github/workflows/pythonpackage.yml |
Updates CI matrix to add 3.15/3.15t and remove 3.13t, enabling prereleases for 3.15 via allow-prereleases. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|
|
python-version: "3.13" # FIXME: Fix and enable Python 3.13 and 3.14 on Windows (#1955).
|
|
|
- os-type: windows
|
|
|
python-version: "3.13t"
|
|
|
python-version: "3.13" # FIXME: Fix and enable Python 3.13-3.15 on Windows (#1955).
|
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.
@EliahKagan I wonder if this comment is still valid? We have been running on Windows for a while, even though maybe not with all tests enabled.
My hope would be that with the improvements to deterministic destruction, more tests can work as filehandles will be closed more reliably.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
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.
The semantics of os.path.isabs changed in Python 3.13 on Windows. This had caused the behavior of code like index.remove('/only/looks/absolute') to differ, such that it was not immediately obvious what the behavior should be. It caused a test to fail, but that could not reasonably be fixed without figuring out what ought to actually happen.
I think it's very likely that GitPython has or had bugs that would make this behavior wrong both before and after the chage, though I am not sure. Really, all uses of os.path.isabs, including when spelling it osp.isabs after import os.path as osp, should be audited, and also compared to the uses of the is_absolute method of Path, which I believe had always regarded paths beginning with a single separator as non-absolute on Windows.
I had meant to fix this in #1955 but that ended up stalling due to my inability to put much time into GitPython at the time, and I very much agree with its closure--I should've myself closed it much earlier, to make clearer to others that they should feel welcome to contribute tests and fixes.
To be clear, paths on Windows that start with a single / or \ are indeed not absolute, because they are relative to the current drive. (A path that starts with a single / on a Unix-like system is of course absolute.) However, it may be that existing code in GitPython also assumes that, even on Windows, all relative paths are relative to a specific directory, rather than unconditionally specifying a root directory but relative to the current drive. So the way GitPython handles relative and absolute paths in general, including but not limited to when it uses os.path.isabs or pathlib.Path.is_absolute or related functions, should be examined in case there are bugs.
I suspect that, these days, all of this can be examined, and any findings rechecked and remediated, fairly efficiently.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Byron reacted with thumbs up emoji
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.
Thanks so much for the clarification. It took me a while to realize that a leading slash means relative to the current drive, as opposed to the current dir which I was auto-correcting this into :D.
GitPython doesn't have the infrastructure yet for discussion to keep track of things, probably also because I don't feel too compelled to actually do it 😅. Maybe once Gitoxide is in a place where it could be integrated I will feel the need to do a quality push.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Byron
left a comment
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
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.
What an honor, thanks a lot for setting this up for us!
And of course, good to see that it just works!
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Reviewers
Byron
Byron approved these changes
Uh oh!
There was an error while loading. Please reload this page.
Assignees
No one assigned
Milestone
No milestone
Development
Successfully merging this pull request may close these issues.
Uh oh!
There was an error while loading. Please reload this page.
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.
|