Skip to content

Drop Python 3.7 - #2246

Merged
Byron merged 2 commits into
gitpython-developers:mainfrom
mwtoews:drop-py37
Sep 20, 2026
Merged

Byron merged 2 commits into
gitpython-developers:mainfrom
mwtoews:drop-py37

Conversation

@mwtoews

@mwtoews mwtoews commented Sep 17, 2026

Copy link
Copy Markdown
Contributor

Unsure if this is good timing or not, but Python 3.7 reached it's EOL in 2023 (PEP 537), so is overdue to be dropped. This helps reduce the maintenance burden and reduces the CI churn, which are good things. It was 5 years ago this project dropped Python 3.6, for reference.

A few old bits of Python 2 are also identified and modernized, like IOError -> OSError and other minor changes.

@mwtoews
mwtoews force-pushed the drop-py37 branch 2 times, most recently from 36787c0 to 7ae7130 Compare September 17, 2026 10:51
Comment thread .basedpyright/baseline.json
Comment thread pyproject.toml
Looked at each hunk and Astra also performed a thorough review.
I mainly vetted for improper changes that could sneak in with a PR like this.

Assisted-by: GPT 6.0
@Byron

Byron commented Sep 20, 2026

Copy link
Copy Markdown
Member

Thanks a lot, I also think it should be fine to drop support and simplify the code accordingly.

CC @EliahKagan if there is anything speaking against dropping py 3.7, we can undo this change as well (while I hope that won't be necessary.

@Byron
Byron merged commit 583ecaa into gitpython-developers:main Sep 20, 2026
47 checks passed
@mwtoews
mwtoews deleted the drop-py37 branch September 20, 2026 09:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants