Skip to content

Drop Python 3.7 - #2246

Open
mwtoews wants to merge 1 commit into
gitpython-developers:mainfrom
mwtoews:drop-py37
Open

mwtoews wants to merge 1 commit 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

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was re-generated using basedpyright --baselinemode=auto as suggested in the error message.

Comment thread pyproject.toml
omit = ["*/git/ext/*"]

[tool.ruff]
target-version = "py37"

@mwtoews mwtoews Sep 17, 2026

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This can be removed because project.requires-python is now specified (ref)

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.

1 participant