Skip to content
This repository was archived by the owner on Feb 28, 2024. It is now read-only.

Commit 8d59164

Browse files
feat: Add support for python 3.11 (#528)
* 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 * update setup.py Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com> Co-authored-by: Anthonios Partheniou <partheniou@google.com>
1 parent 7910434 commit 8d59164

File tree

14 files changed

+21
-12
lines changed

14 files changed

+21
-12
lines changed

google/cloud/asset_v1/services/asset_service/async_client.py

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

google/cloud/asset_v1/services/asset_service/client.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -390,7 +390,7 @@ def get_mtls_endpoint_and_cert_source(
390390
The API endpoint is determined in the following order:
391391
(1) if `client_options.api_endpoint` if provided, use the provided one.
392392
(2) if `GOOGLE_API_USE_CLIENT_CERTIFICATE` environment variable is "always", use the
393-
default mTLS endpoint; if the environment variabel is "never", use the default API
393+
default mTLS endpoint; if the environment variable is "never", use the default API
394394
endpoint; otherwise if client cert source exists, use the default mTLS endpoint, otherwise
395395
use the default API endpoint.
396396

google/cloud/asset_v1p1beta1/services/asset_service/async_client.py

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

google/cloud/asset_v1p1beta1/services/asset_service/client.py

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

google/cloud/asset_v1p2beta1/services/asset_service/async_client.py

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

google/cloud/asset_v1p2beta1/services/asset_service/client.py

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

google/cloud/asset_v1p5beta1/services/asset_service/async_client.py

+1-1
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/asset_v1p5beta1/services/asset_service/client.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -326,7 +326,7 @@ def get_mtls_endpoint_and_cert_source(
326326
The API endpoint is determined in the following order:
327327
(1) if `client_options.api_endpoint` if provided, use the provided one.
328328
(2) if `GOOGLE_API_USE_CLIENT_CERTIFICATE` environment variable is "always", use the
329-
default mTLS endpoint; if the environment variabel is "never", use the default API
329+
default mTLS endpoint; if the environment variable is "never", use the default API
330330
endpoint; otherwise if client cert source exists, use the default mTLS endpoint, otherwise
331331
use the default API endpoint.
332332

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

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

samples/generated_samples/snippet_metadata_google.cloud.asset.v1p1beta1.json

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

samples/generated_samples/snippet_metadata_google.cloud.asset.v1p2beta1.json

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

samples/generated_samples/snippet_metadata_google.cloud.asset.v1p5beta1.json

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

setup.py

+2
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@
4242
"google-cloud-org-policy>=0.1.2, <2.0.0",
4343
"google-cloud-os-config >= 1.0.0, <2.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-asset"
@@ -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

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
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
7+
grpc-google-iam-v1

0 commit comments

Comments
 (0)