https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/ Issue: dev-python/resolvelib-0.9.0 fails tests (HARDENED-SYSTEM). Discovered on: amd64 (internal ref: hardened_tinderbox) NOTE: (HARDENED-SYSTEM) in the summary means that the bug was found on a machine that runs an hardened profile with -D_FORTIFY_SOURCE=3 and -D_GLIBCXX_ASSERTIONS (https://www.gentoo.org/support/news-items/2023-01-01-hardening-fortify-assertions.html) but this bug MAY or MAY NOT BE related to the changes related to hardened.
Created attachment 850436 [details] build.log build log and emerge --info
Error(s) that match a know pattern in addition to what has been reported in the summary: FAILED tests/functional/cocoapods/test_resolvers_cocoapods.py::test_resolver[conflict_common_parent] FAILED tests/functional/cocoapods/test_resolvers_cocoapods.py::test_resolver[deep_complex_conflict] FAILED tests/functional/cocoapods/test_resolvers_cocoapods.py::test_resolver[pruned_unresolved_orphan] FAILED tests/functional/cocoapods/test_resolvers_cocoapods.py::test_resolver[shared_parent_dependency] FAILED tests/functional/cocoapods/test_resolvers_cocoapods.py::test_resolver[shared_parent_dependency_with_swapping] FAILED tests/functional/cocoapods/test_resolvers_cocoapods.py::test_resolver[spapping_and_rewinding]
self = <[AttributeError("'Version' object has no attribute '_version'") raised in repr()] Version object at 0x55b12e8e2838> version = '5.0.0-beta1.1' def __init__(self, version: str) -> None: """Initialize a Version object. :param version: The string representation of a version which will be parsed and normalized before use. :raises InvalidVersion: If the ``version`` does not conform to PEP 440 in any way then this exception will be raised. """ # Validate the version and parse it into pieces match = self._regex.search(version) if not match: > raise InvalidVersion(f"Invalid version: '{version}'") E packaging.version.InvalidVersion: Invalid version: '5.0.0-beta1.1' match = None self = <[AttributeError("'Version' object has no attribute '_version'") raised in repr()] Version object at 0x55b12e8e2838> version = '5.0.0-beta1.1'
The main branch's fixed but the fix is large-ish, so I've asked upstream for a new release.
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a791bb3f7bb685495fdc2cae9d1cbba6124c32c1 commit a791bb3f7bb685495fdc2cae9d1cbba6124c32c1 Author: Michał Górny <mgorny@gentoo.org> AuthorDate: 2023-02-24 17:41:33 +0000 Commit: Michał Górny <mgorny@gentoo.org> CommitDate: 2023-02-24 17:42:03 +0000 dev-python/resolvelib: Require packaging < 22 Bug: https://bugs.gentoo.org/894034 Signed-off-by: Michał Górny <mgorny@gentoo.org> dev-python/resolvelib/resolvelib-0.8.1.ebuild | 2 +- dev-python/resolvelib/resolvelib-0.9.0.ebuild | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
This is actually a dev-python/packaging problem, and we no longer force the new packaging version in setuptools.