Visitar URL original
fix(bigquery): drop support for end-of-life Python 3.10 by tswast · Pull Request #19058 · googleapis/google-cloud-python · GitHub
Skip to content

fix(bigquery): drop support for end-of-life Python 3.10 - #19058

Open
tswast wants to merge 2 commits into
mainfrom
b581946002-bigquery-3-10
Open

tswast wants to merge 2 commits into
mainfrom
b581946002-bigquery-3-10

Conversation

@tswast

@tswast tswast commented Nov 12, 2026

Copy link
Copy Markdown
Contributor

Thank you for opening a Pull Request! Before submitting your PR, there are a few things you can do to make sure it goes smoothly:

  • Make sure to open an issue as a bug/issue before writing your code! That way we can discuss the change, evaluate designs, and agree on the general idea
  • Ensure the tests and linter pass
  • Code coverage does not decrease (if any source code was changed)
  • Appropriate docs were updated (if necessary)

Fixes b/581946002 🦕

@tswast
tswast requested review from a team as code owners November 12, 2026 17:49
@tswast
tswast requested review from julianxu-goog and removed request for a team November 12, 2026 17:49

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

Copy link
Copy Markdown
Contributor

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 drops support for Python 3.10, updating the minimum supported version to Python 3.11 across the package's configuration, documentation, and test suites. It also replaces the Python 3.10 constraints file with a Python 3.11 constraints file. The feedback suggests simplifying the noxfile.py configuration by removing "3.10" from ALL_PYTHON directly, which would eliminate the need for manual session skipping logic in unit tests and mypy checks.

DEFAULT_PYTHON_VERSION = "3.14"
ALL_PYTHON = ["3.10", "3.11", "3.12", "3.13", "3.14", "3.15"]
UNIT_TEST_PYTHON_VERSIONS = ALL_PYTHON
UNIT_TEST_PYTHON_VERSIONS = ["3.11", "3.12", "3.13", "3.14", "3.15"]

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

medium

Since Python 3.10 is no longer supported, we should remove "3.10" from ALL_PYTHON on line 41.

By doing so, we can keep UNIT_TEST_PYTHON_VERSIONS = ALL_PYTHON and avoid changing the @nox.session decorators to use ALL_PYTHON and adding manual session.skip checks in the unit and mypy sessions.

Suggested change
UNIT_TEST_PYTHON_VERSIONS = ["3.11", "3.12", "3.13", "3.14", "3.15"]
UNIT_TEST_PYTHON_VERSIONS = ALL_PYTHON

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.

No. That would break GitHub Actions.

This branch has not been deployed

No deployments
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.

1 participant