Skip to content

Commit b5f0a64

Browse files
juergwcopybara-github
authored andcommitted
Add protobuf as requirement to python examples.
Currently, is uses an older version of protobuf. Adding it explicitly forces it to use the newest version. PiperOrigin-RevId: 730843150 Change-Id: I5d68487fb6a197bdb9ddefe4313eacc4e87be691
1 parent 72537c7 commit b5f0a64

File tree

6 files changed

+30
-23
lines changed

6 files changed

+30
-23
lines changed

examples/requirements.in

+5
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,7 @@
11
absl-py>=2.1.0
22
google-cloud-storage>=3.0.0
3+
protobuf>=5.29.3
4+
# We need to explicitly add rules for google-api-core and googleapis_common_protos
5+
# to be able to use protobuf>=5.
6+
google-api-core>=2.24.1
7+
googleapis_common_protos>=1.67.0

examples/requirements.txt

+20-16
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,7 @@ google-api-core==2.24.1 \
112112
--hash=sha256:bc78d608f5a5bf853b80bd70a795f703294de656c096c0968320830a4bc280f1 \
113113
--hash=sha256:f8b36f5456ab0dd99a1b693a40a31d1e7757beea380ad1b38faaf8941eae9d8a
114114
# via
115+
# -r examples/requirements.in
115116
# google-cloud-core
116117
# google-cloud-storage
117118
google-auth==2.38.0 \
@@ -205,10 +206,12 @@ google-resumable-media==2.7.2 \
205206
--hash=sha256:3ce7551e9fe6d99e9a126101d2536612bb73486721951e9562fee0f90c6ababa \
206207
--hash=sha256:5280aed4629f2b60b847b0d42f9857fd4935c11af266744df33d8074cae92fe0
207208
# via google-cloud-storage
208-
googleapis-common-protos==1.61.0 \
209-
--hash=sha256:22f1915393bb3245343f6efe87f6fe868532efc12aa26b391b15132e1279f1c0 \
210-
--hash=sha256:8a64866a97f6304a7179873a465d6eee97b7a24ec6cfd78e0f575e96b821240b
211-
# via google-api-core
209+
googleapis-common-protos==1.68.0 \
210+
--hash=sha256:95d38161f4f9af0d9423eed8fb7b64ffd2568c3464eb542ff02c5bfa1953ab3c \
211+
--hash=sha256:aaf179b2f81df26dfadac95def3b16a95064c76a5f45f07e4c68a21bb371c4ac
212+
# via
213+
# -r examples/requirements.in
214+
# google-api-core
212215
idna==3.7 \
213216
--hash=sha256:028ff3aadf0609c1fd278d8ea3089299412a7a8b9bd005dd08b9f8285bcb5cfc \
214217
--hash=sha256:82fee1fc78add43492d3a1898bfa6d8a904cc97d8427f683ed8e798d07761aa0
@@ -217,19 +220,20 @@ proto-plus==1.26.0 \
217220
--hash=sha256:6e93d5f5ca267b54300880fff156b6a3386b3fa3f43b1da62e680fc0c586ef22 \
218221
--hash=sha256:bf2dfaa3da281fc3187d12d224c707cb57214fb2c22ba854eb0c105a3fb2d4d7
219222
# via google-api-core
220-
protobuf==4.25.0 \
221-
--hash=sha256:1a3ba712877e6d37013cdc3476040ea1e313a6c2e1580836a94f76b3c176d575 \
222-
--hash=sha256:1a53d6f64b00eecf53b65ff4a8c23dc95df1fa1e97bb06b8122e5a64f49fc90a \
223-
--hash=sha256:32ac2100b0e23412413d948c03060184d34a7c50b3e5d7524ee96ac2b10acf51 \
224-
--hash=sha256:5c1203ac9f50e4853b0a0bfffd32c67118ef552a33942982eeab543f5c634395 \
225-
--hash=sha256:63714e79b761a37048c9701a37438aa29945cd2417a97076048232c1df07b701 \
226-
--hash=sha256:683dc44c61f2620b32ce4927de2108f3ebe8ccf2fd716e1e684e5a50da154054 \
227-
--hash=sha256:68f7caf0d4f012fd194a301420cf6aa258366144d814f358c5b32558228afa7c \
228-
--hash=sha256:b2cf8b5d381f9378afe84618288b239e75665fe58d0f3fd5db400959274296e9 \
229-
--hash=sha256:c40ff8f00aa737938c5378d461637d15c442a12275a81019cc2fef06d81c9419 \
230-
--hash=sha256:cf21faba64cd2c9a3ed92b7a67f226296b10159dbb8fbc5e854fc90657d908e4 \
231-
--hash=sha256:d94a33db8b7ddbd0af7c467475fb9fde0c705fb315a8433c0e2020942b863a1f
223+
protobuf==5.29.3 \
224+
--hash=sha256:0a18ed4a24198528f2333802eb075e59dea9d679ab7a6c5efb017a59004d849f \
225+
--hash=sha256:0eb32bfa5219fc8d4111803e9a690658aa2e6366384fd0851064b963b6d1f2a7 \
226+
--hash=sha256:3ea51771449e1035f26069c4c7fd51fba990d07bc55ba80701c78f886bf9c888 \
227+
--hash=sha256:5da0f41edaf117bde316404bad1a486cb4ededf8e4a54891296f648e8e076620 \
228+
--hash=sha256:6ce8cc3389a20693bfde6c6562e03474c40851b44975c9b2bf6df7d8c4f864da \
229+
--hash=sha256:84a57163a0ccef3f96e4b6a20516cedcf5bb3a95a657131c5c3ac62200d23252 \
230+
--hash=sha256:a4fa6f80816a9a0678429e84973f2f98cbc218cca434abe8db2ad0bffc98503a \
231+
--hash=sha256:a8434404bbf139aa9e1300dbf989667a83d42ddda9153d8ab76e0d5dcaca484e \
232+
--hash=sha256:b89c115d877892a512f79a8114564fb435943b59067615894c3b13cd3e1fa107 \
233+
--hash=sha256:c027e08a08be10b67c06bf2370b99c811c466398c357e615ca88c91c07f0910f \
234+
--hash=sha256:daaf63f70f25e8689c072cfad4334ca0ac1d1e05a92fc15c54eb9cf23c3efd84
232235
# via
236+
# -r examples/requirements.in
233237
# google-api-core
234238
# googleapis-common-protos
235239
# proto-plus

kokoro/release_requirements.txt

+2-4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#
2-
# This file is autogenerated by pip-compile with Python 3.11
2+
# This file is autogenerated by pip-compile with Python 3.12
33
# by the following command:
44
#
55
# pip-compile --generate-hashes --output-file=kokoro/release_requirements.txt kokoro/release_requirements.in
@@ -199,9 +199,7 @@ idna==3.7 \
199199
importlib-metadata==6.8.0 \
200200
--hash=sha256:3ebb78df84a805d7698245025b975d9d67053cd94c79245ba4b3eb694abe68bb \
201201
--hash=sha256:dbace7892d8c0c4ac1ad096662232f831d4e64f4c4545bd53016a3e9d4654743
202-
# via
203-
# keyring
204-
# twine
202+
# via twine
205203
jaraco-classes==3.3.0 \
206204
--hash=sha256:10afa92b6743f25c0cf5f37c6bb6e18e2c5bb84a16527ccfc0040ea377e7aaeb \
207205
--hash=sha256:c063dd08e89217cee02c8d5e5ec560f2c8ce6cdc2fcdc2e68f7b2e5547ed3621

requirements.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#
2-
# This file is autogenerated by pip-compile with Python 3.11
2+
# This file is autogenerated by pip-compile with Python 3.12
33
# by the following command:
44
#
55
# pip-compile --generate-hashes --output-file=requirements.txt setup.py

requirements_all.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#
2-
# This file is autogenerated by pip-compile with Python 3.11
2+
# This file is autogenerated by pip-compile with Python 3.12
33
# by the following command:
44
#
55
# pip-compile --all-extras --generate-hashes --output-file=requirements_all.txt setup.py

tools/distribution/requirements.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#
2-
# This file is autogenerated by pip-compile with Python 3.11
2+
# This file is autogenerated by pip-compile with Python 3.12
33
# by the following command:
44
#
55
# pip-compile --allow-unsafe --generate-hashes --output-file=tools/distribution/requirements.txt tools/distribution/requirements.in

0 commit comments

Comments
 (0)