Skip to content

Conversation

parthea
Copy link
Contributor

@parthea parthea commented Sep 29, 2025

Python 3.14 release is expected on 2025-10-07
https://peps.python.org/pep-0745/

This is blocked on stable support for 3.14 in Github actions

Installed versions
  Version 3.14 was not found in the local cache

https://github.com/googleapis/gapic-generator-python/actions/runs/18100235130/job/51501066926?pr=2451

@parthea parthea requested a review from a team as a code owner September 29, 2025 14:20
@product-auto-label product-auto-label bot added the size: m Pull request size is medium. label Sep 29, 2025
@parthea parthea added the status: blocked Resolving the issue is dependent on other work. label Sep 29, 2025
DEFAULT_PYTHON_VERSION = ALL_PYTHON[-1]
# TOOD(https://github.com/googleapis/gapic-generator-python/issues/2450):
# Add tests for Python 3.15 alpha1
# https://peps.python.org/pep-0790/
Copy link
Contributor

Choose a reason for hiding this comment

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

Why do we need this TODO here? The nox tests are parametrized below, so by changing the variables with the Python versions above, we can control what gets tested. I'd remove this TODO.

]

DEFAULT_PYTHON_VERSION = ALL_PYTHON[-2]
DEFAULT_PYTHON_VERSION = ALL_PYTHON[-1]
Copy link
Contributor

Choose a reason for hiding this comment

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

Rather than changing the subscripts as new stable vs prerelease versions are release, let's just be explicit for now, as in the GitHub tests.yaml

Suggested change
DEFAULT_PYTHON_VERSION = ALL_PYTHON[-1]
DEFAULT_PYTHON_VERSION = "3.14"
PREVIEW_PYTHON_VERSION = "3.15" # later, once the preview is released.

What I think could be even better long-term (outside the scope of this PR!) is to query something to determine the latest stable and preview version of Python so the tests adapt automatically. But that's a separate discussion/investigation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size: m Pull request size is medium. status: blocked Resolving the issue is dependent on other work.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants