-
Notifications
You must be signed in to change notification settings - Fork 199
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
Remove unnecessary pyzmq
requirement
#612
Conversation
'pyzmq' is not used in sources, which was pulled in in 79b0b02 Signed-off-by: cunshunxia <cunshunxia@tencent.com>
pyzmq is required by ipykernel and we don't need this in our requirement list. |
Thank you @xiacunshun for your feedback and submitting a PR with the required changes! Checking seems like #416 was the PR where the |
I think this is fine but I don't understand how it'll help your use case @xiacunshun given that IPykernel is (and will continue to be) a dependency of this package. |
pyzmq
requirement
@ccordoba12 I am one of the maintainers of the pipdeptree project and also the maintainer of the OpenCloudOS distribution. Currently, I am developing a Python dependency checking tool. This tool will scan and identify dependencies that do not match the modules actually used in the source code. The aim is to make the dependency relationships of Python projects clearer, which can facilitate us in trimming some unnecessary dependencies when creating images. |
It's possible that this module may be depended upon by other software, but in reality, it's irrelevant to the current project. If one day the dependent Python project changes its own dependencies, the current project would be unaware of it. |
pyzmq's a transitive dependency via jupyter-client, etc., so removing it won't remove the dependency, but it may affect the constraint. I think this is looser than others now anyway, so it probably has no effect and can be safely removed. If it's not used directly and if there aren't version constraints specific to this package (there may have been in the past), it doesn't need to be here. |
Thanks @xiacunshun for the extra info and @minrk for chiming in. I think both arguments make sense so I'm going to merge this PR. |
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.
Thanks for your contribution @xiacunshun!
Note: The failures in our tests are unrelated to these changes.
'pyzmq' is not used in sources, which was pulled in in 79b0b02