Skip to content

Commit 10341d6

Browse files
committed
template: Bump protobuf and grpcio to latest versions
The previous versions were inconsistent, as the runtime version was too new (6) for the build version (5). Normally Protobuf should be compatible between 2 consecutive major versions, but it seems this is not the case for these versions, as we got build failures saying the codegen version was newer than the runtime version. In any case, for new projects it should be OK and desired to use the latest versions, so we just do that. Signed-off-by: Leandro Lucarella <luca-frequenz@llucax.com>
1 parent af44767 commit 10341d6

2 files changed

Lines changed: 10 additions & 10 deletions

File tree

  • cookiecutter/{{cookiecutter.github_repo_name}}
  • tests_golden/integration/test_cookiecutter_generation/api/frequenz-api-test

cookiecutter/{{cookiecutter.github_repo_name}}/pyproject.toml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ requires = [
1111
# sure the code is generated using the minimum supported versions, as older
1212
# versions can't work with code that was generated with newer versions.
1313
# https://protobuf.dev/support/cross-version-runtime-guarantee/#backwards
14-
"protobuf == 5.29.3",
15-
"grpcio-tools == 1.70.0",
16-
"grpcio == 1.70.0",
14+
"protobuf == 6.33.4",
15+
"grpcio-tools == 1.76.0",
16+
"grpcio == 1.76.0",
1717
{%- endif %}
1818
]
1919
build-backend = "setuptools.build_meta"
@@ -64,11 +64,11 @@ dependencies = [
6464
# We can't widen beyond the current value unless we bump the minimum
6565
# requirements too because of protobuf cross-version runtime guarantees:
6666
# https://protobuf.dev/support/cross-version-runtime-guarantee/#major
67-
"protobuf >= 6.32.0, < 8", # Do not widen beyond 8!
67+
"protobuf >= 6.33.4, < 8", # Do not widen beyond 8!
6868
# We couldn't find any document with a spec about the cross-version runtime
6969
# guarantee for grpcio, so unless we find one in the future, we'll assume
7070
# major version jumps are not compatible
71-
"grpcio >= 1.74.0, < 2", # Do not widen beyond 2!
71+
"grpcio >= 1.76.0, < 2", # Do not widen beyond 2!
7272
]
7373
{%- else %}
7474
dependencies = [

tests_golden/integration/test_cookiecutter_generation/api/frequenz-api-test/pyproject.toml

Lines changed: 5 additions & 5 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.3",
14-
"grpcio-tools == 1.70.0",
15-
"grpcio == 1.70.0",
13+
"protobuf == 6.33.4",
14+
"grpcio-tools == 1.76.0",
15+
"grpcio == 1.76.0",
1616
]
1717
build-backend = "setuptools.build_meta"
1818

@@ -39,11 +39,11 @@ dependencies = [
3939
# We can't widen beyond the current value unless we bump the minimum
4040
# requirements too because of protobuf cross-version runtime guarantees:
4141
# https://protobuf.dev/support/cross-version-runtime-guarantee/#major
42-
"protobuf >= 6.32.0, < 8", # Do not widen beyond 8!
42+
"protobuf >= 6.33.4, < 8", # Do not widen beyond 8!
4343
# We couldn't find any document with a spec about the cross-version runtime
4444
# guarantee for grpcio, so unless we find one in the future, we'll assume
4545
# major version jumps are not compatible
46-
"grpcio >= 1.74.0, < 2", # Do not widen beyond 2!
46+
"grpcio >= 1.76.0, < 2", # Do not widen beyond 2!
4747
]
4848
dynamic = ["version"]
4949

0 commit comments

Comments
 (0)