Skip to content

Commit

Permalink
Bump the frequenz-api-common dependency to 0.6.0
Browse files Browse the repository at this point in the history
Signed-off-by: Leandro Lucarella <luca-frequenz@llucax.com>
  • Loading branch information
llucax committed Sep 11, 2024
1 parent 7abb9ac commit b12bda4
Show file tree
Hide file tree
Showing 5 changed files with 37 additions and 6 deletions.
1 change: 1 addition & 0 deletions RELEASE_NOTES.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
* Group GitHub Actions dependabot updates.
* API projects don't include the `google-common-protos` dependency by default.
* API projects updated the `grpcio` dependency to `1.66.1`.
* API projects updated the `frequenz-api-common` dependency to `0.6`.

## Bug Fixes

Expand Down
2 changes: 1 addition & 1 deletion cookiecutter/{{cookiecutter.github_repo_name}}/mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ plugins:
- https://frequenz-floss.github.io/frequenz-channels-python/v0.16/objects.inv
- https://frequenz-floss.github.io/frequenz-sdk-python/v0.25/objects.inv
{%- elif cookiecutter.type == "api" %}
- https://frequenz-floss.github.io/frequenz-api-common/v0.3/objects.inv
- https://frequenz-floss.github.io/frequenz-api-common/v0.6/objects.inv
- https://grpc.github.io/grpc/python/objects.inv
{%- endif %}
- https://typing-extensions.readthedocs.io/en/stable/objects.inv
Expand Down
20 changes: 18 additions & 2 deletions cookiecutter/{{cookiecutter.github_repo_name}}/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,15 @@ requires = [
"setuptools == 70.1.1",
"setuptools_scm[toml] == 8.1.0",
"frequenz-repo-config[{{cookiecutter.type}}] == 0.10.0",
{%- if cookiecutter.type == "api" %}
# 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 == 5.28.0",
"grpcio-tools == 1.66.1",
"grpcio == 1.66.1",
{%- endif %}
]
build-backend = "setuptools.build_meta"

Expand Down Expand Up @@ -43,8 +52,15 @@ dependencies = [
]
{%- elif cookiecutter.type == "api" %}
dependencies = [
"frequenz-api-common >= 0.5.0, < 0.6.0",
"grpcio >= 1.66.1, < 2",
"frequenz-api-common >= 0.6.2, < 0.7.0",
# 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.28.0, < 7", # Do not widen beyond 7!
# 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.66.1, < 2", # Do not widen beyond 2!
]
{%- else %}
dependencies = [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ plugins:
# TODO(cookiecutter): You might want to add other external references here
# See https://mkdocstrings.github.io/python/usage/#import for details
- https://docs.python.org/3/objects.inv
- https://frequenz-floss.github.io/frequenz-api-common/v0.3/objects.inv
- https://frequenz-floss.github.io/frequenz-api-common/v0.6/objects.inv
- https://grpc.github.io/grpc/python/objects.inv
- https://typing-extensions.readthedocs.io/en/stable/objects.inv
# Note this plugin must be loaded after mkdocstrings to be able to use macros
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,13 @@ requires = [
"setuptools == 70.1.1",
"setuptools_scm[toml] == 8.1.0",
"frequenz-repo-config[api] == 0.10.0",
# 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 == 5.28.0",
"grpcio-tools == 1.66.1",
"grpcio == 1.66.1",
]
build-backend = "setuptools.build_meta"

Expand All @@ -28,8 +35,15 @@ classifiers = [
requires-python = ">= 3.11, < 4"
# TODO(cookiecutter): Remove and add more dependencies if appropriate
dependencies = [
"frequenz-api-common >= 0.5.0, < 0.6.0",
"grpcio >= 1.66.1, < 2",
"frequenz-api-common >= 0.6.2, < 0.7.0",
# 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.28.0, < 7", # Do not widen beyond 7!
# 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.66.1, < 2", # Do not widen beyond 2!
]
dynamic = ["version"]

Expand Down

0 comments on commit b12bda4

Please sign in to comment.