Skip to content

Commit 25e2a2d

Browse files
authored
fix(google-auth-oauthlib): Drop support for Python 3.9 (googleapis#16939)
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 🦕
1 parent 33b5505 commit 25e2a2d

6 files changed

Lines changed: 15 additions & 19 deletions

File tree

packages/google-auth-oauthlib/CONTRIBUTING.rst

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ In order to add a feature:
2222
documentation.
2323

2424
- The feature must work fully on the following CPython versions:
25-
3.9, 3.10, 3.11, 3.12, 3.13 and 3.14 on both UNIX and Windows.
25+
3.10, 3.11, 3.12, 3.13 and 3.14 on both UNIX and Windows.
2626

2727
- The feature must not add unnecessary dependencies (where
2828
"unnecessary" is of course subjective, but new dependencies should
@@ -197,14 +197,12 @@ Supported Python Versions
197197

198198
We support:
199199

200-
- `Python 3.9`_
201200
- `Python 3.10`_
202201
- `Python 3.11`_
203202
- `Python 3.12`_
204203
- `Python 3.13`_
205204
- `Python 3.14`_
206205

207-
.. _Python 3.9: https://docs.python.org/3.9/
208206
.. _Python 3.10: https://docs.python.org/3.10/
209207
.. _Python 3.11: https://docs.python.org/3.11/
210208
.. _Python 3.12: https://docs.python.org/3.12/
@@ -217,7 +215,7 @@ Supported versions can be found in our ``noxfile.py`` `config`_.
217215
.. _config: https://github.com/googleapis/google-cloud-python/blob/main/noxfile.py
218216

219217

220-
We also explicitly decided to support Python 3 beginning with version 3.9.
218+
We also explicitly decided to support Python 3 beginning with version 3.10.
221219
Reasons for this include:
222220

223221
- Encouraging use of newest versions of Python 3

packages/google-auth-oauthlib/README.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,13 +29,13 @@ The latest documentation is available at `google-auth-oauthlib.googleapis.dev`_.
2929

3030
Supported Python Versions
3131
-------------------------
32-
Python >= 3.9
32+
Python >= 3.10
3333

3434

3535
Unsupported Python Versions
3636
---------------------------
3737

38-
Python == 2.7, Python <= 3.8.
38+
Python == 2.7, Python <= 3.9.
3939

4040

4141
License

packages/google-auth-oauthlib/noxfile.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@
3636
DEFAULT_PYTHON_VERSION = "3.14"
3737

3838
UNIT_TEST_PYTHON_VERSIONS: List[str] = [
39-
"3.9",
4039
"3.10",
4140
"3.11",
4241
"3.12",

packages/google-auth-oauthlib/setup.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,12 +54,11 @@
5454
"google-oauthlib-tool" "=google_auth_oauthlib.tool.__main__:main [tool]"
5555
]
5656
},
57-
python_requires=">=3.9",
57+
python_requires=">=3.10",
5858
license="Apache 2.0",
5959
keywords="google auth oauth client oauthlib",
6060
classifiers=[
6161
"Programming Language :: Python :: 3",
62-
"Programming Language :: Python :: 3.9",
6362
"Programming Language :: Python :: 3.10",
6463
"Programming Language :: Python :: 3.11",
6564
"Programming Language :: Python :: 3.12",
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# This constraints file is used to check that lower bounds
2+
# are correct in setup.py
3+
# List *all* library dependencies and extras in this file.
4+
# Pin the version to the lower bound.
5+
#
6+
# e.g., if setup.py has "foo >= 1.14.0, < 2.0.0dev",
7+
# Then this file should have foo==1.14.0
8+
google-auth==2.15.0
9+
requests-oauthlib==0.7.0
10+
click==6.0.0

packages/google-auth-oauthlib/testing/constraints-3.9.txt

Lines changed: 0 additions & 10 deletions
This file was deleted.

0 commit comments

Comments
 (0)