Skip to content

Update Python versions - #251

Merged
vstinner merged 10 commits into
psf:mainfrom
hugovk:update-versions
Aug 5, 2026
Merged

Update Python versions#251
vstinner merged 10 commits into
psf:mainfrom
hugovk:update-versions

Conversation

@hugovk

@hugovk hugovk commented Aug 3, 2026

Copy link
Copy Markdown
Contributor

Add:

  • Python 3.13-3.15
  • Python 3.14-3.15 free-threaded
  • PyPy 3.11

Drop:

  • Python 3.9: EOL
  • PyPy 3.9-3.10: EOL
  • Python 3.13 free-threaded: experimental
  • Details about which version to use for Python 2: no longer important

Change:

  • Test free-threaded via GitHub Actions rather than deadsnakes. I think GHA's free-threading wasn't yet supported when we initially added it.
  • Update PyPI links.

@vstinner vstinner left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM

@vstinner

vstinner commented Aug 5, 2026

Copy link
Copy Markdown
Member

pre-commit fails with: Error: pyperf/_hooks.py:21:8: UP036 Version block is outdated for minimum Python version

Code:

def get_hooks():
    hook_prefix = "pyperf.hook"
    entry_points = importlib.metadata.entry_points()
    if sys.version_info[:2] < (3, 10):  # <======= HERE =====
        group = entry_points[hook_prefix]
    else:
        group = entry_points.select(group=hook_prefix)
    return group

The code path for Python 3.9 and older can now be removed.

@vstinner
vstinner merged commit 01860b6 into psf:main Aug 5, 2026
14 checks passed
@vstinner

vstinner commented Aug 5, 2026

Copy link
Copy Markdown
Member

Merged, thanks.

@hugovk
hugovk deleted the update-versions branch August 5, 2026 17:28
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.

2 participants