Skip to content

Commit c6e5448

Browse files
committed
Update to common-proto api v0.8.0
Still keeps the v1 types. Signed-off-by: Mathias L. Baumann <[email protected]>
1 parent 0340dc7 commit c6e5448

File tree

2 files changed

+17
-9
lines changed

2 files changed

+17
-9
lines changed

pyproject.toml

Lines changed: 16 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ requires = [
1010
# sure the code is generated using the minimum supported versions, as older
1111
# versions can't work with code that was generated with newer versions.
1212
# https://protobuf.dev/support/cross-version-runtime-guarantee/#backwards
13-
"protobuf == 5.29.5",
14-
"grpcio-tools == 1.70.0",
15-
"grpcio == 1.70.0",
13+
"protobuf == 6.31.1",
14+
"grpcio-tools == 1.72.1",
15+
"grpcio == 1.72.1",
1616
]
1717
build-backend = "setuptools.build_meta"
1818

@@ -43,16 +43,16 @@ classifiers = [
4343
]
4444
requires-python = ">= 3.11, < 4"
4545
dependencies = [
46-
"frequenz-api-common >= 0.5.4, < 0.7",
47-
"googleapis-common-protos >= 1.65.0, < 2",
46+
"frequenz-api-common >= 0.8.0, < 0.9",
47+
"googleapis-common-protos >= 1.70.0, < 2",
4848
# We can't widen beyond the current value unless we bump the minimum
4949
# requirements too because of protobuf cross-version runtime guarantees:
5050
# https://protobuf.dev/support/cross-version-runtime-guarantee/#major
51-
"protobuf >= 5.29.3, < 7", # Do not widen beyond 7!
51+
"protobuf >= 6.31.1, < 8", # Do not widen beyond 8!
5252
# We couldn't find any document with a spec about the cross-version runtime
5353
# guarantee for grpcio, so unless we find one in the future, we'll assume
5454
# major version jumps are not compatible
55-
"grpcio >= 1.70.0, < 2", # Do not widen beyond 2!
55+
"grpcio >= 1.72.1, < 2", # Do not widen beyond 2!
5656
]
5757
dynamic = ["version"]
5858

@@ -166,7 +166,15 @@ disable = [
166166
]
167167

168168
[tool.pytest.ini_options]
169-
addopts = "-W=all -Werror -Wdefault::DeprecationWarning -Wdefault::PendingDeprecationWarning -vv"
169+
addopts = "-vv"
170+
filterwarnings = [
171+
"error",
172+
"once::DeprecationWarning",
173+
"once::PendingDeprecationWarning",
174+
# We use a raw string (single quote) to avoid the need to escape special
175+
# chars as this is a regex
176+
'ignore:Protobuf gencode version .*exactly one major version older.*:UserWarning',
177+
]
170178
testpaths = ["pytests"]
171179

172180
[tool.mypy]

submodules/frequenz-api-common

Submodule frequenz-api-common updated 85 files

0 commit comments

Comments
 (0)