Skip to content

Commit 14e95e9

Browse files
authored
fix: require google-api-core 1.34.1 (#1942)
1 parent 95218c2 commit 14e95e9

File tree

17 files changed

+131
-33
lines changed

17 files changed

+131
-33
lines changed

packages/gapic-generator/gapic/templates/setup.py.j2

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ else:
3030
release_status = "Development Status :: 5 - Production/Stable"
3131

3232
dependencies = [
33-
"google-api-core[grpc] >= 1.34.0, <3.0.0dev,!=2.0.*,!=2.1.*,!=2.2.*,!=2.3.*,!=2.4.*,!=2.5.*,!=2.6.*,!=2.7.*,!=2.8.*,!=2.9.*,!=2.10.*",
33+
"google-api-core[grpc] >= 1.34.1, <3.0.0dev,!=2.0.*,!=2.1.*,!=2.2.*,!=2.3.*,!=2.4.*,!=2.5.*,!=2.6.*,!=2.7.*,!=2.8.*,!=2.9.*,!=2.10.*",
3434
"google-auth >= 2.14.1, <3.0.0dev",
3535
"proto-plus >= 1.22.3, <2.0.0dev",
3636
{# Explicitly exclude protobuf versions mentioned in https://cloud.google.com/support/bulletins#GCP-2022-019 #}

packages/gapic-generator/gapic/templates/testing/constraints-3.7.txt.j2

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
# Pin the version to the lower bound.
66
# e.g., if setup.py has "google-cloud-foo >= 1.14.0, < 2.0.0dev",
77
# Then this file should have google-cloud-foo==1.14.0
8-
google-api-core==1.34.0
8+
google-api-core==1.34.1
99
google-auth==2.14.1
1010
proto-plus==1.22.3
1111
protobuf==3.19.5

packages/gapic-generator/requirements.in

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ MarkupSafe
66
protobuf
77
pypandoc
88
PyYAML
9-
setuptools
109
grpc-google-iam-v1
1110
proto-plus
1211
pytest-asyncio

packages/gapic-generator/requirements.txt

Lines changed: 22 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# This file is autogenerated by pip-compile with Python 3.9
33
# by the following command:
44
#
5-
# pip-compile --allow-unsafe --generate-hashes requirements.in
5+
# pip-compile --generate-hashes requirements.in
66
#
77
cachetools==5.3.2 \
88
--hash=sha256:086ee420196f7b2ab9ca2db2520aca326318b68fe5ba8bc4d49cca91add450f2 \
@@ -112,9 +112,9 @@ exceptiongroup==1.2.0 \
112112
--hash=sha256:4bfd3996ac73b41e9b9628b04e079f193850720ea5945fc96a08633c66912f14 \
113113
--hash=sha256:91f5c769735f051a4290d52edd0858999b57e5876e9f85937691bd4c9fa3ed68
114114
# via pytest
115-
google-api-core==2.16.2 \
116-
--hash=sha256:032d37b45d1d6bdaf68fb11ff621e2593263a239fa9246e2e94325f9c47876d2 \
117-
--hash=sha256:449ca0e3f14c179b4165b664256066c7861610f70b6ffe54bb01a04e9b466929
115+
google-api-core==2.17.1 \
116+
--hash=sha256:610c5b90092c360736baccf17bd3efbcb30dd380e7a6dc28a71059edb8bd0d8e \
117+
--hash=sha256:9df18a1f87ee0df0bc4eea2770ebc4228392d8cc4066655b320e2cfccb15db95
118118
# via -r requirements.in
119119
google-auth==2.27.0 \
120120
--hash=sha256:8e4bad367015430ff253fe49d500fdc3396c1a434db5740828c728e45bcce245 \
@@ -238,7 +238,7 @@ libcst==1.1.0 \
238238
--hash=sha256:f561c9a84eca18be92f4ad90aa9bd873111efbea995449301719a1a7805dbc5c \
239239
--hash=sha256:fe41b33aa73635b1651f64633f429f7aa21f86d2db5748659a99d9b7b1ed2a90
240240
# via -r requirements.in
241-
MarkupSafe==2.1.5 \
241+
markupsafe==2.1.5 \
242242
--hash=sha256:00e046b6dd71aa03a41079792f8473dc494d564611a8f89bbbd7cb93295ebdcf \
243243
--hash=sha256:075202fa5b72c86ad32dc7d0b56024ebdbcf2048c0ba09f1cde31bfdd57bcfff \
244244
--hash=sha256:0e397ac966fdf721b2c528cf028494e86172b4feba51d65f81ffd65c63798f3f \
@@ -350,36 +350,45 @@ pypandoc==1.12 \
350350
--hash=sha256:8f44740a9f074e121d81b489f073160421611d4ead62d1b306aeb11aab3c32df \
351351
--hash=sha256:efb4f7d68ead8bec32e22b62f02d5608a1700978b51bfc4af286fd6acfe9d218
352352
# via -r requirements.in
353-
pytest==8.0.0 \
354-
--hash=sha256:249b1b0864530ba251b7438274c4d251c58d868edaaec8762893ad4a0d71c36c \
355-
--hash=sha256:50fb9cbe836c3f20f0dfa99c565201fb75dc54c8d76373cd1bde06b06657bdb6
353+
pytest==7.4.4 \
354+
--hash=sha256:2cf0005922c6ace4a3e2ec8b4080eb0d9753fdc93107415332f50ce9e7994280 \
355+
--hash=sha256:b090cdf5ed60bf4c45261be03239c2c1c22df034fbffe691abe93cd80cea01d8
356356
# via pytest-asyncio
357-
pytest-asyncio==0.23.4 \
358-
--hash=sha256:2143d9d9375bf372a73260e4114541485e84fca350b0b6b92674ca56ff5f7ea2 \
359-
--hash=sha256:b0079dfac14b60cd1ce4691fbfb1748fe939db7d0234b5aba97197d10fbe0fef
357+
pytest-asyncio==0.23.5 \
358+
--hash=sha256:3a048872a9c4ba14c3e90cc1aa20cbc2def7d01c7c8db3777ec281ba9c057675 \
359+
--hash=sha256:4e7093259ba018d58ede7d5315131d21923a60f8a6e9ee266ce1589685c89eac
360360
# via -r requirements.in
361361
pyyaml==6.0.1 \
362+
--hash=sha256:04ac92ad1925b2cff1db0cfebffb6ffc43457495c9b3c39d3fcae417d7125dc5 \
362363
--hash=sha256:062582fca9fabdd2c8b54a3ef1c978d786e0f6b3a1510e0ac93ef59e0ddae2bc \
364+
--hash=sha256:0d3304d8c0adc42be59c5f8a4d9e3d7379e6955ad754aa9d6ab7a398b59dd1df \
363365
--hash=sha256:1635fd110e8d85d55237ab316b5b011de701ea0f29d07611174a1b42f1444741 \
364366
--hash=sha256:184c5108a2aca3c5b3d3bf9395d50893a7ab82a38004c8f61c258d4428e80206 \
365367
--hash=sha256:18aeb1bf9a78867dc38b259769503436b7c72f7a1f1f4c93ff9a17de54319b27 \
366368
--hash=sha256:1d4c7e777c441b20e32f52bd377e0c409713e8bb1386e1099c2415f26e479595 \
367369
--hash=sha256:1e2722cc9fbb45d9b87631ac70924c11d3a401b2d7f410cc0e3bbf249f2dca62 \
368370
--hash=sha256:1fe35611261b29bd1de0070f0b2f47cb6ff71fa6595c077e42bd0c419fa27b98 \
369371
--hash=sha256:28c119d996beec18c05208a8bd78cbe4007878c6dd15091efb73a30e90539696 \
372+
--hash=sha256:326c013efe8048858a6d312ddd31d56e468118ad4cdeda36c719bf5bb6192290 \
373+
--hash=sha256:40df9b996c2b73138957fe23a16a4f0ba614f4c0efce1e9406a184b6d07fa3a9 \
370374
--hash=sha256:42f8152b8dbc4fe7d96729ec2b99c7097d656dc1213a3229ca5383f973a5ed6d \
375+
--hash=sha256:49a183be227561de579b4a36efbb21b3eab9651dd81b1858589f796549873dd6 \
371376
--hash=sha256:4fb147e7a67ef577a588a0e2c17b6db51dda102c71de36f8549b6816a96e1867 \
372377
--hash=sha256:50550eb667afee136e9a77d6dc71ae76a44df8b3e51e41b77f6de2932bfe0f47 \
373378
--hash=sha256:510c9deebc5c0225e8c96813043e62b680ba2f9c50a08d3724c7f28a747d1486 \
374379
--hash=sha256:5773183b6446b2c99bb77e77595dd486303b4faab2b086e7b17bc6bef28865f6 \
375380
--hash=sha256:596106435fa6ad000c2991a98fa58eeb8656ef2325d7e158344fb33864ed87e3 \
376381
--hash=sha256:6965a7bc3cf88e5a1c3bd2e0b5c22f8d677dc88a455344035f03399034eb3007 \
377382
--hash=sha256:69b023b2b4daa7548bcfbd4aa3da05b3a74b772db9e23b982788168117739938 \
383+
--hash=sha256:6c22bec3fbe2524cde73d7ada88f6566758a8f7227bfbf93a408a9d86bcc12a0 \
378384
--hash=sha256:704219a11b772aea0d8ecd7058d0082713c3562b4e271b849ad7dc4a5c90c13c \
379385
--hash=sha256:7e07cbde391ba96ab58e532ff4803f79c4129397514e1413a7dc761ccd755735 \
380386
--hash=sha256:81e0b275a9ecc9c0c0c07b4b90ba548307583c125f54d5b6946cfee6360c733d \
387+
--hash=sha256:855fb52b0dc35af121542a76b9a84f8d1cd886ea97c84703eaa6d88e37a2ad28 \
388+
--hash=sha256:8d4e9c88387b0f5c7d5f281e55304de64cf7f9c0021a3525bd3b1c542da3b0e4 \
381389
--hash=sha256:9046c58c4395dff28dd494285c82ba00b546adfc7ef001486fbf0324bc174fba \
382390
--hash=sha256:9eb6caa9a297fc2c2fb8862bc5370d0303ddba53ba97e71f08023b6cd73d16a8 \
391+
--hash=sha256:a08c6f0fe150303c1c6b71ebcd7213c2858041a7e01975da3a99aed1e7a378ef \
383392
--hash=sha256:a0cd17c15d3bb3fa06978b4e8958dcdc6e0174ccea823003a106c7d4d7899ac5 \
384393
--hash=sha256:afd7e57eddb1a54f0f1a974bc4391af8bcce0b444685d936840f125cf046d5bd \
385394
--hash=sha256:b1275ad35a5d18c62a7220633c913e1b42d44b46ee12554e5fd39c70a243d6a3 \
@@ -392,7 +401,9 @@ pyyaml==6.0.1 \
392401
--hash=sha256:bfdf460b1736c775f2ba9f6a92bca30bc2095067b8a9d77876d1fad6cc3b4a43 \
393402
--hash=sha256:c8098ddcc2a85b61647b2590f825f3db38891662cfc2fc776415143f599bb859 \
394403
--hash=sha256:d2b04aac4d386b172d5b9692e2d2da8de7bfb6c387fa4f801fbf6fb2e6ba4673 \
404+
--hash=sha256:d483d2cdf104e7c9fa60c544d92981f12ad66a457afae824d146093b8c294c54 \
395405
--hash=sha256:d858aa552c999bc8a8d57426ed01e40bef403cd8ccdd0fc5f6f04a00414cac2a \
406+
--hash=sha256:e7d73685e87afe9f3b36c799222440d6cf362062f78be1013661b00c5c6f678b \
396407
--hash=sha256:f003ed9ad21d6a4713f0a9b5a7a0a79e08dd0f221aff4525a2be4c346ee60aab \
397408
--hash=sha256:f22ac1c3cac4dbc50079e965eba2c1058622631e526bd9afd45fedd49ba781fa \
398409
--hash=sha256:faca3bdcf85b2fc05d06ff3fbc1f83e1391b3e724afa3feba7d13eeab355484c \
@@ -428,9 +439,3 @@ urllib3==2.2.0 \
428439
--hash=sha256:051d961ad0c62a94e50ecf1af379c3aba230c66c710493493560c0c223c49f20 \
429440
--hash=sha256:ce3711610ddce217e6d113a2732fafad960a03fd0318c91faa79481e35c11224
430441
# via requests
431-
432-
# The following packages are considered to be unsafe in a requirements file:
433-
setuptools==69.0.3 \
434-
--hash=sha256:385eb4edd9c9d5c17540511303e39a147ce2fc04bc55289c322b9e5904fe2c05 \
435-
--hash=sha256:be1af57fc409f93647f2e8e4573a142ed38724b8cdd389706a867bb4efcf1e78
436-
# via -r requirements.in

packages/gapic-generator/setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
# Ensure that the lower bounds of these dependencies match what we have in the
2929
# templated setup.py.j2: https://github.com/googleapis/gapic-generator-python/blob/main/gapic/templates/setup.py.j2
3030
"click >= 6.7",
31-
"google-api-core[grpc] >= 1.34.0, <3.0.0dev,!=2.0.*,!=2.1.*,!=2.2.*,!=2.3.*,!=2.4.*,!=2.5.*,!=2.6.*,!=2.7.*,!=2.8.*,!=2.9.*,!=2.10.*",
31+
"google-api-core[grpc] >= 1.34.1, <3.0.0dev,!=2.0.*,!=2.1.*,!=2.2.*,!=2.3.*,!=2.4.*,!=2.5.*,!=2.6.*,!=2.7.*,!=2.8.*,!=2.9.*,!=2.10.*",
3232
"googleapis-common-protos >= 1.55.0",
3333
"grpcio >= 1.24.3",
3434
"jinja2 >= 2.10",
Lines changed: 81 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,81 @@
1+
// Copyright 2023 Google LLC
2+
//
3+
// Licensed under the Apache License, Version 2.0 (the "License");
4+
// you may not use this file except in compliance with the License.
5+
// You may obtain a copy of the License at
6+
//
7+
// http://www.apache.org/licenses/LICENSE-2.0
8+
//
9+
// Unless required by applicable law or agreed to in writing, software
10+
// distributed under the License is distributed on an "AS IS" BASIS,
11+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
// See the License for the specific language governing permissions and
13+
// limitations under the License.
14+
15+
syntax = "proto3";
16+
17+
package google.api;
18+
19+
import "google/protobuf/any.proto";
20+
21+
option cc_enable_arenas = true;
22+
option go_package = "google.golang.org/genproto/googleapis/api/httpbody;httpbody";
23+
option java_multiple_files = true;
24+
option java_outer_classname = "HttpBodyProto";
25+
option java_package = "com.google.api";
26+
option objc_class_prefix = "GAPI";
27+
28+
// Message that represents an arbitrary HTTP body. It should only be used for
29+
// payload formats that can't be represented as JSON, such as raw binary or
30+
// an HTML page.
31+
//
32+
//
33+
// This message can be used both in streaming and non-streaming API methods in
34+
// the request as well as the response.
35+
//
36+
// It can be used as a top-level request field, which is convenient if one
37+
// wants to extract parameters from either the URL or HTTP template into the
38+
// request fields and also want access to the raw HTTP body.
39+
//
40+
// Example:
41+
//
42+
// message GetResourceRequest {
43+
// // A unique request id.
44+
// string request_id = 1;
45+
//
46+
// // The raw HTTP body is bound to this field.
47+
// google.api.HttpBody http_body = 2;
48+
//
49+
// }
50+
//
51+
// service ResourceService {
52+
// rpc GetResource(GetResourceRequest)
53+
// returns (google.api.HttpBody);
54+
// rpc UpdateResource(google.api.HttpBody)
55+
// returns (google.protobuf.Empty);
56+
//
57+
// }
58+
//
59+
// Example with streaming methods:
60+
//
61+
// service CaldavService {
62+
// rpc GetCalendar(stream google.api.HttpBody)
63+
// returns (stream google.api.HttpBody);
64+
// rpc UpdateCalendar(stream google.api.HttpBody)
65+
// returns (stream google.api.HttpBody);
66+
//
67+
// }
68+
//
69+
// Use of this type only changes how the request and response bodies are
70+
// handled, all other features will continue to work unchanged.
71+
message HttpBody {
72+
// The HTTP Content-Type header value specifying the content type of the body.
73+
string content_type = 1;
74+
75+
// The HTTP request/response body as raw binary.
76+
bytes data = 2;
77+
78+
// Application specific response metadata. Must be set in the first response
79+
// for streaming APIs.
80+
repeated google.protobuf.Any extensions = 3;
81+
}

packages/gapic-generator/tests/fragments/test_rest_streaming.proto

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,26 @@ syntax = "proto3";
1616

1717
package google.fragment;
1818

19+
import "google/api/annotations.proto";
1920
import "google/api/client.proto";
21+
import "google/api/httpbody.proto";
2022

2123
service MyService {
2224
option (google.api.default_host) = "my.example.com";
2325

24-
rpc MyMethod(MethodRequest) returns (stream MethodResponse) {
26+
rpc MyMethodApiSpecificResponse(MethodRequest) returns (stream MethodResponse) {
27+
option (google.api.http) = {
28+
post: "/v1/{from=projects/*}"
29+
body: "*"
30+
};
31+
option (google.api.method_signature) = "from,class,import,any,license,type";
32+
}
33+
34+
rpc MyMethodCommonResponse(MethodRequest) returns (stream google.api.HttpBody) {
35+
option (google.api.http) = {
36+
post: "/v1/{from=projects/*}"
37+
body: "*"
38+
};
2539
option (google.api.method_signature) = "from,class,import,any,license,type";
2640
}
2741
}
@@ -39,5 +53,4 @@ message MethodRequest {
3953

4054
message MethodResponse {
4155
string result = 1;
42-
string next_page_token = 2;
4356
}

packages/gapic-generator/tests/integration/goldens/asset/setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
release_status = "Development Status :: 5 - Production/Stable"
4040

4141
dependencies = [
42-
"google-api-core[grpc] >= 1.34.0, <3.0.0dev,!=2.0.*,!=2.1.*,!=2.2.*,!=2.3.*,!=2.4.*,!=2.5.*,!=2.6.*,!=2.7.*,!=2.8.*,!=2.9.*,!=2.10.*",
42+
"google-api-core[grpc] >= 1.34.1, <3.0.0dev,!=2.0.*,!=2.1.*,!=2.2.*,!=2.3.*,!=2.4.*,!=2.5.*,!=2.6.*,!=2.7.*,!=2.8.*,!=2.9.*,!=2.10.*",
4343
"google-auth >= 2.14.1, <3.0.0dev",
4444
"proto-plus >= 1.22.3, <2.0.0dev",
4545
"protobuf>=3.19.5,<5.0.0dev,!=3.20.0,!=3.20.1,!=4.21.0,!=4.21.1,!=4.21.2,!=4.21.3,!=4.21.4,!=4.21.5",

packages/gapic-generator/tests/integration/goldens/asset/testing/constraints-3.7.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
# Pin the version to the lower bound.
55
# e.g., if setup.py has "google-cloud-foo >= 1.14.0, < 2.0.0dev",
66
# Then this file should have google-cloud-foo==1.14.0
7-
google-api-core==1.34.0
7+
google-api-core==1.34.1
88
google-auth==2.14.1
99
proto-plus==1.22.3
1010
protobuf==3.19.5

packages/gapic-generator/tests/integration/goldens/credentials/setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
release_status = "Development Status :: 5 - Production/Stable"
4040

4141
dependencies = [
42-
"google-api-core[grpc] >= 1.34.0, <3.0.0dev,!=2.0.*,!=2.1.*,!=2.2.*,!=2.3.*,!=2.4.*,!=2.5.*,!=2.6.*,!=2.7.*,!=2.8.*,!=2.9.*,!=2.10.*",
42+
"google-api-core[grpc] >= 1.34.1, <3.0.0dev,!=2.0.*,!=2.1.*,!=2.2.*,!=2.3.*,!=2.4.*,!=2.5.*,!=2.6.*,!=2.7.*,!=2.8.*,!=2.9.*,!=2.10.*",
4343
"google-auth >= 2.14.1, <3.0.0dev",
4444
"proto-plus >= 1.22.3, <2.0.0dev",
4545
"protobuf>=3.19.5,<5.0.0dev,!=3.20.0,!=3.20.1,!=4.21.0,!=4.21.1,!=4.21.2,!=4.21.3,!=4.21.4,!=4.21.5",

0 commit comments

Comments
 (0)