Skip to content

Remove Python 3.7 support; deprecate Python 3.8 support#4825

Open
Repiteo wants to merge 2 commits intoSCons:masterfrom
Repiteo:bump-python
Open

Remove Python 3.7 support; deprecate Python 3.8 support#4825
Repiteo wants to merge 2 commits intoSCons:masterfrom
Repiteo:bump-python

Conversation

@Repiteo
Copy link
Contributor

@Repiteo Repiteo commented Feb 3, 2026

In setting up #4824, I've realized just how limited some of the type-aware tools are with a 3.7 baseline. While that alone wouldn't be enough to want to push for a version bump, I was curious and checked if any other areas of the repo are waiting on a version bump from 3.7 specifically. As it turns out, there were multiple! Combined with 3.7 no longer being supported on several GitHub runners (macos-15 & ubuntu-24.04), it made sense to drop that version outright & migrate over the functionality waiting on a 3.8 basline.

At this time, this PR is split into two commits; the second is dedicated to deprecating Python 3.8. While not as pertinent as dropping 3.7, even 3.8 has been well past eol for years now, and some of our analysis tools (mypy) have a minimum version of 3.9, so it's a reasonable target for an upcoming baseline. With that said, if this is too forward or warrants an entirely separate PR/discussion, then I can easily remove that commit and keep everything focused on the 3.7 removal instead.

Contributor Checklist:

  • I have created a new test or updated the unit tests to cover the new/changed functionality.
  • I have updated CHANGES.txt and RELEASE.txt (and read the README.rst).
  • I have updated the appropriate documentation

@mwichmann
Copy link
Collaborator

This was in the plan, though the discussion we had earlier was to deprecate both 3.7 and 3.8 and not directly drop 3.7 without a cooling off period.

@bdbaddog
Copy link
Contributor

bdbaddog commented Feb 3, 2026

Can you split this PR in two, one with logic to deprecate 3.7 and 3.8, and then another with changes enabled by that?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants