Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion RELEASE_NOTES.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

## Upgrading

<!-- Here goes notes on how to upgrade from previous versions, including deprecations and what they should be replaced with -->
- The minimum allowed version of `protobuf` and `grpcio` has been updated to 6.31.1 and 1.72.1 respectively, you might also need to bump your dependencies accordingly.

## New Features
- Two new RPCs have been added to support sensor data:
Expand Down
23 changes: 17 additions & 6 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ requires = [
# sure the code is generated using the minimum supported versions, as older
# versions can't work with code that was generated with newer versions.
# https://protobuf.dev/support/cross-version-runtime-guarantee/#backwards
"protobuf == 5.29.3",
"grpcio-tools == 1.70.0",
"grpcio == 1.70.0",
"protobuf == 6.31.1",
"grpcio-tools == 1.72.1",
"grpcio == 1.72.1",

]
build-backend = "setuptools.build_meta"
Expand Down Expand Up @@ -48,11 +48,11 @@ dependencies = [
# We can't widen beyond the current value unless we bump the minimum
# requirements too because of protobuf cross-version runtime guarantees:
# https://protobuf.dev/support/cross-version-runtime-guarantee/#major
"protobuf >= 5.29.3, < 7", # Do not widen beyond 7!
"protobuf >= 6.31.1, < 8", # Do not widen beyond 8!
# We couldn't find any document with a spec about the cross-version runtime
# guarantee for grpcio, so unless we find one in the future, we'll assume
# major version jumps are not compatible
"grpcio >= 1.70.0, < 2", # Do not widen beyond 2!
"grpcio >= 1.72.1, < 2", # Do not widen beyond 2!
]
dynamic = ["version"]

Expand Down Expand Up @@ -168,7 +168,18 @@ disable = [
]

[tool.pytest.ini_options]
addopts = "-W=all -Werror -Wdefault::DeprecationWarning -Wdefault::PendingDeprecationWarning -vv"
addopts = "-vv"
filterwarnings = [
"error",
"once::DeprecationWarning",
"once::PendingDeprecationWarning",
# We ignore warnings about protobuf gencode version being one version older
# than the current version, as this is supported by protobuf, and we expect to
# have such cases. If we go too far, we will get a proper error anyways.
# We use a raw string (single quotes) to avoid the need to escape special
# characters as this is a regex.
'ignore:Protobuf gencode version .*exactly one major version older.*:UserWarning',
]
testpaths = ["pytests"]

[tool.mypy]
Expand Down