Skip to content

Pin protobuf related dependencies#309

Merged
llucax merged 4 commits intofrequenz-floss:v0.x.xfrom
llucax:pin-protobuf-deps
Sep 11, 2024
Merged

Pin protobuf related dependencies#309
llucax merged 4 commits intofrequenz-floss:v0.x.xfrom
llucax:pin-protobuf-deps

Conversation

@llucax
Copy link
Copy Markdown
Contributor

@llucax llucax commented Sep 11, 2024

We can't use wide dependencies because otherwise when building the wheel, the latest version is used, but the generate code should use the minimum supported version for the generation, not the latest one. See: https://protobuf.dev/support/cross-version-runtime-guarantee/.

For doing this we also need to depend on frequence-api-common v0.6.2+ because it is the version that contains the same fix for the generated files.

We also take the opportunity to remove the google-common-protos dependency from the API projects by default and to bump the grpcio dependency to 1.66.1 and to fix an issue with mkdocstrings and newer griffe versions.

@llucax llucax requested a review from a team as a code owner September 11, 2024 12:16
@llucax llucax requested a review from Marenz September 11, 2024 12:16
We generally don't use it, so there is no point in including it by
default. If it is needed, it can be added manually.

Signed-off-by: Leandro Lucarella <luca-frequenz@llucax.com>
Signed-off-by: Leandro Lucarella <luca-frequenz@llucax.com>
Signed-off-by: Leandro Lucarella <luca-frequenz@llucax.com>
@github-actions github-actions Bot added part:protobuf Affects the protobuf tools part:template Affects the cookiecutter template files labels Sep 11, 2024
@llucax llucax enabled auto-merge September 11, 2024 12:16
@llucax llucax self-assigned this Sep 11, 2024
@llucax llucax added this to the v0.11.0 milestone Sep 11, 2024
@llucax llucax added the type:bug Something isn't working label Sep 11, 2024
This is to fix an issue while importing `griffe` symbols from a new
version.

Signed-off-by: Leandro Lucarella <luca-frequenz@llucax.com>
@llucax llucax added this pull request to the merge queue Sep 11, 2024
Merged via the queue into frequenz-floss:v0.x.x with commit 6d49ce5 Sep 11, 2024
@llucax llucax deleted the pin-protobuf-deps branch September 11, 2024 14:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

part:protobuf Affects the protobuf tools part:template Affects the cookiecutter template files type:bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants