We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Describe the bug Commit 58738b6 fixed an import time compatibility issue on avocado.utils.kernel with regards to either pkg_resources or packaging.
avocado.utils.kernel
pkg_resources
packaging
That in fact only masked some other problems:
version
version.parse()
Steps to reproduce To reproduce 1, run:
python3 -c 'import packaging; packaging.version.parse("1.2.3")' Traceback (most recent call last): File "<string>", line 1, in <module> AttributeError: module 'packaging' has no attribute 'version'
To reproduce 2, on a system with packaging, run:
$ python3 -c 'from packaging.version import parse; parse("6.11.4-201.fc40.x86_64")' Traceback (most recent call last): File "<string>", line 1, in <module> File "/usr/lib/python3.12/site-packages/packaging/version.py", line 54, in parse return Version(version) ^^^^^^^^^^^^^^^^ File "/usr/lib/python3.12/site-packages/packaging/version.py", line 200, in __init__ raise InvalidVersion(f"Invalid version: '{version}'") packaging.version.InvalidVersion: Invalid version: '6.11.4-201.fc40.x86_64'
While on a system with pkg_resources you'd get:
python3 -c 'import pkg_resources; print(pkg_resources.packaging.version.parse("6.11.4-201.fc40.x86_64"))' 6.11.4-201.fc40.x86_64
The text was updated successfully, but these errors were encountered:
clebergnu
No branches or pull requests
Describe the bug
Commit 58738b6 fixed an import time compatibility issue on
avocado.utils.kernel
with regards to eitherpkg_resources
orpackaging
.That in fact only masked some other problems:
version
module is not directly accessible inpackaging
version.parse()
is different between the one coming frompkg_resources
and frompackaging
.Steps to reproduce
To reproduce 1, run:
To reproduce 2, on a system with
packaging
, run:While on a system with
pkg_resources
you'd get:The text was updated successfully, but these errors were encountered: