Skip to content

fix(google-auth-oauthlib): Drop support for Python 3.9#16939

Merged
parthea merged 6 commits intomainfrom
feat/drop-python-3.7-3.9-google-auth-oauthlib
May 5, 2026
Merged

fix(google-auth-oauthlib): Drop support for Python 3.9#16939
parthea merged 6 commits intomainfrom
feat/drop-python-3.7-3.9-google-auth-oauthlib

Conversation

@chalmerlowe
Copy link
Copy Markdown
Contributor

@chalmerlowe chalmerlowe commented May 5, 2026

This PR updates google-auth-oauthlib 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.9.
  • Documentation: Updated README.rst and CONTRIBUTING.rst to reflect the new supported and unsupported Python versions.
  • Constraints: Updated constraints-3.10.txt with minimum versions from constraints-3.9.txt and deleted constraints-3.9.txt.

Fixes internal issue: http://b/482126936 🦕

@chalmerlowe chalmerlowe requested a review from a team as a code owner May 5, 2026 10:49
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 drops support for Python 3.9 across the repository, updating the documentation, noxfile.py, and setup.py to set Python 3.10 as the new minimum supported version. Feedback was provided regarding the removal of constraints-3.9.txt, suggesting that a constraints-3.10.txt file should be added to maintain lower-bound dependency testing for the updated minimum version.

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

packages/google-auth-oauthlib/testing/constraints-3.9.txt (1-10)

medium

The constraints-3.9.txt file was removed as part of dropping support for Python 3.9. However, a corresponding constraints-3.10.txt file should be added to ensure that lower-bound dependency testing continues for the new minimum supported Python version (3.10), as indicated by the comments in the removed file. If the project's policy is to test the lower bounds of dependencies for the minimum supported Python version, this file is necessary for the CI/CD pipeline.

@chalmerlowe
Copy link
Copy Markdown
Contributor Author

Code Review

This pull request drops support for Python 3.9 across the repository, updating the documentation, noxfile.py, and setup.py to set Python 3.10 as the new minimum supported version. Feedback was provided regarding the removal of constraints-3.9.txt, suggesting that a constraints-3.10.txt file should be added to maintain lower-bound dependency testing for the updated minimum version.

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

Resolved. There is a 3.10 file.

@parthea parthea changed the title feat(google-auth-oauthlib): Drop support for Python 3.7, 3.8, and 3.9 fix(google-auth-oauthlib): Drop support for Python 3.9 May 5, 2026
@parthea parthea merged commit 25e2a2d into main May 5, 2026
30 checks passed
@parthea parthea deleted the feat/drop-python-3.7-3.9-google-auth-oauthlib branch May 5, 2026 15:24
@chalmerlowe chalmerlowe added this to the Drop support for 3.7-3.9 milestone May 5, 2026
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