Skip to content

Commit b96013d

Browse files
feat: [Many APIs] Add support for Python 3.12 (googleapis#12072)
- [ ] Regenerate this pull request now. docs: updated doc for speech mode PiperOrigin-RevId: 586469693 Source-Link: googleapis/googleapis@e8148d6 Source-Link: https://github.com/googleapis/googleapis-gen/commit/85136bd04383ed7172bb18b7b8d220dd7ff6b3a0 Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWNvbW1lcmNlLWNvbnN1bWVyLXByb2N1cmVtZW50Ly5Pd2xCb3QueWFtbCIsImgiOiI4NTEzNmJkMDQzODNlZDcxNzJiYjE4YjdiOGQyMjBkZDdmZjZiM2EwIn0= Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWNvbXB1dGUvLk93bEJvdC55YW1sIiwiaCI6Ijg1MTM2YmQwNDM4M2VkNzE3MmJiMThiN2I4ZDIyMGRkN2ZmNmIzYTAifQ== Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWNvbmZpZGVudGlhbGNvbXB1dGluZy8uT3dsQm90LnlhbWwiLCJoIjoiODUxMzZiZDA0MzgzZWQ3MTcyYmIxOGI3YjhkMjIwZGQ3ZmY2YjNhMCJ9 Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWNvbmZpZy8uT3dsQm90LnlhbWwiLCJoIjoiODUxMzZiZDA0MzgzZWQ3MTcyYmIxOGI3YjhkMjIwZGQ3ZmY2YjNhMCJ9 Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWNvbnRhY3QtY2VudGVyLWluc2lnaHRzLy5Pd2xCb3QueWFtbCIsImgiOiI4NTEzNmJkMDQzODNlZDcxNzJiYjE4YjdiOGQyMjBkZDdmZjZiM2EwIn0= Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWNvbnRhaW5lci8uT3dsQm90LnlhbWwiLCJoIjoiODUxMzZiZDA0MzgzZW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CJ9 BEGIN_COMMIT_OVERRIDE feat: Add support for python 3.12 feat: Introduce compatibility with native namespace packages fix: Use `retry_async` instead of `retry` in async client fix: Require proto-plus >= 1.22.3 END_COMMIT_OVERRIDE --------- Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com> Co-authored-by: Anthonios Partheniou <partheniou@google.com>
1 parent 0d1a592 commit b96013d

File tree

196 files changed

+1908
-1838
lines changed

Some content is hidden

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

196 files changed

+1908
-1838
lines changed

packages/google-cloud-commerce-consumer-procurement/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.10 and 3.11 on both UNIX and Windows.
25+
3.7, 3.8, 3.9, 3.10, 3.11 and 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.10 and 3.11.
151+
System tests are only configured to run under Python 3.8, 3.9, 3.10, 3.11 and 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-commerce-consumer-procurement/google/cloud/commerce_consumer_procurement_v1/services/consumer_procurement_service/async_client.py

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

3131
from google.api_core import exceptions as core_exceptions
3232
from google.api_core import gapic_v1
33-
from google.api_core import retry as retries
33+
from google.api_core import retry_async as retries
3434
from google.api_core.client_options import ClientOptions
3535
from google.auth import credentials as ga_credentials # type: ignore
3636
from google.oauth2 import service_account # type: ignore
@@ -40,9 +40,9 @@
4040
)
4141

4242
try:
43-
OptionalRetry = Union[retries.Retry, gapic_v1.method._MethodDefault]
43+
OptionalRetry = Union[retries.AsyncRetry, gapic_v1.method._MethodDefault]
4444
except AttributeError: # pragma: NO COVER
45-
OptionalRetry = Union[retries.Retry, object] # type: ignore
45+
OptionalRetry = Union[retries.AsyncRetry, object] # type: ignore
4646

4747
from google.api_core import operation # type: ignore
4848
from google.api_core import operation_async # type: ignore
@@ -298,7 +298,7 @@ async def sample_place_order():
298298
request (Optional[Union[google.cloud.commerce_consumer_procurement_v1.types.PlaceOrderRequest, dict]]):
299299
The request object. Request message for
300300
[ConsumerProcurementService.PlaceOrder][google.cloud.commerce.consumer.procurement.v1.ConsumerProcurementService.PlaceOrder].
301-
retry (google.api_core.retry.Retry): Designation of what errors, if any,
301+
retry (google.api_core.retry_async.AsyncRetry): Designation of what errors, if any,
302302
should be retried.
303303
timeout (float): The timeout for this request.
304304
metadata (Sequence[Tuple[str, str]]): Strings which should be
@@ -410,7 +410,7 @@ async def sample_get_order():
410410
This corresponds to the ``name`` field
411411
on the ``request`` instance; if ``request`` is provided, this
412412
should not be set.
413-
retry (google.api_core.retry.Retry): Designation of what errors, if any,
413+
retry (google.api_core.retry_async.AsyncRetry): Designation of what errors, if any,
414414
should be retried.
415415
timeout (float): The timeout for this request.
416416
metadata (Sequence[Tuple[str, str]]): Strings which should be
@@ -459,7 +459,7 @@ async def sample_get_order():
459459
# and friendly error handling.
460460
rpc = gapic_v1.method_async.wrap_method(
461461
self._client._transport.get_order,
462-
default_retry=retries.Retry(
462+
default_retry=retries.AsyncRetry(
463463
initial=1.0,
464464
maximum=60.0,
465465
multiplier=1.3,
@@ -542,7 +542,7 @@ async def sample_list_orders():
542542
This corresponds to the ``parent`` field
543543
on the ``request`` instance; if ``request`` is provided, this
544544
should not be set.
545-
retry (google.api_core.retry.Retry): Designation of what errors, if any,
545+
retry (google.api_core.retry_async.AsyncRetry): Designation of what errors, if any,
546546
should be retried.
547547
timeout (float): The timeout for this request.
548548
metadata (Sequence[Tuple[str, str]]): Strings which should be
@@ -578,7 +578,7 @@ async def sample_list_orders():
578578
# and friendly error handling.
579579
rpc = gapic_v1.method_async.wrap_method(
580580
self._client._transport.list_orders,
581-
default_retry=retries.Retry(
581+
default_retry=retries.AsyncRetry(
582582
initial=1.0,
583583
maximum=60.0,
584584
multiplier=1.3,
@@ -631,7 +631,7 @@ async def get_operation(
631631
request (:class:`~.operations_pb2.GetOperationRequest`):
632632
The request object. Request message for
633633
`GetOperation` method.
634-
retry (google.api_core.retry.Retry): Designation of what errors,
634+
retry (google.api_core.retry_async.AsyncRetry): Designation of what errors,
635635
if any, should be retried.
636636
timeout (float): The timeout for this request.
637637
metadata (Sequence[Tuple[str, str]]): Strings which should be
@@ -648,7 +648,7 @@ async def get_operation(
648648

649649
# Wrap the RPC method; this adds retry and timeout information,
650650
# and friendly error handling.
651-
rpc = gapic_v1.method.wrap_method(
651+
rpc = gapic_v1.method_async.wrap_method(
652652
self._client._transport.get_operation,
653653
default_timeout=None,
654654
client_info=DEFAULT_CLIENT_INFO,

packages/google-cloud-commerce-consumer-procurement/google/cloud/commerce_consumer_procurement_v1alpha1/services/consumer_procurement_service/async_client.py

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

3131
from google.api_core import exceptions as core_exceptions
3232
from google.api_core import gapic_v1
33-
from google.api_core import retry as retries
33+
from google.api_core import retry_async as retries
3434
from google.api_core.client_options import ClientOptions
3535
from google.auth import credentials as ga_credentials # type: ignore
3636
from google.oauth2 import service_account # type: ignore
@@ -40,9 +40,9 @@
4040
)
4141

4242
try:
43-
OptionalRetry = Union[retries.Retry, gapic_v1.method._MethodDefault]
43+
OptionalRetry = Union[retries.AsyncRetry, gapic_v1.method._MethodDefault]
4444
except AttributeError: # pragma: NO COVER
45-
OptionalRetry = Union[retries.Retry, object] # type: ignore
45+
OptionalRetry = Union[retries.AsyncRetry, object] # type: ignore
4646

4747
from google.api_core import operation # type: ignore
4848
from google.api_core import operation_async # type: ignore
@@ -298,7 +298,7 @@ async def sample_place_order():
298298
request (Optional[Union[google.cloud.commerce_consumer_procurement_v1alpha1.types.PlaceOrderRequest, dict]]):
299299
The request object. Request message for
300300
[ConsumerProcurementService.PlaceOrder][google.cloud.commerce.consumer.procurement.v1alpha1.ConsumerProcurementService.PlaceOrder].
301-
retry (google.api_core.retry.Retry): Designation of what errors, if any,
301+
retry (google.api_core.retry_async.AsyncRetry): Designation of what errors, if any,
302302
should be retried.
303303
timeout (float): The timeout for this request.
304304
metadata (Sequence[Tuple[str, str]]): Strings which should be
@@ -410,7 +410,7 @@ async def sample_get_order():
410410
This corresponds to the ``name`` field
411411
on the ``request`` instance; if ``request`` is provided, this
412412
should not be set.
413-
retry (google.api_core.retry.Retry): Designation of what errors, if any,
413+
retry (google.api_core.retry_async.AsyncRetry): Designation of what errors, if any,
414414
should be retried.
415415
timeout (float): The timeout for this request.
416416
metadata (Sequence[Tuple[str, str]]): Strings which should be
@@ -459,7 +459,7 @@ async def sample_get_order():
459459
# and friendly error handling.
460460
rpc = gapic_v1.method_async.wrap_method(
461461
self._client._transport.get_order,
462-
default_retry=retries.Retry(
462+
default_retry=retries.AsyncRetry(
463463
initial=1.0,
464464
maximum=60.0,
465465
multiplier=1.3,
@@ -542,7 +542,7 @@ async def sample_list_orders():
542542
This corresponds to the ``parent`` field
543543
on the ``request`` instance; if ``request`` is provided, this
544544
should not be set.
545-
retry (google.api_core.retry.Retry): Designation of what errors, if any,
545+
retry (google.api_core.retry_async.AsyncRetry): Designation of what errors, if any,
546546
should be retried.
547547
timeout (float): The timeout for this request.
548548
metadata (Sequence[Tuple[str, str]]): Strings which should be
@@ -578,7 +578,7 @@ async def sample_list_orders():
578578
# and friendly error handling.
579579
rpc = gapic_v1.method_async.wrap_method(
580580
self._client._transport.list_orders,
581-
default_retry=retries.Retry(
581+
default_retry=retries.AsyncRetry(
582582
initial=1.0,
583583
maximum=60.0,
584584
multiplier=1.3,
@@ -631,7 +631,7 @@ async def get_operation(
631631
request (:class:`~.operations_pb2.GetOperationRequest`):
632632
The request object. Request message for
633633
`GetOperation` method.
634-
retry (google.api_core.retry.Retry): Designation of what errors,
634+
retry (google.api_core.retry_async.AsyncRetry): Designation of what errors,
635635
if any, should be retried.
636636
timeout (float): The timeout for this request.
637637
metadata (Sequence[Tuple[str, str]]): Strings which should be
@@ -648,7 +648,7 @@ async def get_operation(
648648

649649
# Wrap the RPC method; this adds retry and timeout information,
650650
# and friendly error handling.
651-
rpc = gapic_v1.method.wrap_method(
651+
rpc = gapic_v1.method_async.wrap_method(
652652
self._client._transport.get_operation,
653653
default_timeout=None,
654654
client_info=DEFAULT_CLIENT_INFO,

packages/google-cloud-commerce-consumer-procurement/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
def prerelease_deps(session):
341344
"""Run all tests with prerelease versions of dependencies installed."""
342345

packages/google-cloud-commerce-consumer-procurement/setup.py

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
#
1616
import io
1717
import os
18+
import re
1819

1920
import setuptools # type: ignore
2021

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

2627
description = "Google Cloud Commerce Consumer Procurement API client library"
2728

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

3740
if version[0] == "0":
3841
release_status = "Development Status :: 4 - Beta"
@@ -41,11 +44,10 @@
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
]
48-
url = "https://github.com/googleapis/google-cloud-python"
50+
url = "https://github.com/googleapis/google-cloud-python/tree/main/packages/google-cloud-commerce-consumer-procurement"
4951

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

@@ -55,12 +57,10 @@
5557

5658
packages = [
5759
package
58-
for package in setuptools.PEP420PackageFinder.find()
60+
for package in setuptools.find_namespace_packages()
5961
if package.startswith("google")
6062
]
6163

62-
namespaces = ["google", "google.cloud"]
63-
6464
setuptools.setup(
6565
name=name,
6666
version=version,
@@ -81,13 +81,13 @@
8181
"Programming Language :: Python :: 3.9",
8282
"Programming Language :: Python :: 3.10",
8383
"Programming Language :: Python :: 3.11",
84+
"Programming Language :: Python :: 3.12",
8485
"Operating System :: OS Independent",
8586
"Topic :: Internet",
8687
],
8788
platforms="Posix; MacOS X; Windows",
8889
packages=packages,
8990
python_requires=">=3.7",
90-
namespace_packages=namespaces,
9191
install_requires=dependencies,
9292
include_package_data=True,
9393
zip_safe=False,

packages/google-cloud-commerce-consumer-procurement/testing/constraints-3.7.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,5 @@
55
# e.g., if setup.py has "google-cloud-foo >= 1.14.0, < 2.0.0dev",
66
# Then this file should have google-cloud-foo==1.14.0
77
google-api-core==1.34.0
8-
proto-plus==1.22.0
8+
proto-plus==1.22.3
99
protobuf==3.19.5

packages/google-cloud-commerce-consumer-procurement/tests/unit/gapic/commerce_consumer_procurement_v1/test_consumer_procurement_service.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3279,7 +3279,7 @@ def test_get_operation(transport: str = "grpc"):
32793279

32803280

32813281
@pytest.mark.asyncio
3282-
async def test_get_operation_async(transport: str = "grpc"):
3282+
async def test_get_operation_async(transport: str = "grpc_asyncio"):
32833283
client = ConsumerProcurementServiceAsyncClient(
32843284
credentials=ga_credentials.AnonymousCredentials(),
32853285
transport=transport,

packages/google-cloud-commerce-consumer-procurement/tests/unit/gapic/commerce_consumer_procurement_v1alpha1/test_consumer_procurement_service.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3281,7 +3281,7 @@ def test_get_operation(transport: str = "grpc"):
32813281

32823282

32833283
@pytest.mark.asyncio
3284-
async def test_get_operation_async(transport: str = "grpc"):
3284+
async def test_get_operation_async(transport: str = "grpc_asyncio"):
32853285
client = ConsumerProcurementServiceAsyncClient(
32863286
credentials=ga_credentials.AnonymousCredentials(),
32873287
transport=transport,

0 commit comments

Comments
 (0)