Skip to content
This repository was archived by the owner on Mar 6, 2026. It is now read-only.

Commit 117e325

Browse files
authored
chore: Remove support for Python 3.6 (#1354)
* chore: Remove support for Python 3.6 * chore: Refresh system test creds. * Revert "chore: Remove support for Python 3.6" This reverts commit 3bfd7ba. * Add deprecation notice for 3.6 and 3.7. * chore: Refresh system test creds. * Revert "Revert "chore: Remove support for Python 3.6"" This reverts commit c9f006b. * Revert "Add deprecation notice for 3.6 and 3.7." This reverts commit fb6b619. * Bump mypy Python version. * PR feedback.
1 parent a4ec88c commit 117e325

14 files changed

Lines changed: 12 additions & 93 deletions

File tree

.kokoro/samples/python3.6/common.cfg

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

.kokoro/samples/python3.6/continuous.cfg

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

.kokoro/samples/python3.6/periodic-head.cfg

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

.kokoro/samples/python3.6/periodic.cfg

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

.kokoro/samples/python3.6/presubmit.cfg

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

CONTRIBUTING.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ A few notes on making changes to ``google-auth-library-python``.
1919
using ``nox -s docgen``.
2020

2121
- The change must work fully on the following CPython versions:
22-
3.6, 3.7, 3.8, 3.9, 3.10 across macOS, Linux, and Windows.
22+
3.7, 3.8, 3.9, 3.10 across macOS, Linux, and Windows.
2323

2424
- The codebase *must* have 100% test statement coverage after each commit.
2525
You can test coverage via ``nox -e cover``.

README.rst

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ Note that the extras pyopenssl and enterprise_cert should not be used together b
3535

3636
Supported Python Versions
3737
^^^^^^^^^^^^^^^^^^^^^^^^^
38-
Python >= 3.6
38+
Python >= 3.7
3939

4040
Unsupported Python Versions
4141
^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -45,6 +45,9 @@ Unsupported Python Versions
4545
- Python 3.5: The last version of this library with support for Python 3.5
4646
was `google.auth == 1.23.0`.
4747

48+
- Python 3.6: The last version of this library with support for Python 3.6
49+
was `google.auth == 2.22.0`.
50+
4851
Documentation
4952
-------------
5053

google/auth/pluggable.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ def retrieve_subject_token(self, request):
193193

194194
if not _helpers.is_python_3():
195195
raise exceptions.RefreshError(
196-
"Pluggable auth is only supported for python 3.6+"
196+
"Pluggable auth is only supported for python 3.7+"
197197
)
198198

199199
# Inject env vars.
@@ -255,7 +255,7 @@ def revoke(self, request):
255255

256256
if not _helpers.is_python_3():
257257
raise exceptions.RefreshError(
258-
"Pluggable auth is only supported for python 3.6+"
258+
"Pluggable auth is only supported for python 3.7+"
259259
)
260260

261261
# Inject variables

mypy.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
[mypy]
2-
python_version = 3.6
2+
python_version = 3.7
33
namespace_packages = True

noxfile.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ def mypy(session):
8484
session.run("mypy", "-p", "google", "-p", "tests", "-p", "tests_async")
8585

8686

87-
@nox.session(python=["3.6", "3.7", "3.8", "3.9", "3.10", "3.11"])
87+
@nox.session(python=["3.7", "3.8", "3.9", "3.10", "3.11"])
8888
def unit(session):
8989
constraints_path = str(
9090
CURRENT_DIRECTORY / "testing" / f"constraints-{session.python}.txt"

0 commit comments

Comments
 (0)