Skip to content

Commit 412d481

Browse files
feat: Add support for python 3.11 (#700)
* feat: Add support for python 3.11 chore: Update gapic-generator-python to v1.8.0 PiperOrigin-RevId: 500768693 Source-Link: googleapis/googleapis@190b612 Source-Link: googleapis/googleapis-gen@7bf29a4 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiN2JmMjlhNDE0YjllY2FjMzE3MGYwYjY1YmRjMmE5NTcwNWMwZWYxYSJ9 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * require proto-plus 1.22.2 for python 3.11 Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com> Co-authored-by: Anthonios Partheniou <partheniou@google.com>
1 parent e7a3c8b commit 412d481

File tree

9 files changed

+15
-7
lines changed

9 files changed

+15
-7
lines changed

google/cloud/logging_v2/services/config_service_v2/async_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ def get_mtls_endpoint_and_cert_source(
151151
The API endpoint is determined in the following order:
152152
(1) if `client_options.api_endpoint` if provided, use the provided one.
153153
(2) if `GOOGLE_API_USE_CLIENT_CERTIFICATE` environment variable is "always", use the
154-
default mTLS endpoint; if the environment variabel is "never", use the default API
154+
default mTLS endpoint; if the environment variable is "never", use the default API
155155
endpoint; otherwise if client cert source exists, use the default mTLS endpoint, otherwise
156156
use the default API endpoint.
157157

google/cloud/logging_v2/services/config_service_v2/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -381,7 +381,7 @@ def get_mtls_endpoint_and_cert_source(
381381
The API endpoint is determined in the following order:
382382
(1) if `client_options.api_endpoint` if provided, use the provided one.
383383
(2) if `GOOGLE_API_USE_CLIENT_CERTIFICATE` environment variable is "always", use the
384-
default mTLS endpoint; if the environment variabel is "never", use the default API
384+
default mTLS endpoint; if the environment variable is "never", use the default API
385385
endpoint; otherwise if client cert source exists, use the default mTLS endpoint, otherwise
386386
use the default API endpoint.
387387

google/cloud/logging_v2/services/logging_service_v2/async_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ def get_mtls_endpoint_and_cert_source(
138138
The API endpoint is determined in the following order:
139139
(1) if `client_options.api_endpoint` if provided, use the provided one.
140140
(2) if `GOOGLE_API_USE_CLIENT_CERTIFICATE` environment variable is "always", use the
141-
default mTLS endpoint; if the environment variabel is "never", use the default API
141+
default mTLS endpoint; if the environment variable is "never", use the default API
142142
endpoint; otherwise if client cert source exists, use the default mTLS endpoint, otherwise
143143
use the default API endpoint.
144144

google/cloud/logging_v2/services/logging_service_v2/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,7 @@ def get_mtls_endpoint_and_cert_source(
288288
The API endpoint is determined in the following order:
289289
(1) if `client_options.api_endpoint` if provided, use the provided one.
290290
(2) if `GOOGLE_API_USE_CLIENT_CERTIFICATE` environment variable is "always", use the
291-
default mTLS endpoint; if the environment variabel is "never", use the default API
291+
default mTLS endpoint; if the environment variable is "never", use the default API
292292
endpoint; otherwise if client cert source exists, use the default mTLS endpoint, otherwise
293293
use the default API endpoint.
294294

google/cloud/logging_v2/services/metrics_service_v2/async_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ def get_mtls_endpoint_and_cert_source(
136136
The API endpoint is determined in the following order:
137137
(1) if `client_options.api_endpoint` if provided, use the provided one.
138138
(2) if `GOOGLE_API_USE_CLIENT_CERTIFICATE` environment variable is "always", use the
139-
default mTLS endpoint; if the environment variabel is "never", use the default API
139+
default mTLS endpoint; if the environment variable is "never", use the default API
140140
endpoint; otherwise if client cert source exists, use the default mTLS endpoint, otherwise
141141
use the default API endpoint.
142142

google/cloud/logging_v2/services/metrics_service_v2/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,7 @@ def get_mtls_endpoint_and_cert_source(
287287
The API endpoint is determined in the following order:
288288
(1) if `client_options.api_endpoint` if provided, use the provided one.
289289
(2) if `GOOGLE_API_USE_CLIENT_CERTIFICATE` environment variable is "always", use the
290-
default mTLS endpoint; if the environment variabel is "never", use the default API
290+
default mTLS endpoint; if the environment variable is "never", use the default API
291291
endpoint; otherwise if client cert source exists, use the default mTLS endpoint, otherwise
292292
use the default API endpoint.
293293

samples/generated_samples/snippet_metadata_google.logging.v2.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
],
99
"language": "PYTHON",
1010
"name": "google-cloud-logging",
11-
"version": "3.4.0"
11+
"version": "0.1.0"
1212
},
1313
"snippets": [
1414
{

setup.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@
4242
"google-cloud-core >= 2.0.0, <3.0.0dev",
4343
"grpc-google-iam-v1 >=0.12.4, <1.0.0dev",
4444
"proto-plus >= 1.22.0, <2.0.0dev",
45+
"proto-plus >= 1.22.2, <2.0.0dev; python_version>='3.11'",
4546
"protobuf>=3.19.5,<5.0.0dev,!=3.20.0,!=3.20.1,!=4.21.0,!=4.21.1,!=4.21.2,!=4.21.3,!=4.21.4,!=4.21.5",
4647
]
4748
url = "https://github.com/googleapis/python-logging"
@@ -81,6 +82,7 @@
8182
"Programming Language :: Python :: 3.8",
8283
"Programming Language :: Python :: 3.9",
8384
"Programming Language :: Python :: 3.10",
85+
"Programming Language :: Python :: 3.11",
8486
"Operating System :: OS Independent",
8587
"Topic :: Internet",
8688
],

testing/constraints-3.12.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# -*- coding: utf-8 -*-
2+
# This constraints file is required for unit tests.
3+
# List all library dependencies and extras in this file.
4+
google-api-core
5+
proto-plus
6+
protobuf

0 commit comments

Comments
 (0)