Skip to content

Commit 7cb80ba

Browse files
feat: Add support for Python 3.13 (#13213)
- [ ] Regenerate this pull request now. BEGIN_COMMIT_OVERRIDE feat: Add multi-speaker markup, which allows generating dialogue between multiple speakers feat: Add support for Python 3.13 END_COMMIT_OVERRIDE PiperOrigin-RevId: 689444598 Source-Link: googleapis/googleapis@56f5fa4 Source-Link: googleapis/googleapis-gen@532d282 Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLXRleHR0b3NwZWVjaC8uT3dsQm90LnlhbWwiLCJoIjoiNTMyZDI4MjkxMmIxZWFmMTQxNTgxN2MwNjhlY2UyZTM1NGYwMDU1ZSJ9 Towards #13187 --------- Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com> Co-authored-by: Anthonios Partheniou <partheniou@google.com>
1 parent 19dc048 commit 7cb80ba

20 files changed

Lines changed: 93 additions & 23 deletions

File tree

packages/google-cloud-texttospeech/.flake8

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# -*- coding: utf-8 -*-
22
#
3-
# Copyright 2023 Google LLC
3+
# Copyright 2024 Google LLC
44
#
55
# Licensed under the Apache License, Version 2.0 (the "License");
66
# you may not use this file except in compliance with the License.

packages/google-cloud-texttospeech/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, 3.11 and 3.12 on both UNIX and Windows.
25+
3.7, 3.8, 3.9, 3.10, 3.11, 3.12 and 3.13 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.12 -- -k <name of test>
75+
$ nox -s unit-3.13 -- -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.12 -- -k <name of test>
146+
$ nox -s system-3.13 -- -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, 3.11 and 3.12.
151+
System tests are only configured to run under Python 3.8, 3.9, 3.10, 3.11, 3.12 and 3.13.
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
@@ -227,13 +227,15 @@ We support:
227227
- `Python 3.10`_
228228
- `Python 3.11`_
229229
- `Python 3.12`_
230+
- `Python 3.13`_
230231

231232
.. _Python 3.7: https://docs.python.org/3.7/
232233
.. _Python 3.8: https://docs.python.org/3.8/
233234
.. _Python 3.9: https://docs.python.org/3.9/
234235
.. _Python 3.10: https://docs.python.org/3.10/
235236
.. _Python 3.11: https://docs.python.org/3.11/
236237
.. _Python 3.12: https://docs.python.org/3.12/
238+
.. _Python 3.13: https://docs.python.org/3.13/
237239

238240

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

packages/google-cloud-texttospeech/MANIFEST.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# -*- coding: utf-8 -*-
22
#
3-
# Copyright 2023 Google LLC
3+
# Copyright 2024 Google LLC
44
#
55
# Licensed under the Apache License, Version 2.0 (the "License");
66
# you may not use this file except in compliance with the License.

packages/google-cloud-texttospeech/docs/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# -*- coding: utf-8 -*-
2-
# Copyright 2023 Google LLC
2+
# Copyright 2024 Google LLC
33
#
44
# Licensed under the Apache License, Version 2.0 (the "License");
55
# you may not use this file except in compliance with the License.

packages/google-cloud-texttospeech/google/cloud/texttospeech/gapic_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@
1313
# See the License for the specific language governing permissions and
1414
# limitations under the License.
1515
#
16-
__version__ = "2.19.0" # {x-release-please-version}
16+
__version__ = "0.0.0" # {x-release-please-version}

packages/google-cloud-texttospeech/google/cloud/texttospeech_v1/gapic_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@
1313
# See the License for the specific language governing permissions and
1414
# limitations under the License.
1515
#
16-
__version__ = "2.19.0" # {x-release-please-version}
16+
__version__ = "0.0.0" # {x-release-please-version}

packages/google-cloud-texttospeech/google/cloud/texttospeech_v1/services/text_to_speech/transports/rest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo(
4343
gapic_version=BASE_DEFAULT_CLIENT_INFO.gapic_version,
4444
grpc_version=None,
45-
rest_version=requests_version,
45+
rest_version=f"requests@{requests_version}",
4646
)
4747

4848

packages/google-cloud-texttospeech/google/cloud/texttospeech_v1/services/text_to_speech_long_audio_synthesize/transports/rest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo(
4343
gapic_version=BASE_DEFAULT_CLIENT_INFO.gapic_version,
4444
grpc_version=None,
45-
rest_version=requests_version,
45+
rest_version=f"requests@{requests_version}",
4646
)
4747

4848

packages/google-cloud-texttospeech/google/cloud/texttospeech_v1beta1/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@
3232
CustomVoiceParams,
3333
ListVoicesRequest,
3434
ListVoicesResponse,
35+
MultiSpeakerMarkup,
3536
SsmlVoiceGender,
3637
StreamingSynthesisInput,
3738
StreamingSynthesizeConfig,
@@ -62,6 +63,7 @@
6263
"CustomVoiceParams",
6364
"ListVoicesRequest",
6465
"ListVoicesResponse",
66+
"MultiSpeakerMarkup",
6567
"SsmlVoiceGender",
6668
"StreamingSynthesisInput",
6769
"StreamingSynthesizeConfig",

packages/google-cloud-texttospeech/google/cloud/texttospeech_v1beta1/gapic_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@
1313
# See the License for the specific language governing permissions and
1414
# limitations under the License.
1515
#
16-
__version__ = "2.19.0" # {x-release-please-version}
16+
__version__ = "0.0.0" # {x-release-please-version}

0 commit comments

Comments
 (0)