Skip to content

Commit 4f4fdcf

Browse files
feat: Add support for Python 3.13 (#13205)
- [ ] Regenerate this pull request now. 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 2605ae0 commit 4f4fdcf

16 files changed

Lines changed: 40 additions & 22 deletions

File tree

packages/google-cloud-documentai/.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-documentai/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-documentai/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-documentai/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-documentai/google/cloud/documentai/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.34.0" # {x-release-please-version}
16+
__version__ = "0.0.0" # {x-release-please-version}

packages/google-cloud-documentai/google/cloud/documentai_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.34.0" # {x-release-please-version}
16+
__version__ = "0.0.0" # {x-release-please-version}

packages/google-cloud-documentai/google/cloud/documentai_v1/services/document_processor_service/transports/rest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo(
4747
gapic_version=BASE_DEFAULT_CLIENT_INFO.gapic_version,
4848
grpc_version=None,
49-
rest_version=requests_version,
49+
rest_version=f"requests@{requests_version}",
5050
)
5151

5252

packages/google-cloud-documentai/google/cloud/documentai_v1beta3/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.34.0" # {x-release-please-version}
16+
__version__ = "0.0.0" # {x-release-please-version}

packages/google-cloud-documentai/google/cloud/documentai_v1beta3/services/document_processor_service/transports/rest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo(
4747
gapic_version=BASE_DEFAULT_CLIENT_INFO.gapic_version,
4848
grpc_version=None,
49-
rest_version=requests_version,
49+
rest_version=f"requests@{requests_version}",
5050
)
5151

5252

packages/google-cloud-documentai/google/cloud/documentai_v1beta3/services/document_service/transports/rest.py

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

4949

0 commit comments

Comments
 (0)