Skip to content

Commit ea6cfc2

Browse files
feat: [Many APIs] Add support for Python 3.12 (googleapis#12070)
- [ ] 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: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWFpLWdlbmVyYXRpdmVsYW5ndWFnZS8uT3dsQm90LnlhbWwiLCJoIjoiODUxMzZiZDA0MzgzZWQ3MTcyYmIxOGI3YjhkMjIwZGQ3ZmY2YjNhMCJ9 Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWFuYWx5dGljcy1hZG1pbi8uT3dsQm90LnlhbWwiLCJoIjoiODUxMzZiZDA0MzgzZWQ3MTcyYmIxOGI3YjhkMjIwZGQ3ZmY2YjNhMCJ9 Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWFwcHMtc2NyaXB0LXR5cGUvLk93bEJvdC55YW1sIiwiaCI6Ijg1MTM2YmQwNDM4M2VkNzE3MmJiMThiN2I4ZDIyMGRkN2ZmNmIzYTAifQ== Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWFyZWExMjAtdGFibGVzLy5Pd2xCb3QueWFtbCIsImgiOiI4NTEzNmJkMDQzODNlZDcxNzJiYjE4YjdiOGQyMjBkZDdmZjZiM2EwIn0= Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWFjY2Vzcy1hcHByb3ZhbC8uT3dsQm90LnlhbWwiLCJoIjoiODUxMzZiZDA0MzgzZWQ3MTcyYmIxOGI3YjhkMjIwZGQ3ZmY2YjNhMCJ9 Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWFkdmlzb3J5bm90aWZpY2F0aW9ucy8uT3dsQm90LnlhbWwiLCJoIjoiODUxMzZiZDA0MzgzZWQ3MTcyYmIxOG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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 9a629e1 commit ea6cfc2

File tree

180 files changed

+1607
-1553
lines changed

Some content is hidden

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

180 files changed

+1607
-1553
lines changed

packages/google-ai-generativelanguage/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-ai-generativelanguage/google/ai/generativelanguage_v1beta2/services/discuss_service/async_client.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -30,17 +30,17 @@
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
3737

3838
from google.ai.generativelanguage_v1beta2 import gapic_version as package_version
3939

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

4545
from google.ai.generativelanguage_v1beta2.types import discuss_service, safety
4646

@@ -332,7 +332,7 @@ async def sample_generate_message():
332332
This corresponds to the ``top_k`` field
333333
on the ``request`` instance; if ``request`` is provided, this
334334
should not be set.
335-
retry (google.api_core.retry.Retry): Designation of what errors, if any,
335+
retry (google.api_core.retry_async.AsyncRetry): Designation of what errors, if any,
336336
should be retried.
337337
timeout (float): The timeout for this request.
338338
metadata (Sequence[Tuple[str, str]]): Strings which should be
@@ -380,7 +380,7 @@ async def sample_generate_message():
380380
# and friendly error handling.
381381
rpc = gapic_v1.method_async.wrap_method(
382382
self._client._transport.generate_message,
383-
default_retry=retries.Retry(
383+
default_retry=retries.AsyncRetry(
384384
initial=1.0,
385385
maximum=10.0,
386386
multiplier=1.3,
@@ -481,7 +481,7 @@ async def sample_count_message_tokens():
481481
This corresponds to the ``prompt`` field
482482
on the ``request`` instance; if ``request`` is provided, this
483483
should not be set.
484-
retry (google.api_core.retry.Retry): Designation of what errors, if any,
484+
retry (google.api_core.retry_async.AsyncRetry): Designation of what errors, if any,
485485
should be retried.
486486
timeout (float): The timeout for this request.
487487
metadata (Sequence[Tuple[str, str]]): Strings which should be
@@ -517,7 +517,7 @@ async def sample_count_message_tokens():
517517
# and friendly error handling.
518518
rpc = gapic_v1.method_async.wrap_method(
519519
self._client._transport.count_message_tokens,
520-
default_retry=retries.Retry(
520+
default_retry=retries.AsyncRetry(
521521
initial=1.0,
522522
maximum=10.0,
523523
multiplier=1.3,

packages/google-ai-generativelanguage/google/ai/generativelanguage_v1beta2/services/model_service/async_client.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -30,17 +30,17 @@
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
3737

3838
from google.ai.generativelanguage_v1beta2 import gapic_version as package_version
3939

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

4545
from google.ai.generativelanguage_v1beta2.services.model_service import pagers
4646
from google.ai.generativelanguage_v1beta2.types import model, model_service
@@ -264,7 +264,7 @@ async def sample_get_model():
264264
This corresponds to the ``name`` field
265265
on the ``request`` instance; if ``request`` is provided, this
266266
should not be set.
267-
retry (google.api_core.retry.Retry): Designation of what errors, if any,
267+
retry (google.api_core.retry_async.AsyncRetry): Designation of what errors, if any,
268268
should be retried.
269269
timeout (float): The timeout for this request.
270270
metadata (Sequence[Tuple[str, str]]): Strings which should be
@@ -297,7 +297,7 @@ async def sample_get_model():
297297
# and friendly error handling.
298298
rpc = gapic_v1.method_async.wrap_method(
299299
self._client._transport.get_model,
300-
default_retry=retries.Retry(
300+
default_retry=retries.AsyncRetry(
301301
initial=1.0,
302302
maximum=10.0,
303303
multiplier=1.3,
@@ -393,7 +393,7 @@ async def sample_list_models():
393393
This corresponds to the ``page_token`` field
394394
on the ``request`` instance; if ``request`` is provided, this
395395
should not be set.
396-
retry (google.api_core.retry.Retry): Designation of what errors, if any,
396+
retry (google.api_core.retry_async.AsyncRetry): Designation of what errors, if any,
397397
should be retried.
398398
timeout (float): The timeout for this request.
399399
metadata (Sequence[Tuple[str, str]]): Strings which should be
@@ -431,7 +431,7 @@ async def sample_list_models():
431431
# and friendly error handling.
432432
rpc = gapic_v1.method_async.wrap_method(
433433
self._client._transport.list_models,
434-
default_retry=retries.Retry(
434+
default_retry=retries.AsyncRetry(
435435
initial=1.0,
436436
maximum=10.0,
437437
multiplier=1.3,

packages/google-ai-generativelanguage/google/ai/generativelanguage_v1beta2/services/text_service/async_client.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -30,17 +30,17 @@
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
3737

3838
from google.ai.generativelanguage_v1beta2 import gapic_version as package_version
3939

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

4545
from google.ai.generativelanguage_v1beta2.types import safety, text_service
4646

@@ -348,7 +348,7 @@ async def sample_generate_text():
348348
This corresponds to the ``top_k`` field
349349
on the ``request`` instance; if ``request`` is provided, this
350350
should not be set.
351-
retry (google.api_core.retry.Retry): Designation of what errors, if any,
351+
retry (google.api_core.retry_async.AsyncRetry): Designation of what errors, if any,
352352
should be retried.
353353
timeout (float): The timeout for this request.
354354
metadata (Sequence[Tuple[str, str]]): Strings which should be
@@ -403,7 +403,7 @@ async def sample_generate_text():
403403
# and friendly error handling.
404404
rpc = gapic_v1.method_async.wrap_method(
405405
self._client._transport.generate_text,
406-
default_retry=retries.Retry(
406+
default_retry=retries.AsyncRetry(
407407
initial=1.0,
408408
maximum=10.0,
409409
multiplier=1.3,
@@ -492,7 +492,7 @@ async def sample_embed_text():
492492
This corresponds to the ``text`` field
493493
on the ``request`` instance; if ``request`` is provided, this
494494
should not be set.
495-
retry (google.api_core.retry.Retry): Designation of what errors, if any,
495+
retry (google.api_core.retry_async.AsyncRetry): Designation of what errors, if any,
496496
should be retried.
497497
timeout (float): The timeout for this request.
498498
metadata (Sequence[Tuple[str, str]]): Strings which should be
@@ -525,7 +525,7 @@ async def sample_embed_text():
525525
# and friendly error handling.
526526
rpc = gapic_v1.method_async.wrap_method(
527527
self._client._transport.embed_text,
528-
default_retry=retries.Retry(
528+
default_retry=retries.AsyncRetry(
529529
initial=1.0,
530530
maximum=10.0,
531531
multiplier=1.3,

packages/google-ai-generativelanguage/google/ai/generativelanguage_v1beta3/services/discuss_service/async_client.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,17 +30,17 @@
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
3737

3838
from google.ai.generativelanguage_v1beta3 import gapic_version as package_version
3939

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

4545
from google.longrunning import operations_pb2 # type: ignore
4646

@@ -334,7 +334,7 @@ async def sample_generate_message():
334334
This corresponds to the ``top_k`` field
335335
on the ``request`` instance; if ``request`` is provided, this
336336
should not be set.
337-
retry (google.api_core.retry.Retry): Designation of what errors, if any,
337+
retry (google.api_core.retry_async.AsyncRetry): Designation of what errors, if any,
338338
should be retried.
339339
timeout (float): The timeout for this request.
340340
metadata (Sequence[Tuple[str, str]]): Strings which should be
@@ -474,7 +474,7 @@ async def sample_count_message_tokens():
474474
This corresponds to the ``prompt`` field
475475
on the ``request`` instance; if ``request`` is provided, this
476476
should not be set.
477-
retry (google.api_core.retry.Retry): Designation of what errors, if any,
477+
retry (google.api_core.retry_async.AsyncRetry): Designation of what errors, if any,
478478
should be retried.
479479
timeout (float): The timeout for this request.
480480
metadata (Sequence[Tuple[str, str]]): Strings which should be

packages/google-ai-generativelanguage/google/ai/generativelanguage_v1beta3/services/model_service/async_client.py

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -30,17 +30,17 @@
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
3737

3838
from google.ai.generativelanguage_v1beta3 import gapic_version as package_version
3939

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

4545
from google.api_core import operation # type: ignore
4646
from google.api_core import operation_async # type: ignore
@@ -274,7 +274,7 @@ async def sample_get_model():
274274
This corresponds to the ``name`` field
275275
on the ``request`` instance; if ``request`` is provided, this
276276
should not be set.
277-
retry (google.api_core.retry.Retry): Designation of what errors, if any,
277+
retry (google.api_core.retry_async.AsyncRetry): Designation of what errors, if any,
278278
should be retried.
279279
timeout (float): The timeout for this request.
280280
metadata (Sequence[Tuple[str, str]]): Strings which should be
@@ -394,7 +394,7 @@ async def sample_list_models():
394394
This corresponds to the ``page_token`` field
395395
on the ``request`` instance; if ``request`` is provided, this
396396
should not be set.
397-
retry (google.api_core.retry.Retry): Designation of what errors, if any,
397+
retry (google.api_core.retry_async.AsyncRetry): Designation of what errors, if any,
398398
should be retried.
399399
timeout (float): The timeout for this request.
400400
metadata (Sequence[Tuple[str, str]]): Strings which should be
@@ -505,7 +505,7 @@ async def sample_get_tuned_model():
505505
This corresponds to the ``name`` field
506506
on the ``request`` instance; if ``request`` is provided, this
507507
should not be set.
508-
retry (google.api_core.retry.Retry): Designation of what errors, if any,
508+
retry (google.api_core.retry_async.AsyncRetry): Designation of what errors, if any,
509509
should be retried.
510510
timeout (float): The timeout for this request.
511511
metadata (Sequence[Tuple[str, str]]): Strings which should be
@@ -626,7 +626,7 @@ async def sample_list_tuned_models():
626626
This corresponds to the ``page_token`` field
627627
on the ``request`` instance; if ``request`` is provided, this
628628
should not be set.
629-
retry (google.api_core.retry.Retry): Designation of what errors, if any,
629+
retry (google.api_core.retry_async.AsyncRetry): Designation of what errors, if any,
630630
should be retried.
631631
timeout (float): The timeout for this request.
632632
metadata (Sequence[Tuple[str, str]]): Strings which should be
@@ -757,7 +757,7 @@ async def sample_create_tuned_model():
757757
This corresponds to the ``tuned_model_id`` field
758758
on the ``request`` instance; if ``request`` is provided, this
759759
should not be set.
760-
retry (google.api_core.retry.Retry): Designation of what errors, if any,
760+
retry (google.api_core.retry_async.AsyncRetry): Designation of what errors, if any,
761761
should be retried.
762762
timeout (float): The timeout for this request.
763763
metadata (Sequence[Tuple[str, str]]): Strings which should be
@@ -876,7 +876,7 @@ async def sample_update_tuned_model():
876876
This corresponds to the ``update_mask`` field
877877
on the ``request`` instance; if ``request`` is provided, this
878878
should not be set.
879-
retry (google.api_core.retry.Retry): Designation of what errors, if any,
879+
retry (google.api_core.retry_async.AsyncRetry): Designation of what errors, if any,
880880
should be retried.
881881
timeout (float): The timeout for this request.
882882
metadata (Sequence[Tuple[str, str]]): Strings which should be
@@ -978,7 +978,7 @@ async def sample_delete_tuned_model():
978978
This corresponds to the ``name`` field
979979
on the ``request`` instance; if ``request`` is provided, this
980980
should not be set.
981-
retry (google.api_core.retry.Retry): Designation of what errors, if any,
981+
retry (google.api_core.retry_async.AsyncRetry): Designation of what errors, if any,
982982
should be retried.
983983
timeout (float): The timeout for this request.
984984
metadata (Sequence[Tuple[str, str]]): Strings which should be

0 commit comments

Comments
 (0)