Skip to content

Commit 234c7c5

Browse files
zhumin8parthea
andauthored
chore: update librarian to v0.21.0 (googleapis#17488)
Weekly update to librarian version and re-generate. This update includes a generator upgrade, see https://github.com/googleapis/librarian/releases/tag/v0.21.0. **Manually changes** applied changes to postprocess config files due to generation failure after upgrade. [46dfa75](googleapis@46dfa75) commands run: ``` go run github.com/googleapis/librarian/cmd/librarian@latest update version V=$(go run github.com/googleapis/librarian/cmd/librarian@latest config get version) go run github.com/googleapis/librarian/cmd/librarian@${V} tidy # Build a new Docker image go run github.com/googleapis/librarian/tool/cmd/builddockerimages@latest --language python --version=${V} # Regenerate all libraries in Docker. Around 2 minutes. docker run -u $(id -u):$(id -g) -v .:/repo -v ~/.cache:/.cache -w /repo docker.io/library/librarian-python:${V} generate -v --all ``` For the sake of easier review, separated 3 commits: - librarian version update [f60299a](googleapis@f60299a) - Manual changes to config to make fix generation error: [46dfa75](googleapis@46dfa75) - Generated code changes: [b8f2240](googleapis@b8f2240) Fixes googleapis/librarian#6450 --------- Co-authored-by: Anthonios Partheniou <partheniou@google.com>
1 parent ee74e31 commit 234c7c5

1,391 files changed

Lines changed: 4769 additions & 4264 deletions

File tree

Some content is hidden

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

.github/workflows/unittest.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ jobs:
1616
unit:
1717
runs-on: ubuntu-22.04
1818
strategy:
19+
fail-fast: true
1920
matrix:
2021
python: ['3.9', '3.10', "3.11", "3.12", "3.13", "3.14"]
2122
steps:

.librarian/generator-input/client-post-processing/add-dependency-google-cloud-common.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,14 @@ replacements:
1919
]
2020
before: |
2121
dependencies = \[
22-
"google-api-core\[grpc\] >= 2.17.1, <3.0.0",
22+
"google-api-core\[grpc\] >= 2.24.2, <3.0.0",
2323
# Exclude incompatible versions of `google-auth`
2424
# See https://github.com/googleapis/google-cloud-python/issues/12364
2525
"google-auth >= 2.14.1, <3.0.0,!=2.24.0,!=2.25.0",
2626
"grpcio >= 1.59.0, < 2.0.0",
2727
after: |
2828
dependencies = [
29-
"google-api-core[grpc] >= 2.17.1, <3.0.0",
29+
"google-api-core[grpc] >= 2.24.2, <3.0.0",
3030
# Exclude incompatible versions of `google-auth`
3131
# See https://github.com/googleapis/google-cloud-python/issues/12364
3232
"google-auth >= 2.14.1, <3.0.0,!=2.24.0,!=2.25.0",

.librarian/generator-input/client-post-processing/add-missing-dependencies-to-setup-py-constraints.yaml

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,14 @@ replacements:
1919
]
2020
before: |
2121
dependencies = \[
22-
"google-api-core\[grpc\] >= 2.17.1, <3.0.0",
22+
"google-api-core\[grpc\] >= 2.24.2, <3.0.0",
2323
# Exclude incompatible versions of `google-auth`
2424
# See https://github.com/googleapis/google-cloud-python/issues/12364
2525
"google-auth >= 2.14.1, <3.0.0,!=2.24.0,!=2.25.0",
2626
"grpcio >= 1.59.0, < 2.0.0",
2727
after: |
2828
dependencies = [
29-
"google-api-core[grpc] >= 2.17.1, <3.0.0",
29+
"google-api-core[grpc] >= 2.24.2, <3.0.0",
3030
# Exclude incompatible versions of `google-auth`
3131
# See https://github.com/googleapis/google-cloud-python/issues/12364
3232
"google-auth >= 2.14.1, <3.0.0,!=2.24.0,!=2.25.0",
@@ -38,14 +38,14 @@ replacements:
3838
]
3939
before: |
4040
dependencies = \[
41-
"google-api-core\[grpc\] >= 2.17.1, <3.0.0",
41+
"google-api-core\[grpc\] >= 2.24.2, <3.0.0",
4242
# Exclude incompatible versions of `google-auth`
4343
# See https://github.com/googleapis/google-cloud-python/issues/12364
4444
"google-auth >= 2.14.1, <3.0.0,!=2.24.0,!=2.25.0",
4545
"grpcio >= 1.59.0, < 2.0.0",
4646
after: |
4747
dependencies = [
48-
"google-api-core[grpc] >= 2.17.1, <3.0.0",
48+
"google-api-core[grpc] >= 2.24.2, <3.0.0",
4949
# Exclude incompatible versions of `google-auth`
5050
# See https://github.com/googleapis/google-cloud-python/issues/12364
5151
"google-auth >= 2.14.1, <3.0.0,!=2.24.0,!=2.25.0",
@@ -57,14 +57,14 @@ replacements:
5757
]
5858
before: |
5959
dependencies = \[
60-
"google-api-core\[grpc\] >= 2.17.1, <3.0.0",
60+
"google-api-core\[grpc\] >= 2.24.2, <3.0.0",
6161
# Exclude incompatible versions of `google-auth`
6262
# See https://github.com/googleapis/google-cloud-python/issues/12364
6363
"google-auth >= 2.14.1, <3.0.0,!=2.24.0,!=2.25.0",
6464
"grpcio >= 1.59.0, < 2.0.0",
6565
after: |
6666
dependencies = [
67-
"google-api-core[grpc] >= 2.17.1, <3.0.0",
67+
"google-api-core[grpc] >= 2.24.2, <3.0.0",
6868
# Exclude incompatible versions of `google-auth`
6969
# See https://github.com/googleapis/google-cloud-python/issues/12364
7070
"google-auth >= 2.14.1, <3.0.0,!=2.24.0,!=2.25.0",
@@ -76,14 +76,14 @@ replacements:
7676
]
7777
before: |
7878
dependencies = \[
79-
"google-api-core\[grpc\] >= 2.17.1, <3.0.0",
79+
"google-api-core\[grpc\] >= 2.24.2, <3.0.0",
8080
# Exclude incompatible versions of `google-auth`
8181
# See https://github.com/googleapis/google-cloud-python/issues/12364
8282
"google-auth >= 2.14.1, <3.0.0,!=2.24.0,!=2.25.0",
8383
"grpcio >= 1.59.0, < 2.0.0",
8484
after: |
8585
dependencies = [
86-
"google-api-core[grpc] >= 2.17.1, <3.0.0",
86+
"google-api-core[grpc] >= 2.24.2, <3.0.0",
8787
# Exclude incompatible versions of `google-auth`
8888
# See https://github.com/googleapis/google-cloud-python/issues/12364
8989
"google-auth >= 2.14.1, <3.0.0,!=2.24.0,!=2.25.0",
@@ -95,33 +95,33 @@ replacements:
9595
]
9696
before: |
9797
dependencies = \[
98-
"google-api-core\[grpc\] >= 2.17.1, <3.0.0",
98+
"google-api-core\[grpc\] >= 2.24.2, <3.0.0",
9999
# Exclude incompatible versions of `google-auth`
100100
# See https://github.com/googleapis/google-cloud-python/issues/12364
101101
"google-auth >= 2.14.1, <3.0.0,!=2.24.0,!=2.25.0",
102102
"grpcio >= 1.59.0, < 2.0.0",
103103
after: |
104104
dependencies = [
105-
"google-api-core[grpc] >= 2.17.1, <3.0.0",
105+
"google-api-core[grpc] >= 2.24.2, <3.0.0",
106106
# Exclude incompatible versions of `google-auth`
107107
# See https://github.com/googleapis/google-cloud-python/issues/12364
108108
"google-auth >= 2.14.1, <3.0.0,!=2.24.0,!=2.25.0",
109-
"google-cloud-org-policy >= 1.11.1, <2.0.0",
109+
"google-cloud-org-policy >= 1.13.1, <2.0.0",
110110
"grpcio >= 1.59.0, < 2.0.0",
111111
count: 1
112112
- paths: [
113113
packages/google-shopping-merchant-notifications/setup.py
114114
]
115115
before: |
116116
dependencies = \[
117-
"google-api-core\[grpc\] >= 2.17.1, <3.0.0",
117+
"google-api-core\[grpc\] >= 2.24.2, <3.0.0",
118118
# Exclude incompatible versions of `google-auth`
119119
# See https://github.com/googleapis/google-cloud-python/issues/12364
120120
"google-auth >= 2.14.1, <3.0.0,!=2.24.0,!=2.25.0",
121121
"grpcio >= 1.59.0, < 2.0.0",
122122
after: |
123123
dependencies = [
124-
"google-api-core[grpc] >= 2.17.1, <3.0.0",
124+
"google-api-core[grpc] >= 2.24.2, <3.0.0",
125125
# Exclude incompatible versions of `google-auth`
126126
# See https://github.com/googleapis/google-cloud-python/issues/12364
127127
"google-auth >= 2.14.1, <3.0.0,!=2.24.0,!=2.25.0",

.librarian/generator-input/client-post-processing/asset-integration.yaml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,29 +19,29 @@ replacements:
1919
]
2020
before: |
2121
dependencies = \[
22-
"google-api-core\[grpc\] >= 2.17.1, <3.0.0",
22+
"google-api-core\[grpc\] >= 2.24.2, <3.0.0",
2323
# Exclude incompatible versions of `google-auth`
2424
# See https://github.com/googleapis/google-cloud-python/issues/12364
2525
"google-auth >= 2.14.1, <3.0.0,!=2.24.0,!=2.25.0",
2626
"grpcio >= 1.59.0, < 2.0.0",
2727
after: |
2828
dependencies = [
29-
"google-api-core[grpc] >= 2.17.1, <3.0.0",
29+
"google-api-core[grpc] >= 2.24.2, <3.0.0",
3030
# Exclude incompatible versions of `google-auth`
3131
# See https://github.com/googleapis/google-cloud-python/issues/12364
3232
"google-auth >= 2.14.1, <3.0.0,!=2.24.0,!=2.25.0",
33-
"google-cloud-org-policy >= 1.11.1, <2.0.0",
33+
"google-cloud-org-policy >= 1.13.1, <2.0.0",
3434
"grpcio >= 1.59.0, < 2.0.0",
3535
3636
count: 1
3737
- paths: [
3838
packages/google-cloud-asset/testing/constraints-3.10.txt
3939
]
4040
before: |
41-
google-api-core==2.17.1
41+
google-api-core==2.24.2
4242
google-auth==2.14.1
4343
after: |
44-
google-api-core==2.17.1
45-
google-cloud-org-policy==1.11.1
44+
google-api-core==2.24.2
45+
google-cloud-org-policy==1.13.1
4646
google-auth==2.14.1
4747
count: 1

.librarian/generator-input/client-post-processing/containeranalysis-grafeas-integration.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,14 @@ replacements:
1919
]
2020
before: |
2121
dependencies = \[
22-
"google-api-core\[grpc\] >= 2.17.1, <3.0.0",
22+
"google-api-core\[grpc\] >= 2.24.2, <3.0.0",
2323
# Exclude incompatible versions of `google-auth`
2424
# See https://github.com/googleapis/google-cloud-python/issues/12364
2525
"google-auth >= 2.14.1, <3.0.0,!=2.24.0,!=2.25.0",
2626
"grpcio >= 1.59.0, < 2.0.0",
2727
after: |
2828
dependencies = [
29-
"google-api-core[grpc] >= 2.17.1, <3.0.0",
29+
"google-api-core[grpc] >= 2.24.2, <3.0.0",
3030
# Exclude incompatible versions of `google-auth`
3131
# See https://github.com/googleapis/google-cloud-python/issues/12364
3232
"google-auth >= 2.14.1, <3.0.0,!=2.24.0,!=2.25.0",

.librarian/generator-input/client-post-processing/integrate-isolated-handwritten-code.yaml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -60,14 +60,14 @@ replacements:
6060
]
6161
before: |
6262
dependencies = \[
63-
"google-api-core\[grpc\] >= 2.17.1, <3.0.0",
63+
"google-api-core\[grpc\] >= 2.24.2, <3.0.0",
6464
# Exclude incompatible versions of `google-auth`
6565
# See https://github.com/googleapis/google-cloud-python/issues/12364
6666
"google-auth >= 2.14.1, <3.0.0,!=2.24.0,!=2.25.0",
6767
"grpcio >= 1.59.0, < 2.0.0",
6868
after: |
6969
dependencies = [
70-
"google-api-core[grpc] >= 2.17.1, <3.0.0",
70+
"google-api-core[grpc] >= 2.24.2, <3.0.0",
7171
# Exclude incompatible versions of `google-auth`
7272
# See https://github.com/googleapis/google-cloud-python/issues/12364
7373
"google-auth >= 2.14.1, <3.0.0,!=2.24.0,!=2.25.0",
@@ -210,10 +210,10 @@ replacements:
210210
packages/google-cloud-automl/testing/constraints-3.10.txt,
211211
]
212212
before: |
213-
google-api-core==2.17.1
213+
google-api-core==2.24.2
214214
google-auth==2.14.1
215215
after: |
216-
google-api-core==2.17.1
216+
google-api-core==2.24.2
217217
google-cloud-storage==2.14.0
218218
libcst==0.2.5
219219
pandas==1.3.4
@@ -331,7 +331,7 @@ replacements:
331331
"grpcio >= 1.59.0, < 2.0.0",
332332
after: |
333333
"google-auth >= 2.14.1, <3.0.0,!=2.24.0,!=2.25.0",
334-
"google-cloud-logging>=3.9.0, <4.0.0",
334+
"google-cloud-logging>=3.12.0, <4.0.0",
335335
"grpcio >= 1.59.0, < 2.0.0",
336336
count: 1
337337
- paths: [
@@ -424,10 +424,10 @@ replacements:
424424
"packages/google-cloud-monitoring/testing/constraints-3.10.txt",
425425
]
426426
before: |
427-
google-api-core==2.17.1
427+
google-api-core==2.24.2
428428
google-auth==2.14.1
429429
after: |
430-
google-api-core==2.17.1
430+
google-api-core==2.24.2
431431
pandas==1.3.4
432432
numpy==1.21.3
433433
google-auth==2.14.1
@@ -440,7 +440,7 @@ replacements:
440440
grpcio==1.59.0
441441
after: |
442442
google-auth==2.14.1
443-
google-cloud-logging==3.9.0
443+
google-cloud-logging==3.12.0
444444
grpcio==1.59.0
445445
count: 1
446446
- paths: [

.librarian/generator-input/client-post-processing/logging-integration.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,9 @@ replacements:
4242
after: |
4343
"google-auth >= 2.14.1, <3.0.0,!=2.24.0,!=2.25.0",
4444
"google-cloud-appengine-logging>=0.1.3, <2.0.0",
45-
"google-cloud-audit-log >= 0.3.1, < 1.0.0",
45+
"google-cloud-audit-log >= 0.3.2, < 1.0.0",
4646
"google-cloud-core >= 2.0.0, <3.0.0",
47-
"grpc-google-iam-v1 >=0.12.4, <1.0.0",
47+
"grpc-google-iam-v1 >=0.14.2, <1.0.0",
4848
"opentelemetry-api >= 1.16.0",
4949
"grpcio >= 1.59.0, < 2.0.0",
5050
count: 1
@@ -57,9 +57,9 @@ replacements:
5757
after: |
5858
google-auth==2.14.1
5959
google-cloud-appengine-logging==0.1.3
60-
google-cloud-audit-log==0.3.1
60+
google-cloud-audit-log==0.3.2
6161
google-cloud-core==2.0.0
62-
grpc-google-iam-v1==0.12.4
62+
grpc-google-iam-v1==0.14.2
6363
opentelemetry-api==1.16.0
6464
grpcio==1.59.0
6565
count: 1

.librarian/generator-input/client-post-processing/pubsub-integration.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -506,9 +506,9 @@ replacements:
506506

507507
- paths:
508508
- "packages/google-cloud-pubsub/testing/constraints-3.10.txt"
509-
before: 'grpc-google-iam-v1==0\.14\.0\n(?!grpcio-status)'
509+
before: 'grpc-google-iam-v1==0\.14\.2\n(?!grpcio-status)'
510510
after: |-
511-
grpc-google-iam-v1==0.14.0
511+
grpc-google-iam-v1==0.14.2
512512
grpcio-status==1.51.3
513513
opentelemetry-api==1.27.0
514514
opentelemetry-sdk==1.27.0

.librarian/generator-input/client-post-processing/storage-integration.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -640,12 +640,12 @@ replacements:
640640
packages/google-cloud-storage/testing/constraints-3.10.txt
641641
]
642642
before: |
643-
google-api-core==2.17.1
643+
google-api-core==2.24.2
644644
google-auth==2.14.1
645645
grpcio==1.59.0
646-
proto-plus==1.22.3
647-
protobuf==4.25.8
648-
grpc-google-iam-v1==0.14.0
646+
proto-plus==1.26.1
647+
protobuf==6.33.5
648+
grpc-google-iam-v1==0.14.2
649649
after: |
650650
google-auth==2.26.1
651651
# cryptography is a direct dependency of google-auth

librarian.yaml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414
language: python
15-
version: v0.19.0
15+
version: v0.21.0
1616
repo: googleapis/google-cloud-python
1717
sources:
1818
googleapis:
@@ -636,6 +636,7 @@ libraries:
636636
apis:
637637
- path: google/bigtable/v2
638638
- path: google/bigtable/admin/v2
639+
skip_generate: true
639640
skip_release: true
640641
python:
641642
library_type: GAPIC_COMBO
@@ -763,6 +764,8 @@ libraries:
763764
version: 1.48.0
764765
apis:
765766
- path: google/cloud/compute/v1
767+
skip_generate: true
768+
skip_release: true
766769
python:
767770
metadata_name_override: compute
768771
default_version: v1
@@ -1934,6 +1937,8 @@ libraries:
19341937
- docs/spanner_v1/table.rst
19351938
- docs/spanner_v1/transaction.rst
19361939
- tests/unit/gapic/conftest.py
1940+
skip_generate: true
1941+
skip_release: true
19371942
python:
19381943
library_type: GAPIC_COMBO
19391944
opt_args_by_api:

0 commit comments

Comments
 (0)