Skip to content

Commit ab0db0d

Browse files
authored
Merge branch 'main' into renovate/pypi-urllib3-vulnerability
2 parents 5a047c0 + 778cf17 commit ab0db0d

File tree

14 files changed

+46
-26
lines changed

14 files changed

+46
-26
lines changed

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
11
# Changelog
22

33

4+
## [1.26.1](https://github.com/googleapis/gapic-generator-python/compare/v1.26.0...v1.26.1) (2025-08-28)
5+
6+
7+
### Bug Fixes
8+
9+
* Temporarily disable `test_<service>_api_version_header_async` which is not marked as async ([9382ac3](https://github.com/googleapis/gapic-generator-python/commit/9382ac3546f335116665e10c4132369bc7637a67))
10+
411
## [1.26.0](https://github.com/googleapis/gapic-generator-python/compare/v1.25.0...v1.26.0) (2025-05-28)
512

613

gapic/templates/_pypi_packages.j2

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,6 @@ Note: Set the minimum version for google-cloud-documentai to 2.0.0 which has sup
1616
("google", "cloud", "osconfig", "v1"): {"package_name": "google-cloud-os-config", "lower_bound": "1.0.0", "upper_bound": "2.0.0"},
1717
("google", "iam", "v1"): {"package_name": "grpc-google-iam-v1", "lower_bound": "0.14.0", "upper_bound": "1.0.0"},
1818
("google", "iam", "v2"): {"package_name": "google-cloud-iam", "lower_bound": "2.12.2", "upper_bound": "3.0.0"},
19-
("google", "shopping", "type"): {"package_name": "google-shopping-type", "lower_bound": "0.1.6", "upper_bound": "1.0.0"}
19+
("google", "shopping", "type"): {"package_name": "google-shopping-type", "lower_bound": "1.0.0", "upper_bound": "2.0.0"}
2020
}
2121
%}

gapic/templates/noxfile.py.j2

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,8 @@ nox.options.error_on_missing_interpreters = True
8181
def mypy(session):
8282
"""Run the type checker."""
8383
session.install(
84-
"mypy",
84+
# TODO(https://github.com/googleapis/gapic-generator-python/issues/2410): Use the latest version of mypy
85+
"mypy<1.16.0",
8586
"types-requests",
8687
"types-protobuf",
8788
)

gapic/templates/tests/unit/gapic/%name_%version/%sub/test_%service.py.j2

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,11 @@ def test__get_api_endpoint():
224224

225225
{% if service.version %}
226226
{% for method in service.methods.values() %}{% with method_name = method.name|snake_case %}
227-
{% for mode in ["", "async"] %}
227+
{# TODO(https://github.com/googleapis/gapic-generator-python/issues/2428): Restore async test `
228+
# once it properly runs as an async test with `@pytest.mark.asyncio`
229+
# Add "async" to the list below `for mode in ["", "async"]`
230+
#}
231+
{% for mode in [""] %}
228232
{% if mode == "async" %}
229233
async def test_{{ method_name }}_api_version_header_async(transport_name="grpc"):
230234
client = {{ service.async_client_name }}(credentials=async_anonymous_credentials(), transport=transport_name)

noxfile.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -392,9 +392,9 @@ def showcase(
392392
"""Run the Showcase test suite."""
393393

394394
with showcase_library(session, templates=templates, other_opts=other_opts):
395-
# Exclude pytest-asyncio==1.0.0 while we investigate the recent failure described in
395+
# Use pytest-asyncio<1.0.0 while we investigate the recent failure described in
396396
# https://github.com/googleapis/gapic-generator-python/issues/2399
397-
session.install("pytest", "pytest-asyncio!=1.0.0")
397+
session.install("pytest", "pytest-asyncio<1.0.0")
398398
test_directory = Path("tests", "system")
399399
ignore_file = env.get("IGNORE_FILE")
400400
pytest_command = [
@@ -424,9 +424,9 @@ def showcase_w_rest_async(
424424
with showcase_library(
425425
session, templates=templates, other_opts=other_opts, rest_async_io_enabled=True
426426
):
427-
# Exclude pytest-asyncio==1.0.0 while we investigate the recent failure described in
427+
# Use pytest-asyncio<1.0.0 while we investigate the recent failure described in
428428
# https://github.com/googleapis/gapic-generator-python/issues/2399
429-
session.install("pytest", "pytest-asyncio!=1.0.0")
429+
session.install("pytest", "pytest-asyncio<1.0.0")
430430
test_directory = Path("tests", "system")
431431
ignore_file = env.get("IGNORE_FILE")
432432
pytest_command = [
@@ -589,7 +589,8 @@ def showcase_mypy(
589589
"""Perform typecheck analysis on the generated Showcase library."""
590590

591591
session.install(
592-
"mypy",
592+
# TODO(https://github.com/googleapis/gapic-generator-python/issues/2410): Use the latest version of mypy
593+
"mypy<1.16.0",
593594
"types-setuptools",
594595
"types-protobuf",
595596
"types-requests",

requirements.txt

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -740,16 +740,16 @@ proto-plus==1.26.1 \
740740
# via
741741
# -r requirements.in
742742
# google-api-core
743-
protobuf==6.31.0 \
744-
--hash=sha256:00a873c06efdfb854145d9ded730b09cf57d206075c38132674093370e2edabb \
745-
--hash=sha256:10bd62802dfa0588649740a59354090eaf54b8322f772fbdcca19bc78d27f0d6 \
746-
--hash=sha256:2c812f0f96ceb6b514448cefeb1df54ec06dde456783f5099c0e2f8a0f2caa89 \
747-
--hash=sha256:314fab1a6a316469dc2dd46f993cbbe95c861ea6807da910becfe7475bc26ffe \
748-
--hash=sha256:3e987c99fd634be8347246a02123250f394ba20573c953de133dc8b2c107dd71 \
749-
--hash=sha256:5353e38844168a327acd2b2aa440044411cd8d1b6774d5701008bd1dba067c79 \
750-
--hash=sha256:67ce50195e4e584275623b8e6bc6d3d3dfd93924bf6116b86b3b8975ab9e4571 \
751-
--hash=sha256:6ac2e82556e822c17a8d23aa1190bbc1d06efb9c261981da95c71c9da09e9e23 \
752-
--hash=sha256:96d8da25c83b11db5fe9e0376351ce25e7205e13224d939e097b6f82a72af824
743+
protobuf==6.31.1 \
744+
--hash=sha256:0414e3aa5a5f3ff423828e1e6a6e907d6c65c1d5b7e6e975793d5590bdeecc16 \
745+
--hash=sha256:426f59d2964864a1a366254fa703b8632dcec0790d8862d30034d8245e1cd447 \
746+
--hash=sha256:4ee898bf66f7a8b0bd21bce523814e6fbd8c6add948045ce958b73af7e8878c6 \
747+
--hash=sha256:6f1227473dc43d44ed644425268eb7c2e488ae245d51c6866d19fe158e207402 \
748+
--hash=sha256:720a6c7e6b77288b85063569baae8536671b39f15cc22037ec7045658d80489e \
749+
--hash=sha256:7fa17d5a29c2e04b7d90e5e32388b8bfd0e7107cd8e616feef7ed3fa6bdab5c9 \
750+
--hash=sha256:8764cf4587791e7564051b35524b72844f845ad0bb011704c3736cce762d8fe9 \
751+
--hash=sha256:a40fc12b84c154884d7d4c4ebd675d5b3b5283e155f324049ae396b95ddebc39 \
752+
--hash=sha256:d8cac4c982f0b957a4dc73a80e2ea24fab08e679c0de9deb835f4a12d69aca9a
753753
# via
754754
# -r requirements.in
755755
# google-api-core

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
name = "gapic-generator"
2323
description = "Google API Client Generator for Python"
2424
url = "https://github.com/googleapis/gapic-generator-python"
25-
version = "1.26.0"
25+
version = "1.26.1"
2626
release_status = "Development Status :: 5 - Production/Stable"
2727
dependencies = [
2828
# Ensure that the lower bounds of these dependencies match what we have in the

tests/integration/goldens/asset/noxfile.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,8 @@
8888
def mypy(session):
8989
"""Run the type checker."""
9090
session.install(
91-
"mypy",
91+
# TODO(https://github.com/googleapis/gapic-generator-python/issues/2410): Use the latest version of mypy
92+
"mypy<1.16.0",
9293
"types-requests",
9394
"types-protobuf",
9495
)

tests/integration/goldens/credentials/noxfile.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,8 @@
8888
def mypy(session):
8989
"""Run the type checker."""
9090
session.install(
91-
"mypy",
91+
# TODO(https://github.com/googleapis/gapic-generator-python/issues/2410): Use the latest version of mypy
92+
"mypy<1.16.0",
9293
"types-requests",
9394
"types-protobuf",
9495
)

tests/integration/goldens/eventarc/noxfile.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,8 @@
8888
def mypy(session):
8989
"""Run the type checker."""
9090
session.install(
91-
"mypy",
91+
# TODO(https://github.com/googleapis/gapic-generator-python/issues/2410): Use the latest version of mypy
92+
"mypy<1.16.0",
9293
"types-requests",
9394
"types-protobuf",
9495
)

0 commit comments

Comments
 (0)