Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix grpc dependencies #259

Merged
merged 5 commits into from
Sep 13, 2024
Merged

Conversation

llucax
Copy link
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 david-natingga-frequenz and Marenz 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
Copy link
Contributor Author

llucax commented Sep 13, 2024

FYI @matthias-wende-frequenz

@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
9 checks passed
@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