Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit0d1a592

Browse files
feat: [Many APIs] Add support for Python 3.12 (#12071)
- [ ] Regenerate this pull request now.docs: updated doc for speech modePiperOrigin-RevId: 586469693Source-Link:googleapis/googleapis@e8148d6Source-Link:googleapis/googleapis-gen@85136bdCopy-Tag:eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWJleW9uZGNvcnAtYXBwY29ubmVjdGlvbnMvLk93bEJvdC55YW1sIiwiaCI6Ijg1MTM2YmQwNDM4M2VkNzE3MmJiMThiN2I4ZDIyMGRkN2ZmNmIzYTAifQ==Copy-Tag:eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWJleW9uZGNvcnAtYXBwY29ubmVjdG9ycy8uT3dsQm90LnlhbWwiLCJoIjoiODUxMzZiZDA0MzgzZWQ3MTcyYmIxOGI3YjhkMjIwZGQ3ZmY2YjNhMCJ9Copy-Tag:eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWJleW9uZGNvcnAtYXBwZ2F0ZXdheXMvLk93bEJvdC55YW1sIiwiaCI6Ijg1MTM2YmQwNDM4M2VkNzE3MmJiMThiN2I4ZDIyMGRkN2ZmNmIzYTAifQ==Copy-Tag:eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWJleW9uZGNvcnAtY2xpZW50Y29ubmVjdG9yc2VydmljZXMvLk93bEJvdC55YW1sIiwiaCI6Ijg1MTM2YmQwNDM4M2VkNzE3MmJiMThiN2I4ZDIyMGRkN2ZmNmIzYTAifQ==Copy-Tag:eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWJleW9uZGNvcnAtY2xpZW50Z2F0ZXdheXMvLk93bEJvdC55YW1sIiwiaCI6Ijg1MTM2YmQwNDM4M2V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ja2FnZXMvZ29vZ2xlLWNsb3VkLWNlcnRpZmljYXRlLW1hbmFnZXIvLk93bEJvdC55YW1sIiwiaCI6Ijg1MTM2YmQwNDM4M2VkNzE3MmJiMThiN2I4ZDIyMGRkN2ZmNmIzYTAifQ==Copy-Tag:eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWNoYW5uZWwvLk93bEJvdC55YW1sIiwiaCI6Ijg1MTM2YmQwNDM4M2VkNzE3MmJiMThiN2I4ZDIyMGRkN2ZmNmIzYTAifQ==BEGIN_COMMIT_OVERRIDEfeat: Add support for python 3.12feat: Introduce compatibility with native namespace packagesfix: Use `retry_async` instead of `retry` in async clientfix: Require proto-plus >= 1.22.3END_COMMIT_OVERRIDE---------Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>Co-authored-by: Anthonios Partheniou <partheniou@google.com>
1 parentfb6f9db commit0d1a592

File tree

132 files changed

+1169
-1075
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

132 files changed

+1169
-1075
lines changed

‎packages/google-cloud-beyondcorp-appconnections/CONTRIBUTING.rst‎

Lines changed: 6 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.7, 3.8, 3.9, 3.10and 3.11 on both UNIX and Windows.
25+
3.7, 3.8, 3.9, 3.10, 3.11and 3.12 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
@@ -72,7 +72,7 @@ We use `nox <https://nox.readthedocs.io/en/latest/>`__ to instrument our tests.
7272

7373
- To run a single unit test::
7474

75-
$ nox -s unit-3.11 -- -k <name of test>
75+
$ nox -s unit-3.12 -- -k <name of test>
7676

7777

7878
.. note::
@@ -143,12 +143,12 @@ Running System Tests
143143
$ nox -s system
144144

145145
# Run a single system test
146-
$ nox -s system-3.11 -- -k <name of test>
146+
$ nox -s system-3.12 -- -k <name of test>
147147

148148

149149
.. note::
150150

151-
System tests are only configured to run under Python 3.8, 3.9, 3.10and 3.11.
151+
System tests are only configured to run under Python 3.8, 3.9, 3.10, 3.11and 3.12.
152152
For expediency, we do not run them in older versions of Python 3.
153153

154154
This alone will not run the tests. You'll need to change some local
@@ -226,12 +226,14 @@ We support:
226226
- `Python 3.9`_
227227
- `Python 3.10`_
228228
- `Python 3.11`_
229+
- `Python 3.12`_
229230

230231
.. _Python 3.7:https://docs.python.org/3.7/
231232
.. _Python 3.8:https://docs.python.org/3.8/
232233
.. _Python 3.9:https://docs.python.org/3.9/
233234
.. _Python 3.10:https://docs.python.org/3.10/
234235
.. _Python 3.11:https://docs.python.org/3.11/
236+
.. _Python 3.12:https://docs.python.org/3.12/
235237

236238

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

‎packages/google-cloud-beyondcorp-appconnections/google/cloud/beyondcorp_appconnections_v1/services/app_connections_service/async_client.py‎

Lines changed: 27 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -30,17 +30,17 @@
3030

3131
fromgoogle.api_coreimportexceptionsascore_exceptions
3232
fromgoogle.api_coreimportgapic_v1
33-
fromgoogle.api_coreimportretryasretries
33+
fromgoogle.api_coreimportretry_asyncasretries
3434
fromgoogle.api_core.client_optionsimportClientOptions
3535
fromgoogle.authimportcredentialsasga_credentials# type: ignore
3636
fromgoogle.oauth2importservice_account# type: ignore
3737

3838
fromgoogle.cloud.beyondcorp_appconnections_v1importgapic_versionaspackage_version
3939

4040
try:
41-
OptionalRetry=Union[retries.Retry,gapic_v1.method._MethodDefault]
41+
OptionalRetry=Union[retries.AsyncRetry,gapic_v1.method._MethodDefault]
4242
exceptAttributeError:# pragma: NO COVER
43-
OptionalRetry=Union[retries.Retry,object]# type: ignore
43+
OptionalRetry=Union[retries.AsyncRetry,object]# type: ignore
4444

4545
fromgoogle.api_coreimportoperation# type: ignore
4646
fromgoogle.api_coreimportoperation_async# type: ignore
@@ -305,7 +305,7 @@ async def sample_list_app_connections():
305305
This corresponds to the ``parent`` field
306306
on the ``request`` instance; if ``request`` is provided, this
307307
should not be set.
308-
retry (google.api_core.retry.Retry): Designation of what errors, if any,
308+
retry (google.api_core.retry_async.AsyncRetry): Designation of what errors, if any,
309309
should be retried.
310310
timeout (float): The timeout for this request.
311311
metadata (Sequence[Tuple[str, str]]): Strings which should be
@@ -421,7 +421,7 @@ async def sample_get_app_connection():
421421
This corresponds to the ``name`` field
422422
on the ``request`` instance; if ``request`` is provided, this
423423
should not be set.
424-
retry (google.api_core.retry.Retry): Designation of what errors, if any,
424+
retry (google.api_core.retry_async.AsyncRetry): Designation of what errors, if any,
425425
should be retried.
426426
timeout (float): The timeout for this request.
427427
metadata (Sequence[Tuple[str, str]]): Strings which should be
@@ -564,7 +564,7 @@ async def sample_create_app_connection():
564564
This corresponds to the ``app_connection_id`` field
565565
on the ``request`` instance; if ``request`` is provided, this
566566
should not be set.
567-
retry (google.api_core.retry.Retry): Designation of what errors, if any,
567+
retry (google.api_core.retry_async.AsyncRetry): Designation of what errors, if any,
568568
should be retried.
569569
timeout (float): The timeout for this request.
570570
metadata (Sequence[Tuple[str, str]]): Strings which should be
@@ -712,7 +712,7 @@ async def sample_update_app_connection():
712712
This corresponds to the ``update_mask`` field
713713
on the ``request`` instance; if ``request`` is provided, this
714714
should not be set.
715-
retry (google.api_core.retry.Retry): Designation of what errors, if any,
715+
retry (google.api_core.retry_async.AsyncRetry): Designation of what errors, if any,
716716
should be retried.
717717
timeout (float): The timeout for this request.
718718
metadata (Sequence[Tuple[str, str]]): Strings which should be
@@ -838,7 +838,7 @@ async def sample_delete_app_connection():
838838
This corresponds to the ``name`` field
839839
on the ``request`` instance; if ``request`` is provided, this
840840
should not be set.
841-
retry (google.api_core.retry.Retry): Designation of what errors, if any,
841+
retry (google.api_core.retry_async.AsyncRetry): Designation of what errors, if any,
842842
should be retried.
843843
timeout (float): The timeout for this request.
844844
metadata (Sequence[Tuple[str, str]]): Strings which should be
@@ -965,7 +965,7 @@ async def sample_resolve_app_connections():
965965
This corresponds to the ``parent`` field
966966
on the ``request`` instance; if ``request`` is provided, this
967967
should not be set.
968-
retry (google.api_core.retry.Retry): Designation of what errors, if any,
968+
retry (google.api_core.retry_async.AsyncRetry): Designation of what errors, if any,
969969
should be retried.
970970
timeout (float): The timeout for this request.
971971
metadata (Sequence[Tuple[str, str]]): Strings which should be
@@ -1045,7 +1045,7 @@ async def list_operations(
10451045
request (:class:`~.operations_pb2.ListOperationsRequest`):
10461046
The request object. Request message for
10471047
`ListOperations` method.
1048-
retry (google.api_core.retry.Retry): Designation of what errors,
1048+
retry (google.api_core.retry_async.AsyncRetry): Designation of what errors,
10491049
if any, should be retried.
10501050
timeout (float): The timeout for this request.
10511051
metadata (Sequence[Tuple[str, str]]): Strings which should be
@@ -1062,7 +1062,7 @@ async def list_operations(
10621062

10631063
# Wrap the RPC method; this adds retry and timeout information,
10641064
# and friendly error handling.
1065-
rpc=gapic_v1.method.wrap_method(
1065+
rpc=gapic_v1.method_async.wrap_method(
10661066
self._client._transport.list_operations,
10671067
default_timeout=None,
10681068
client_info=DEFAULT_CLIENT_INFO,
@@ -1099,7 +1099,7 @@ async def get_operation(
10991099
request (:class:`~.operations_pb2.GetOperationRequest`):
11001100
The request object. Request message for
11011101
`GetOperation` method.
1102-
retry (google.api_core.retry.Retry): Designation of what errors,
1102+
retry (google.api_core.retry_async.AsyncRetry): Designation of what errors,
11031103
if any, should be retried.
11041104
timeout (float): The timeout for this request.
11051105
metadata (Sequence[Tuple[str, str]]): Strings which should be
@@ -1116,7 +1116,7 @@ async def get_operation(
11161116

11171117
# Wrap the RPC method; this adds retry and timeout information,
11181118
# and friendly error handling.
1119-
rpc=gapic_v1.method.wrap_method(
1119+
rpc=gapic_v1.method_async.wrap_method(
11201120
self._client._transport.get_operation,
11211121
default_timeout=None,
11221122
client_info=DEFAULT_CLIENT_INFO,
@@ -1158,7 +1158,7 @@ async def delete_operation(
11581158
request (:class:`~.operations_pb2.DeleteOperationRequest`):
11591159
The request object. Request message for
11601160
`DeleteOperation` method.
1161-
retry (google.api_core.retry.Retry): Designation of what errors,
1161+
retry (google.api_core.retry_async.AsyncRetry): Designation of what errors,
11621162
if any, should be retried.
11631163
timeout (float): The timeout for this request.
11641164
metadata (Sequence[Tuple[str, str]]): Strings which should be
@@ -1174,7 +1174,7 @@ async def delete_operation(
11741174

11751175
# Wrap the RPC method; this adds retry and timeout information,
11761176
# and friendly error handling.
1177-
rpc=gapic_v1.method.wrap_method(
1177+
rpc=gapic_v1.method_async.wrap_method(
11781178
self._client._transport.delete_operation,
11791179
default_timeout=None,
11801180
client_info=DEFAULT_CLIENT_INFO,
@@ -1212,7 +1212,7 @@ async def cancel_operation(
12121212
request (:class:`~.operations_pb2.CancelOperationRequest`):
12131213
The request object. Request message for
12141214
`CancelOperation` method.
1215-
retry (google.api_core.retry.Retry): Designation of what errors,
1215+
retry (google.api_core.retry_async.AsyncRetry): Designation of what errors,
12161216
if any, should be retried.
12171217
timeout (float): The timeout for this request.
12181218
metadata (Sequence[Tuple[str, str]]): Strings which should be
@@ -1228,7 +1228,7 @@ async def cancel_operation(
12281228

12291229
# Wrap the RPC method; this adds retry and timeout information,
12301230
# and friendly error handling.
1231-
rpc=gapic_v1.method.wrap_method(
1231+
rpc=gapic_v1.method_async.wrap_method(
12321232
self._client._transport.cancel_operation,
12331233
default_timeout=None,
12341234
client_info=DEFAULT_CLIENT_INFO,
@@ -1264,7 +1264,7 @@ async def set_iam_policy(
12641264
request (:class:`~.iam_policy_pb2.SetIamPolicyRequest`):
12651265
The request object. Request message for `SetIamPolicy`
12661266
method.
1267-
retry (google.api_core.retry.Retry): Designation of what errors, if any,
1267+
retry (google.api_core.retry_async.AsyncRetry): Designation of what errors, if any,
12681268
should be retried.
12691269
timeout (float): The timeout for this request.
12701270
metadata (Sequence[Tuple[str, str]]): Strings which should be
@@ -1345,7 +1345,7 @@ async def set_iam_policy(
13451345

13461346
# Wrap the RPC method; this adds retry and timeout information,
13471347
# and friendly error handling.
1348-
rpc=gapic_v1.method.wrap_method(
1348+
rpc=gapic_v1.method_async.wrap_method(
13491349
self._client._transport.set_iam_policy,
13501350
default_timeout=None,
13511351
client_info=DEFAULT_CLIENT_INFO,
@@ -1385,7 +1385,7 @@ async def get_iam_policy(
13851385
request (:class:`~.iam_policy_pb2.GetIamPolicyRequest`):
13861386
The request object. Request message for `GetIamPolicy`
13871387
method.
1388-
retry (google.api_core.retry.Retry): Designation of what errors, if
1388+
retry (google.api_core.retry_async.AsyncRetry): Designation of what errors, if
13891389
any, should be retried.
13901390
timeout (float): The timeout for this request.
13911391
metadata (Sequence[Tuple[str, str]]): Strings which should be
@@ -1466,7 +1466,7 @@ async def get_iam_policy(
14661466

14671467
# Wrap the RPC method; this adds retry and timeout information,
14681468
# and friendly error handling.
1469-
rpc=gapic_v1.method.wrap_method(
1469+
rpc=gapic_v1.method_async.wrap_method(
14701470
self._client._transport.get_iam_policy,
14711471
default_timeout=None,
14721472
client_info=DEFAULT_CLIENT_INFO,
@@ -1507,7 +1507,7 @@ async def test_iam_permissions(
15071507
request (:class:`~.iam_policy_pb2.TestIamPermissionsRequest`):
15081508
The request object. Request message for
15091509
`TestIamPermissions` method.
1510-
retry (google.api_core.retry.Retry): Designation of what errors,
1510+
retry (google.api_core.retry_async.AsyncRetry): Designation of what errors,
15111511
if any, should be retried.
15121512
timeout (float): The timeout for this request.
15131513
metadata (Sequence[Tuple[str, str]]): Strings which should be
@@ -1525,7 +1525,7 @@ async def test_iam_permissions(
15251525

15261526
# Wrap the RPC method; this adds retry and timeout information,
15271527
# and friendly error handling.
1528-
rpc=gapic_v1.method.wrap_method(
1528+
rpc=gapic_v1.method_async.wrap_method(
15291529
self._client._transport.test_iam_permissions,
15301530
default_timeout=None,
15311531
client_info=DEFAULT_CLIENT_INFO,
@@ -1562,7 +1562,7 @@ async def get_location(
15621562
request (:class:`~.location_pb2.GetLocationRequest`):
15631563
The request object. Request message for
15641564
`GetLocation` method.
1565-
retry (google.api_core.retry.Retry): Designation of what errors,
1565+
retry (google.api_core.retry_async.AsyncRetry): Designation of what errors,
15661566
if any, should be retried.
15671567
timeout (float): The timeout for this request.
15681568
metadata (Sequence[Tuple[str, str]]): Strings which should be
@@ -1579,7 +1579,7 @@ async def get_location(
15791579

15801580
# Wrap the RPC method; this adds retry and timeout information,
15811581
# and friendly error handling.
1582-
rpc=gapic_v1.method.wrap_method(
1582+
rpc=gapic_v1.method_async.wrap_method(
15831583
self._client._transport.get_location,
15841584
default_timeout=None,
15851585
client_info=DEFAULT_CLIENT_INFO,
@@ -1616,7 +1616,7 @@ async def list_locations(
16161616
request (:class:`~.location_pb2.ListLocationsRequest`):
16171617
The request object. Request message for
16181618
`ListLocations` method.
1619-
retry (google.api_core.retry.Retry): Designation of what errors,
1619+
retry (google.api_core.retry_async.AsyncRetry): Designation of what errors,
16201620
if any, should be retried.
16211621
timeout (float): The timeout for this request.
16221622
metadata (Sequence[Tuple[str, str]]): Strings which should be
@@ -1633,7 +1633,7 @@ async def list_locations(
16331633

16341634
# Wrap the RPC method; this adds retry and timeout information,
16351635
# and friendly error handling.
1636-
rpc=gapic_v1.method.wrap_method(
1636+
rpc=gapic_v1.method_async.wrap_method(
16371637
self._client._transport.list_locations,
16381638
default_timeout=None,
16391639
client_info=DEFAULT_CLIENT_INFO,

‎packages/google-cloud-beyondcorp-appconnections/noxfile.py‎

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,13 @@
2929

3030
BLACK_VERSION="black[jupyter]==23.7.0"
3131
ISORT_VERSION="isort==5.11.0"
32+
3233
LINT_PATHS= ["docs","google","tests","noxfile.py","setup.py"]
3334

35+
3436
DEFAULT_PYTHON_VERSION="3.10"
3537

36-
UNIT_TEST_PYTHON_VERSIONS:List[str]= ["3.7","3.8","3.9","3.10","3.11"]
38+
UNIT_TEST_PYTHON_VERSIONS:List[str]= ["3.7","3.8","3.9","3.10","3.11","3.12"]
3739
UNIT_TEST_STANDARD_DEPENDENCIES= [
3840
"mock",
3941
"asyncmock",
@@ -47,7 +49,7 @@
4749
UNIT_TEST_EXTRAS:List[str]= []
4850
UNIT_TEST_EXTRAS_BY_PYTHON:Dict[str,List[str]]= {}
4951

50-
SYSTEM_TEST_PYTHON_VERSIONS:List[str]= ["3.8","3.9","3.10","3.11"]
52+
SYSTEM_TEST_PYTHON_VERSIONS:List[str]= ["3.8","3.9","3.10","3.11","3.12"]
5153
SYSTEM_TEST_STANDARD_DEPENDENCIES= [
5254
"mock",
5355
"pytest",
@@ -89,6 +91,7 @@ def lint(session):
8991
"--check",
9092
*LINT_PATHS,
9193
)
94+
9295
session.run("flake8","google","tests")
9396

9497

@@ -336,7 +339,7 @@ def docfx(session):
336339
)
337340

338341

339-
@nox.session(python="3.11")
342+
@nox.session(python="3.12")
340343
defprerelease_deps(session):
341344
"""Run all tests with prerelease versions of dependencies installed."""
342345

‎packages/google-cloud-beyondcorp-appconnections/setup.py‎

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
#
1616
importio
1717
importos
18+
importre
1819

1920
importsetuptools# type: ignore
2021

@@ -25,14 +26,16 @@
2526

2627
description="Google Cloud Beyondcorp Appconnections API client library"
2728

28-
version= {}
29+
version=None
30+
2931
withopen(
3032
os.path.join(
3133
package_root,"google/cloud/beyondcorp_appconnections/gapic_version.py"
3234
)
3335
)asfp:
34-
exec(fp.read(),version)
35-
version=version["__version__"]
36+
version_candidates=re.findall(r"(?<=\")\d+.\d+.\d+(?=\")",fp.read())
37+
assertlen(version_candidates)==1
38+
version=version_candidates[0]
3639

3740
ifversion[0]=="0":
3841
release_status="Development Status :: 4 - Beta"
@@ -41,12 +44,11 @@
4144

4245
dependencies= [
4346
"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.*",
44-
"proto-plus >= 1.22.0, <2.0.0dev",
45-
"proto-plus >= 1.22.2, <2.0.0dev; python_version>='3.11'",
47+
"proto-plus >= 1.22.3, <2.0.0dev",
4648
"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",
4749
"grpc-google-iam-v1 >= 0.12.4, <1.0.0dev",
4850
]
49-
url="https://github.com/googleapis/google-cloud-python"
51+
url="https://github.com/googleapis/google-cloud-python/tree/main/packages/google-cloud-beyondcorp-appconnections"
5052

5153
package_root=os.path.abspath(os.path.dirname(__file__))
5254

@@ -56,12 +58,10 @@
5658

5759
packages= [
5860
package
59-
forpackageinsetuptools.PEP420PackageFinder.find()
61+
forpackageinsetuptools.find_namespace_packages()
6062
ifpackage.startswith("google")
6163
]
6264

63-
namespaces= ["google","google.cloud"]
64-
6565
setuptools.setup(
6666
name=name,
6767
version=version,
@@ -82,13 +82,13 @@
8282
"Programming Language :: Python :: 3.9",
8383
"Programming Language :: Python :: 3.10",
8484
"Programming Language :: Python :: 3.11",
85+
"Programming Language :: Python :: 3.12",
8586
"Operating System :: OS Independent",
8687
"Topic :: Internet",
8788
],
8889
platforms="Posix; MacOS X; Windows",
8990
packages=packages,
9091
python_requires=">=3.7",
91-
namespace_packages=namespaces,
9292
install_requires=dependencies,
9393
include_package_data=True,
9494
zip_safe=False,

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp