Skip to content
This repository was archived by the owner on Oct 31, 2023. It is now read-only.

Commit f5f7c77

Browse files
feat: Add support for python 3.11 (#196)
* 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: https://github.com/googleapis/googleapis-gen/commit/7bf29a414b9ecac3170f0b65bdc2a95705c0ef1a 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 <[email protected]>
1 parent 77f7d78 commit f5f7c77

File tree

14 files changed

+20
-12
lines changed

14 files changed

+20
-12
lines changed

google/cloud/binaryauthorization_v1/services/binauthz_management_service_v1/async_client.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ def get_mtls_endpoint_and_cert_source(
157157
The API endpoint is determined in the following order:
158158
(1) if `client_options.api_endpoint` if provided, use the provided one.
159159
(2) if `GOOGLE_API_USE_CLIENT_CERTIFICATE` environment variable is "always", use the
160-
default mTLS endpoint; if the environment variabel is "never", use the default API
160+
default mTLS endpoint; if the environment variable is "never", use the default API
161161
endpoint; otherwise if client cert source exists, use the default mTLS endpoint, otherwise
162162
use the default API endpoint.
163163

google/cloud/binaryauthorization_v1/services/binauthz_management_service_v1/client.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,7 @@ def get_mtls_endpoint_and_cert_source(
315315
The API endpoint is determined in the following order:
316316
(1) if `client_options.api_endpoint` if provided, use the provided one.
317317
(2) if `GOOGLE_API_USE_CLIENT_CERTIFICATE` environment variable is "always", use the
318-
default mTLS endpoint; if the environment variabel is "never", use the default API
318+
default mTLS endpoint; if the environment variable is "never", use the default API
319319
endpoint; otherwise if client cert source exists, use the default mTLS endpoint, otherwise
320320
use the default API endpoint.
321321

google/cloud/binaryauthorization_v1/services/system_policy_v1/async_client.py

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

google/cloud/binaryauthorization_v1/services/system_policy_v1/client.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,7 @@ def get_mtls_endpoint_and_cert_source(
284284
The API endpoint is determined in the following order:
285285
(1) if `client_options.api_endpoint` if provided, use the provided one.
286286
(2) if `GOOGLE_API_USE_CLIENT_CERTIFICATE` environment variable is "always", use the
287-
default mTLS endpoint; if the environment variabel is "never", use the default API
287+
default mTLS endpoint; if the environment variable is "never", use the default API
288288
endpoint; otherwise if client cert source exists, use the default mTLS endpoint, otherwise
289289
use the default API endpoint.
290290

google/cloud/binaryauthorization_v1/services/validation_helper_v1/async_client.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ def get_mtls_endpoint_and_cert_source(
131131
The API endpoint is determined in the following order:
132132
(1) if `client_options.api_endpoint` if provided, use the provided one.
133133
(2) if `GOOGLE_API_USE_CLIENT_CERTIFICATE` environment variable is "always", use the
134-
default mTLS endpoint; if the environment variabel is "never", use the default API
134+
default mTLS endpoint; if the environment variable is "never", use the default API
135135
endpoint; otherwise if client cert source exists, use the default mTLS endpoint, otherwise
136136
use the default API endpoint.
137137

google/cloud/binaryauthorization_v1/services/validation_helper_v1/client.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@ def get_mtls_endpoint_and_cert_source(
267267
The API endpoint is determined in the following order:
268268
(1) if `client_options.api_endpoint` if provided, use the provided one.
269269
(2) if `GOOGLE_API_USE_CLIENT_CERTIFICATE` environment variable is "always", use the
270-
default mTLS endpoint; if the environment variabel is "never", use the default API
270+
default mTLS endpoint; if the environment variable is "never", use the default API
271271
endpoint; otherwise if client cert source exists, use the default mTLS endpoint, otherwise
272272
use the default API endpoint.
273273

google/cloud/binaryauthorization_v1beta1/services/binauthz_management_service_v1_beta1/async_client.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ def get_mtls_endpoint_and_cert_source(
162162
The API endpoint is determined in the following order:
163163
(1) if `client_options.api_endpoint` if provided, use the provided one.
164164
(2) if `GOOGLE_API_USE_CLIENT_CERTIFICATE` environment variable is "always", use the
165-
default mTLS endpoint; if the environment variabel is "never", use the default API
165+
default mTLS endpoint; if the environment variable is "never", use the default API
166166
endpoint; otherwise if client cert source exists, use the default mTLS endpoint, otherwise
167167
use the default API endpoint.
168168

google/cloud/binaryauthorization_v1beta1/services/binauthz_management_service_v1_beta1/client.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -320,7 +320,7 @@ def get_mtls_endpoint_and_cert_source(
320320
The API endpoint is determined in the following order:
321321
(1) if `client_options.api_endpoint` if provided, use the provided one.
322322
(2) if `GOOGLE_API_USE_CLIENT_CERTIFICATE` environment variable is "always", use the
323-
default mTLS endpoint; if the environment variabel is "never", use the default API
323+
default mTLS endpoint; if the environment variable is "never", use the default API
324324
endpoint; otherwise if client cert source exists, use the default mTLS endpoint, otherwise
325325
use the default API endpoint.
326326

google/cloud/binaryauthorization_v1beta1/services/system_policy_v1_beta1/async_client.py

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

google/cloud/binaryauthorization_v1beta1/services/system_policy_v1_beta1/client.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,7 @@ def get_mtls_endpoint_and_cert_source(
284284
The API endpoint is determined in the following order:
285285
(1) if `client_options.api_endpoint` if provided, use the provided one.
286286
(2) if `GOOGLE_API_USE_CLIENT_CERTIFICATE` environment variable is "always", use the
287-
default mTLS endpoint; if the environment variabel is "never", use the default API
287+
default mTLS endpoint; if the environment variable is "never", use the default API
288288
endpoint; otherwise if client cert source exists, use the default mTLS endpoint, otherwise
289289
use the default API endpoint.
290290

samples/generated_samples/snippet_metadata_google.cloud.binaryauthorization.v1.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
],
99
"language": "PYTHON",
1010
"name": "google-cloud-binary-authorization",
11-
"version": "1.4.0"
11+
"version": "0.1.0"
1212
},
1313
"snippets": [
1414
{

samples/generated_samples/snippet_metadata_google.cloud.binaryauthorization.v1beta1.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
],
99
"language": "PYTHON",
1010
"name": "google-cloud-binary-authorization",
11-
"version": "1.4.0"
11+
"version": "0.1.0"
1212
},
1313
"snippets": [
1414
{

setup.py

+2
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@
4040
dependencies = [
4141
"google-api-core[grpc] >= 1.34.0, <3.0.0dev,!=2.0.*,!=2.1.*,!=2.2.*,!=2.3.*,!=2.4.*,!=2.5.*,!=2.6.*,!=2.7.*,!=2.8.*,!=2.9.*,!=2.10.*",
4242
"proto-plus >= 1.22.0, <2.0.0dev",
43+
"proto-plus >= 1.22.2, <2.0.0dev; python_version>='3.11'",
4344
"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",
4445
"grafeas >= 1.1.2, <2.0dev",
4546
]
@@ -80,6 +81,7 @@
8081
"Programming Language :: Python :: 3.8",
8182
"Programming Language :: Python :: 3.9",
8283
"Programming Language :: Python :: 3.10",
84+
"Programming Language :: Python :: 3.11",
8385
"Operating System :: OS Independent",
8486
"Topic :: Internet",
8587
],

testing/constraints-3.12.txt

+6
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)