-
Notifications
You must be signed in to change notification settings - Fork 3
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
Update frequenz-SDK to 1.0.0-rc801 #46
Conversation
The frequenz-SDK 1.0.0-rc801 requires frequenz-channels >= 1.1.0. Signed-off-by: Daniel Zullo <daniel.zullo@frequenz.com>
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>
66283a0
to
362df15
Compare
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>
"grpc.aio", | ||
"grpc.aio.*", |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
The latest frequenz-SDK 1.0.0-rc801 is required to resolve dependency conflicts for SDK apps based on that version.