Sitelet https://github.com/googleapis/google-cloud-python/pull/19057
Skip to content

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

Open
tswast wants to merge 1 commit into
mainfrom
b581948327-b581950408-python3-10
Open

tswast wants to merge 1 commit into
mainfrom
b581948327-b581950408-python3-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 internal issues b/581948327 b/581950408 🦕

@tswast
tswast requested review from a team as code owners November 12, 2026 17:23
@tswast
tswast requested review from sindhuvy and removed request for a team November 12, 2026 17:23

@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, adds support for Python 3.15, and bumps the minimum required versions of several dependencies, including SQLAlchemy (to >=1.4.41) and PyArrow (to >=10.0.1). Consequently, legacy compatibility checks and workarounds for older Python and SQLAlchemy versions have been cleaned up across the codebase, documentation, and test suites. Feedback on the changes suggests further cleaning up noxfile.py by removing "3.10" from ALL_PYTHON to prevent redundant, skipped test sessions, and unifying it with UNIT_TEST_PYTHON_VERSIONS.

Comment on lines +47 to +61
ALL_PYTHON: List[str] = [
"3.10",
"3.11",
"3.12",
"3.13",
"3.14",
"3.15",
]
ALL_PYTHON = list(UNIT_TEST_PYTHON_VERSIONS)
UNIT_TEST_PYTHON_VERSIONS: List[str] = [
"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 support for Python 3.10 is being dropped, "3.10" should be removed from ALL_PYTHON as well. Keeping it in ALL_PYTHON causes sessions like system_noextras (which uses ALL_PYTHON) to be parameterized for Python 3.10, only to be skipped immediately. Unifying UNIT_TEST_PYTHON_VERSIONS and ALL_PYTHON simplifies the configuration. Additionally, ensure that the project's metadata in setup.py or pyproject.toml is also updated to reflect the same minimum version (Python 3.11) in python_requires and Trove classifiers.

Suggested change
ALL_PYTHON: List[str] = [
"3.10",
"3.11",
"3.12",
"3.13",
"3.14",
"3.15",
]
ALL_PYTHON = list(UNIT_TEST_PYTHON_VERSIONS)
UNIT_TEST_PYTHON_VERSIONS: List[str] = [
"3.11",
"3.12",
"3.13",
"3.14",
"3.15",
]
ALL_PYTHON: List[str] = [
"3.11",
"3.12",
"3.13",
"3.14",
"3.15",
]
UNIT_TEST_PYTHON_VERSIONS: List[str] = ALL_PYTHON
References
  1. When updating the minimum supported Python version in runtime checks (e.g., 'sys.version_info' checks), ensure that the project's metadata in 'setup.py' or 'pyproject.toml' is also updated to reflect the same minimum version in 'python_requires' and Trove classifiers.

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.

I believe 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