Skip to content

Commit 091b4f1

Browse files
feat: Add support for Python 3.12 (#557)
* chore(python): Add Python 3.12 Source-Link: googleapis/synthtool@af16e6d Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-python:latest@sha256:bacc3af03bff793a03add584537b36b5644342931ad989e3ba1171d3bd5399f5 * Update common files to include python 3.12 --------- Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com> Co-authored-by: Anthonios Partheniou <[email protected]>
1 parent 9e826d9 commit 091b4f1

File tree

5 files changed

+11
-4
lines changed

5 files changed

+11
-4
lines changed

.github/sync-repo-settings.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,16 @@ branchProtectionRules:
1616
- 'unit_grpc_gcp-3.9'
1717
- 'unit_grpc_gcp-3.10'
1818
- 'unit_grpc_gcp-3.11'
19+
- 'unit_grpc_gcp-3.12'
1920
- 'unit-3.7'
2021
- 'unit-3.8'
2122
- 'unit-3.9'
2223
- 'unit-3.10'
2324
- 'unit-3.11'
25+
- 'unit-3.12'
2426
- 'unit_wo_grpc-3.10'
2527
- 'unit_wo_grpc-3.11'
28+
- 'unit_wo_grpc-3.12'
2629
- 'cover'
2730
- 'docs'
2831
- 'docfx'

.github/workflows/unittest.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ jobs:
1818
- "3.9"
1919
- "3.10"
2020
- "3.11"
21+
- "3.12"
2122
exclude:
2223
- option: "_wo_grpc"
2324
python: 3.7

CONTRIBUTING.rst

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

2323
- The feature must work fully on the following CPython versions:
24-
3.7, 3.8, 3.9, 3.10, and 3.11 on both UNIX and Windows.
24+
3.7, 3.8, 3.9, 3.10, 3.11 and 3.12 on both UNIX and Windows.
2525

2626
- The feature must not add unnecessary dependencies (where
2727
"unnecessary" is of course subjective, but new dependencies should
@@ -71,7 +71,7 @@ We use `nox <https://nox.readthedocs.io/en/latest/>`__ to instrument our tests.
7171

7272
- To run a single unit test::
7373

74-
$ nox -s unit-3.11 -- -k <name of test>
74+
$ nox -s unit-3.12 -- -k <name of test>
7575

7676

7777
.. note::
@@ -202,12 +202,14 @@ We support:
202202
- `Python 3.9`_
203203
- `Python 3.10`_
204204
- `Python 3.11`_
205+
- `Python 3.12`_
205206

206207
.. _Python 3.7: https://docs.python.org/3.7/
207208
.. _Python 3.8: https://docs.python.org/3.8/
208209
.. _Python 3.9: https://docs.python.org/3.9/
209210
.. _Python 3.10: https://docs.python.org/3.10/
210211
.. _Python 3.11: https://docs.python.org/3.11/
212+
.. _Python 3.12: https://docs.python.org/3.12/
211213

212214

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

noxfile.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ def unit(session):
149149
default(session)
150150

151151

152-
@nox.session(python=["3.7", "3.8", "3.9", "3.10", "3.11"])
152+
@nox.session(python=["3.7", "3.8", "3.9", "3.10", "3.11", "3.12"])
153153
def unit_grpc_gcp(session):
154154
"""Run the unit test suite with grpcio-gcp installed."""
155155
constraints_path = str(
@@ -163,7 +163,7 @@ def unit_grpc_gcp(session):
163163
default(session)
164164

165165

166-
@nox.session(python=["3.8", "3.10", "3.11"])
166+
@nox.session(python=["3.8", "3.10", "3.11", "3.12"])
167167
def unit_wo_grpc(session):
168168
"""Run the unit test suite w/o grpcio installed"""
169169
default(session, install_grpc=False)

setup.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@
8888
"Programming Language :: Python :: 3.9",
8989
"Programming Language :: Python :: 3.10",
9090
"Programming Language :: Python :: 3.11",
91+
"Programming Language :: Python :: 3.12",
9192
"Operating System :: OS Independent",
9293
"Topic :: Internet",
9394
],

0 commit comments

Comments
 (0)