Skip to content

feat: support Python 3.15 - #2837

Merged
daniel-sanche merged 3 commits into
mainfrom
support_315
Oct 7, 2026
Merged

daniel-sanche merged 3 commits into
mainfrom
support_315

Conversation

@daniel-sanche

@daniel-sanche daniel-sanche commented Oct 7, 2026 •

Copy link
Copy Markdown
Contributor

Adds classifier declaring 3.15 support to google-api-python-client

@product-auto-label product-auto-label Bot added size: m Pull request size is medium. samples Issues that are directly related to samples. labels Oct 7, 2026

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Code Review

This pull request adds support for Python 3.15 across the repository, updating CI configurations (Kokoro, GitHub repository settings), documentation (README, CONTRIBUTING), and testing configurations (noxfile, owlbot, setup.py). However, the testing/constraints-3.15.txt file is missing, which will cause the newly added unit-3.15 Nox session to fail when trying to install dependencies from the non-existent constraints file.

Comment thread noxfile.py
Comment thread CONTRIBUTING.rst Outdated

- The feature must work fully on the following CPython versions:
3.10, 3.11, 3.12, 3.13, and 3.14 on both UNIX and Windows.
3.10, 3.11, 3.12, 3.13, 3.14, and 3.15 on both UNIX and Windows.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

This is ancillary to your task, but:

In the monorepo, we migrated to a central CONTRIBUTING.rst file and dropped all references to versions. If a user wants to know what the supported versions are, there are better canonical sources in our code base OR PyPI that provide this info (pyproject.toml, setup.py, etc).

We deemed repeating this set of edits to this file every time we change anything about a runtime to be more effort than it was worth.

Here is a link to the slimmer file we use in the monorepo for comparison.

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.

Good point, I'll make the change

@chalmerlowe chalmerlowe left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

LGTM, but I would consider replacing the contributing.rst with a doc that is runtime version agnostic to save labor from here on out. See more detailed comment in the Thread.

@daniel-sanche
daniel-sanche marked this pull request as ready for review October 7, 2026 19:30
@daniel-sanche
daniel-sanche requested review from a team as code owners October 7, 2026 19:30
@daniel-sanche
daniel-sanche requested a review from parthea October 7, 2026 19:30
@daniel-sanche daniel-sanche changed the title [DRAFT] feat: declare 3.15 support feat: declare 3.15 support Oct 7, 2026
@daniel-sanche daniel-sanche changed the title feat: declare 3.15 support feat: support Python 3.15 Oct 7, 2026
@daniel-sanche
daniel-sanche merged commit a45fad8 into main Oct 7, 2026
18 checks passed
@daniel-sanche
daniel-sanche deleted the support_315 branch October 7, 2026 20:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

samples Issues that are directly related to samples. size: m Pull request size is medium.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants