-
Notifications
You must be signed in to change notification settings - Fork 41
(zigpy_znp.__version__) not available #205
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
Comments
You can read it with from importlib.metadata import version
version("zigpy-znp") This works for all packages. |
I'm hitting an error in zigpy_znp itself, which seems to be related to this packaging change. In the latest version of Home Assistant installed from the Arch Linux package repositories, it throws an exception, at line 139 of
Note that in HA, zigpy_znp is installed in a python venv, not in I was able to fix the problem and make HA work again by changing that line in
|
I can't replicate this problem by just |
Previously it was possible to check the zigpy_znp version with zigpy_znp.version as for the other libraries.
looks like since the move to the new packaging model , this version attribute is not available any more.
I wouldn't say it is a regression, as it doesn't impact the behaviour and the runing of the library, but it was good to be able to cross-check the package version in order to make sure that the above program layer is relying on a consistent set and tested pack of libraries.
Yes, using requirements.txt will help to control that, but will not prevent users to do what ever they want, so the version atrtribute was a great value
The text was updated successfully, but these errors were encountered: