Skip to content

Fix grpc dependencies#259

Merged
llucax merged 5 commits intofrequenz-floss:v0.15.xfrom
llucax:fix-gprc-deps-0.15
Sep 13, 2024
Merged

Fix grpc dependencies#259
llucax merged 5 commits intofrequenz-floss:v0.15.xfrom
llucax:fix-gprc-deps-0.15

Conversation

@llucax
Copy link
Copy Markdown
Contributor

@llucax llucax commented Sep 13, 2024

This is a backport of #254 plus a few v0.15 specific fixes to make the CI pass in this old branch.

  • Bump frequenz-api-common submodule to v0.6.2
  • Pin grpc related dependencies
  • Bump mkdocstrings dependencies
  • Fix mypy configuration
  • Stop using strict mode in mkdocs.yml

This is to pull a fix for using the correct `protobuf` related
dependencies.

Signed-off-by: Leandro Lucarella <luca-frequenz@llucax.com>
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/

Signed-off-by: Leandro Lucarella <luca-frequenz@llucax.com>
This is to avoid an issue with some outdated `griffe` imports.

While upgrading the dependency we need to remove the `custom_templates`
option that we don't use, as it was previously ignored but now the
plugin checks if the directory exists and fails if it doesn't.

Signed-off-by: Leandro Lucarella <luca-frequenz@llucax.com>
It seems like something changed in the dependencies that before we
didn't need to configure `mypy` to be able to find the namespace and to
get the `grpc-stubs` package, but now we do.

Signed-off-by: Leandro Lucarella <luca-frequenz@llucax.com>
We are getting some warnings from MkDocs that are not really important
and it would be hard to fix for this old branch, so we just disable
strict mode for now.

Signed-off-by: Leandro Lucarella <luca-frequenz@llucax.com>
@llucax llucax requested review from a team as code owners September 13, 2024 11:31
@llucax llucax requested review from Marenz and david-natingga-frequenz and removed request for a team September 13, 2024 11:31
@llucax llucax self-assigned this Sep 13, 2024
@llucax llucax added this to the v0.15.4 milestone Sep 13, 2024
@github-actions github-actions Bot added part:docs Affects the documentation part:tooling Affects the development tooling (CI, deployment, dependency management, etc.) labels Sep 13, 2024
@llucax llucax enabled auto-merge September 13, 2024 11:31
@llucax
Copy link
Copy Markdown
Contributor Author

llucax commented Sep 13, 2024

FYI @matthias-wende-frequenz

@llucax llucax disabled auto-merge September 13, 2024 11:48
@llucax llucax enabled auto-merge September 13, 2024 11:48
@llucax llucax added this pull request to the merge queue Sep 13, 2024
Merged via the queue into frequenz-floss:v0.15.x with commit ac7c7a1 Sep 13, 2024
@llucax llucax deleted the fix-gprc-deps-0.15 branch September 13, 2024 12:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

part:docs Affects the documentation part:tooling Affects the development tooling (CI, deployment, dependency management, etc.)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants