Skip to content

chore(django-google-spanner): update Python version to 3.10#16914

Draft
chalmerlowe wants to merge 3 commits intomainfrom
chore/update-python-version-django-google-spanner
Draft

chore(django-google-spanner): update Python version to 3.10#16914
chalmerlowe wants to merge 3 commits intomainfrom
chore/update-python-version-django-google-spanner

Conversation

@chalmerlowe
Copy link
Copy Markdown
Contributor

This PR updates django-google-spanner to establish Python 3.10 as the minimum supported version, dropping support for Python 3.9 and below.

Changes

  • Configuration: Updated setup.py and noxfile.py to require Python 3.10+ and remove references to Python 3.7, 3.8, and 3.9.
  • Cleanup: Removed dead code in noxfile.py that was skipping Python 3.7.

Blocking

This PR is blocked by PR #16910

@chalmerlowe chalmerlowe requested a review from a team as a code owner May 1, 2026 13:28
Copy link
Copy Markdown
Contributor

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

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 removes support for Python 3.7, 3.8, and 3.9 across the project's configuration files, updating the minimum required version to 3.10 in both noxfile.py and setup.py. Feedback suggests adding PyPI classifiers for Python 3.13 and 3.14 to setup.py to ensure the metadata is consistent with the versions currently being tested in the Nox configuration.

I am having trouble creating individual review comments. Click here to see my feedback.

packages/django-google-spanner/setup.py (76)

medium

The noxfile.py configuration indicates that Python 3.13 and 3.14 are supported (though 3.14 is currently skipped due to Protobuf). To ensure consistency and proper indexing on PyPI, please add the corresponding classifiers for these versions in the classifiers list above.

@chalmerlowe chalmerlowe added this to the Drop support for 3.7-3.9 milestone May 1, 2026
Comment on lines -126 to -127
if session.python == "3.9":
session.skip("Python 3.9 is not supported for Django 5.2 tests")
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.

nit: we should keep this until 3.9 is removed from gapic-generator and autogenerated packages which account for 90% of the packages in this repo.

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.

This PR and one's similar to it are blocked and are only presented for discussion.
Once the gapic-generator is updated fully to 3.10, these will be unblocked.

@parthea
Copy link
Copy Markdown
Contributor

parthea commented May 1, 2026

Switching to draft until presubmits are green

@parthea parthea marked this pull request as draft May 1, 2026 15:45
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