jupyter_client
jupyter_client copied to clipboard
pytest warning about deprecated modules
The Debian package was broken ; I had to add the following patch:
--- jupyter-client.orig/pyproject.toml
+++ jupyter-client/pyproject.toml
@@ -53,6 +53,10 @@
# We could eventually find a way to make sure these are only created
# when there is a running event loop.
"ignore:There is no current event loop:DeprecationWarning:zmq",
+
+ # workaround for deprecated modules
+ "ignore:the imp module is deprecated in favour of importlib:DeprecationWarning",
+ "ignore:The distutils package is deprecated and slated for removal in Python 3.12. Use setuptools or check PEP 632 for potential alternatives"
]
[tool.mypy]
I saw Steven Silvester already provided a commit for the imp module.
Our test suite is passing with the existing config, what versions are you using and which libraries are failing raising imp and distutils warnings?
We have ipykernel 6.9.2, and that seems to be the common trigger.
Yeah, that would do it. I'm happy to accept a PR, or you can maintain that patch.
Update: I've just built jupyter_client 7.4.9 on Debian with ipykernel 6.17.0, and this patch is no longer necessary. I'm guessing it's something to do with the newer ipykernel, but I haven't checked.
Yes, that is correct. Thanks @juliangilbey!