Skip to content

Commit a58483b

Browse files
feat: Add support for Python 3.13 (googleapis#13198)
- [ ] Regenerate this pull request now. PiperOrigin-RevId: 689139590 Source-Link: googleapis/googleapis@296f2ac Source-Link: https://github.com/googleapis/googleapis-gen/commit/26927362e0aa1293258fc23fe3ce83c5c21d5fbb Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLXNob3BwaW5nLWNzcy8uT3dsQm90LnlhbWwiLCJoIjoiMjY5MjczNjJlMGFhMTI5MzI1OGZjMjNmZTNjZTgzYzVjMjFkNWZiYiJ9 BEGIN_COMMIT_OVERRIDE feat: [google-shopping-css] A new field `headline_offer_installment` is added to message `.google.shopping.css.v1.Attributes` feat: A new field `headline_offer_subscription_cost` is added to message `.google.shopping.css.v1.Attributes` feat: A new message `HeadlineOfferSubscriptionCost` is added feat: A new message `HeadlineOfferInstallment` is added feat: A new enum `SubscriptionPeriod` is added feat: Add support for Python 3.13 END_COMMIT_OVERRIDE BEGIN_NESTED_COMMIT feat: [google-shopping-css] A new field `headline_offer_installment` is added to message `.google.shopping.css.v1.Attributes` feat: A new field `headline_offer_subscription_cost` is added to message `.google.shopping.css.v1.Attributes` feat: A new message `HeadlineOfferSubscriptionCost` is added feat: A new message `HeadlineOfferInstallment` is added feat: A new enum `SubscriptionPeriod` is added PiperOrigin-RevId: 688649184 Source-Link: googleapis/googleapis@c8a7261 Source-Link: https://github.com/googleapis/googleapis-gen/commit/3dcef19e307b679a3f6c881d79f064e885fd52fd Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLXNob3BwaW5nLWNzcy8uT3dsQm90LnlhbWwiLCJoIjoiM2RjZWYxOWUzMDdiNjc5YTNmNmM4ODFkNzlmMDY0ZTg4NWZkNTJmZCJ9 END_NESTED_COMMIT Towards googleapis#13187 --------- Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com> Co-authored-by: Anthonios Partheniou <partheniou@google.com>
1 parent 650b941 commit a58483b

19 files changed

Lines changed: 175 additions & 22 deletions

File tree

.github/workflows/unittest.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
runs-on: ubuntu-latest
1717
strategy:
1818
matrix:
19-
python: ['3.7', '3.8', '3.9', '3.10', "3.11", "3.12"]
19+
python: ['3.7', '3.8', '3.9', '3.10', "3.11", "3.12", "3.13"]
2020
steps:
2121
- name: Checkout
2222
uses: actions/checkout@v4
@@ -50,7 +50,7 @@ jobs:
5050
runs-on: ubuntu-latest
5151
strategy:
5252
matrix:
53-
python: ['3.12']
53+
python: ['3.13']
5454
steps:
5555
- name: Checkout
5656
uses: actions/checkout@v4

ci/run_single_test.sh

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
# This script requires the following environment variables to be set:
1818
# `TEST_TYPE` should be one of ["lint", "lint_setup_py", "docs", "docfx", "prerelease"]
19-
# `PY_VERSION` should be one of ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12"]
19+
# `PY_VERSION` should be one of ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12", "3.13"]
2020

2121
# This script is called by the `ci/run_conditional_tests.sh` script.
2222
# A specific `nox` session will be run, depending on the value of
@@ -69,7 +69,7 @@ case ${TEST_TYPE} in
6969
rm -rf docs/_build
7070
;;
7171
prerelease)
72-
nox -s prerelease_deps-3.12
72+
nox -s prerelease_deps-3.13
7373
retval=$?
7474
;;
7575
unit)
@@ -98,6 +98,10 @@ case ${TEST_TYPE} in
9898
nox -s unit-3.12
9999
retval=$?
100100
;;
101+
"3.13")
102+
nox -s unit-3.13
103+
retval=$?
104+
;;
101105
*)
102106
;;
103107
esac

packages/google-shopping-css/.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-shopping-css/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-shopping-css/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-shopping-css/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-shopping-css/google/shopping/css/__init__.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,9 +61,12 @@
6161
Attributes,
6262
Certification,
6363
CssProductStatus,
64+
HeadlineOfferInstallment,
65+
HeadlineOfferSubscriptionCost,
6466
ProductDetail,
6567
ProductDimension,
6668
ProductWeight,
69+
SubscriptionPeriod,
6770
)
6871
from google.shopping.css_v1.types.css_product_inputs import (
6972
CssProductInput,
@@ -100,9 +103,12 @@
100103
"Attributes",
101104
"Certification",
102105
"CssProductStatus",
106+
"HeadlineOfferInstallment",
107+
"HeadlineOfferSubscriptionCost",
103108
"ProductDetail",
104109
"ProductDimension",
105110
"ProductWeight",
111+
"SubscriptionPeriod",
106112
"CssProductInput",
107113
"DeleteCssProductInputRequest",
108114
"InsertCssProductInputRequest",

packages/google-shopping-css/google/shopping/css_v1/__init__.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,12 @@
5050
Attributes,
5151
Certification,
5252
CssProductStatus,
53+
HeadlineOfferInstallment,
54+
HeadlineOfferSubscriptionCost,
5355
ProductDetail,
5456
ProductDimension,
5557
ProductWeight,
58+
SubscriptionPeriod,
5659
)
5760
from .types.css_product_inputs import (
5861
CssProductInput,
@@ -87,6 +90,8 @@
8790
"DeleteCssProductInputRequest",
8891
"GetAccountRequest",
8992
"GetCssProductRequest",
93+
"HeadlineOfferInstallment",
94+
"HeadlineOfferSubscriptionCost",
9095
"InsertCssProductInputRequest",
9196
"ListAccountLabelsRequest",
9297
"ListAccountLabelsResponse",
@@ -97,6 +102,7 @@
97102
"ProductDetail",
98103
"ProductDimension",
99104
"ProductWeight",
105+
"SubscriptionPeriod",
100106
"UpdateAccountLabelRequest",
101107
"UpdateAccountLabelsRequest",
102108
)

packages/google-shopping-css/google/shopping/css_v1/services/account_labels_service/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-shopping-css/google/shopping/css_v1/services/accounts_service/transports/rest.py

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

4747

0 commit comments

Comments
 (0)