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

Update frequenz-SDK to 1.0.0-rc801 #46

Merged

Conversation

daniel-zullo-frequenz
Copy link
Contributor

The latest frequenz-SDK 1.0.0-rc801 is required to resolve dependency conflicts for SDK apps based on that version.

The frequenz-SDK 1.0.0-rc801 requires frequenz-channels >= 1.1.0.

Signed-off-by: Daniel Zullo <daniel.zullo@frequenz.com>
@github-actions github-actions bot added the part:tooling Affects the development tooling (CI, deployment, dependency management, etc.) label Aug 27, 2024
The latest frequenz-SDK 1.0.0-rc801 is required to resolve
dependency conflicts for SDK apps based on that version.

The type-checker complained about missing grpc-stubs
and grpc.aio imports, which are now added to the
mypy configuration.

Signed-off-by: Daniel Zullo <daniel.zullo@frequenz.com>
@github-actions github-actions bot added the part:docs Affects the documentation label Aug 27, 2024
The CI job for testing the documentation website generation
is failing because of error: No module named 'griffe.collections'.
Updating the version of the mkdocstrings-python package
fixes this issue.

Signed-off-by: Daniel Zullo <daniel.zullo@frequenz.com>
@daniel-zullo-frequenz daniel-zullo-frequenz marked this pull request as ready for review August 27, 2024 15:52
@daniel-zullo-frequenz daniel-zullo-frequenz requested a review from a team as a code owner August 27, 2024 15:52
Comment on lines +187 to +188
"grpc.aio",
"grpc.aio.*",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just upgrading the SDK made it start complaining about this? Weird.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, I ran nox without any changes and all the checks passed.
Then I updated channels, and again all checks passed.
After updating the SDK dependency to:

diff --git a/pyproject.toml b/pyproject.toml
index 76ee55c..47227e5 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -39,7 +39,7 @@ dependencies = [
   # Make sure to update the version for cross-referencing also in the
   # mkdocs.yml file when changing the version here (look for the config key
   # plugins.mkdocstrings.handlers.python.import)
-  "frequenz-sdk == 1.0.0rc601",
+  "frequenz-sdk == 1.0.0-rc801",
   "frequenz-channels >= 1.1.0, < 2.0.0",
   "frequenz-client-dispatch >= 0.5.0, < 0.6.0",
 ]

And I got the following errors in mypy:

nox > Running session mypy
nox > Creating virtual environment (virtualenv) using python in .nox/mypy
nox > python -m pip install -e '.[dev-mypy]'
nox > mypy 
src/frequenz/dispatch/actor.py:10: error: Skipping analyzing "grpc.aio": module is installed, but missing library stubs or py.typed marker  [import-untyped]
src/frequenz/dispatch/actor.py:10: error: Skipping analyzing "grpc": module is installed, but missing library stubs or py.typed marker  [import-untyped]
src/frequenz/dispatch/_dispatcher.py:9: error: Skipping analyzing "grpc.aio": module is installed, but missing library stubs or py.typed marker  [import-untyped]
src/frequenz/dispatch/_dispatcher.py:9: note: See https://mypy.readthedocs.io/en/stable/running_mypy.html#missing-imports
src/frequenz/dispatch/_dispatcher.py:9: error: Skipping analyzing "grpc": module is installed, but missing library stubs or py.typed marker  [import-untyped]
Found 4 errors in 2 files (checked 6 source files)
nox > Command mypy  failed with exit code 1
nox > Session mypy failed.

@llucax llucax added this pull request to the merge queue Aug 28, 2024
Merged via the queue into frequenz-floss:v0.x.x with commit 876b5b0 Aug 28, 2024
14 checks passed
@daniel-zullo-frequenz daniel-zullo-frequenz deleted the feature/update-sdk branch August 28, 2024 10:08
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