Skip to content

Commit

Permalink
Merge v0.6.2 into v0.x.x (#243)
Browse files Browse the repository at this point in the history
- **Clear release notes**
- **Pin grpc related dependencies**
  • Loading branch information
llucax authored Sep 12, 2024
2 parents c75dba3 + 19c69ec commit 5265439
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 3 deletions.
6 changes: 4 additions & 2 deletions RELEASE_NOTES.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
# Frequenz Common API Release Notes

## Summary

Update of the `PaginationParams` struct.

## Upgrading
Expand All @@ -13,3 +11,7 @@ Update of the `PaginationParams` struct.
to represent HVAC (Heating, Ventilation, and Air Conditioning) systems.

- Additional information for energy metric

## Bug Fixes

- Fix a dependency issue by pinning the `grpcio` version and related libraries.
17 changes: 16 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,13 @@ requires = [
"setuptools == 68.1.0",
"setuptools_scm[toml] == 7.1.0",
"frequenz-repo-config[api] == 0.9.2",
# We need to pin the protobuf, grpcio and grpcio-tools dependencies to make
# 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 == 4.25.3",
"grpcio-tools == 1.51.1",
"grpcio == 1.51.1",
]
build-backend = "setuptools.build_meta"

Expand All @@ -25,7 +32,15 @@ classifiers = [
"Typing :: Typed",
]
requires-python = ">= 3.11, < 4"
dependencies = ["grpcio >= 1.51.1, < 2", "protobuf >= 4.25.3, < 6"]
dependencies = [
# We can't widen beyond 6 because of protobuf cross-version runtime guarantees
# https://protobuf.dev/support/cross-version-runtime-guarantee/#major
"protobuf >= 4.25.3, < 6", # Do not widen beyond 6!
# 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.51.1, < 2", # Do not widen beyond 2!
]
dynamic = ["version"]

[[project.authors]]
Expand Down

0 comments on commit 5265439

Please sign in to comment.