Skip to content

Commit 6c36c97

Browse files
committed
fix: explicitly delare Python 3.13 support
1 parent cc29cc3 commit 6c36c97

File tree

11 files changed

+19
-84
lines changed

11 files changed

+19
-84
lines changed

.github/workflows/unittest.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,13 @@ on:
55
name: unittest
66
jobs:
77
unit:
8-
runs-on: ubuntu-20.04
8+
# TODO(https://github.com/googleapis/gapic-generator-python/issues/2303): use `ubuntu-latest` once this bug is fixed.
9+
# Use ubuntu-22.04 until Python 3.7 is removed from the test matrix
10+
# https://docs.github.com/en/actions/using-github-hosted-runners/using-github-hosted-runners/about-github-hosted-runners#standard-github-hosted-runners-for-public-repositories
11+
runs-on: ubuntu-22.04
912
strategy:
1013
matrix:
11-
python: ['3.6', '3.7', '3.8', '3.9', '3.10', '3.11', '3.12']
14+
python: ['3.7', '3.8', '3.9', '3.10', '3.11', '3.12', '3.13']
1215
steps:
1316
- name: Checkout
1417
uses: actions/checkout@v4

.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: 4 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.6, 3.7, 3.8, 3.9, 3.10, 3.11 and 3.12 on both UNIX and Windows.
25+
3.7, 3.8, 3.9, 3.10, 3.11, 3.12 and 3.13 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
@@ -221,29 +221,29 @@ Supported Python Versions
221221

222222
We support:
223223

224-
- `Python 3.6`_
225224
- `Python 3.7`_
226225
- `Python 3.8`_
227226
- `Python 3.9`_
228227
- `Python 3.10`_
229228
- `Python 3.11`_
230229
- `Python 3.12`_
230+
- `Python 3.13`_
231231

232-
.. _Python 3.6: https://docs.python.org/3.6/
233232
.. _Python 3.7: https://docs.python.org/3.7/
234233
.. _Python 3.8: https://docs.python.org/3.8/
235234
.. _Python 3.9: https://docs.python.org/3.9/
236235
.. _Python 3.10: https://docs.python.org/3.10/
237236
.. _Python 3.11: https://docs.python.org/3.11/
238237
.. _Python 3.12: https://docs.python.org/3.12/
238+
.. _Python 3.13: https://docs.python.org/3.13/
239239

240240

241241
Supported versions can be found in our ``noxfile.py`` `config`_.
242242

243243
.. _config: https://github.com/googleapis/google-auth-library-python-oauthlib/blob/main/noxfile.py
244244

245245

246-
We also explicitly decided to support Python 3 beginning with version 3.6.
246+
We also explicitly decided to support Python 3 beginning with version 3.7.
247247
Reasons for this include:
248248

249249
- Encouraging use of newest versions of Python 3

README.rst

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,17 +31,20 @@ The latest documentation is available at `google-auth-oauthlib.googleapis.dev`_.
3131

3232
Supported Python Versions
3333
-------------------------
34-
Python >= 3.6
34+
Python >= 3.7
3535

3636

3737
Unsupported Python Versions
3838
---------------------------
3939

40-
Python == 2.7, Python == 3.5.
40+
Python == 2.7, Python < 3.7.
4141

4242
The last version of this library compatible with Python 2.7 and 3.5 is
4343
`google-auth-oauthlib==0.4.1`.
4444

45+
The last version of this library compatible with Python 3.6 is
46+
`google-auth-oauthlib==1.2.2`.
47+
4548
License
4649
-------
4750

noxfile.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,13 +35,13 @@
3535
DEFAULT_PYTHON_VERSION = "3.8"
3636

3737
UNIT_TEST_PYTHON_VERSIONS: List[str] = [
38-
"3.6",
3938
"3.7",
4039
"3.8",
4140
"3.9",
4241
"3.10",
4342
"3.11",
4443
"3.12",
44+
"3.13",
4545
]
4646
UNIT_TEST_STANDARD_DEPENDENCIES = [
4747
"mock",
@@ -377,7 +377,7 @@ def docfx(session):
377377
)
378378

379379

380-
@nox.session(python="3.12")
380+
@nox.session(python=UNIT_TEST_PYTHON_VERSIONS[-1])
381381
@nox.parametrize(
382382
"protobuf_implementation",
383383
["python", "upb", "cpp"],

owlbot.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,11 @@
1010
microgenerator=True,
1111
cov_level=99,
1212
unit_test_external_dependencies=["click"],
13-
unit_test_python_versions=["3.6", "3.7", "3.8", "3.9", "3.10", "3.11", "3.12"],
13+
unit_test_python_versions=["3.7", "3.8", "3.9", "3.10", "3.11", "3.12", "3.13"],
1414
)
1515
s.move(templated_files, excludes=[
1616
"docs/multiprocessing.rst",
1717
"README.rst",
18-
".github/workflows/unittest.yml" #remove this exclusion when removing 3.6 from unit test
1918
])
2019

2120
# Change black paths

0 commit comments

Comments
 (0)