mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-17 14:49:30 -07:00
Closes: https://bugs.gentoo.org/978396 Signed-off-by: Alfred Wingate <parona@protonmail.com> Part-of: https://codeberg.org/gentoo/gentoo/pulls/1582 Signed-off-by: Michał Górny <mgorny@gentoo.org>
31 lines
1.2 KiB
Diff
31 lines
1.2 KiB
Diff
https://bugs.gentoo.org/978396
|
|
https://github.com/frostming/unearth/pull/176
|
|
https://github.com/frostming/unearth/commit/69ece0800edeefb1daf035bb0ee348e17a4393fd
|
|
|
|
From 69ece0800edeefb1daf035bb0ee348e17a4393fd Mon Sep 17 00:00:00 2001
|
|
From: Steve Kowalik <steven@wedontsleep.org>
|
|
Date: Mon, 9 Feb 2026 18:05:48 +1100
|
|
Subject: [PATCH] fix: support packaging 26.0 changes (#176)
|
|
|
|
packaging 26.0 changed how Specifier.contains() behaves with
|
|
prereleases=None[0], so call it with False explicitly in the two
|
|
tests that fail without it.
|
|
|
|
0: https://github.com/pypa/packaging/issues/895
|
|
|
|
Signed-off-by: Steve Kowalik <steven@wedontsleep.org>
|
|
--- a/tests/test_evaluator.py
|
|
+++ b/tests/test_evaluator.py
|
|
@@ -251,9 +251,9 @@ def test_evaluate_compatibility_tags(link, expected, ignore_compatibility):
|
|
("8.1.3", ">=8.0", None, True),
|
|
("7.1", ">=8.0", None, False),
|
|
("8.0.0a0", ">=8.0.0dev0", None, True),
|
|
- ("8.0.0dev0", ">=7", None, False),
|
|
+ ("8.0.0dev0", ">=7", False, False),
|
|
("8.0.0dev0", ">=7", True, True),
|
|
- ("8.0.0a0", "", None, False),
|
|
+ ("8.0.0a0", "", False, False),
|
|
("8.0.0a0", ">=8.0.0dev0", False, False),
|
|
],
|
|
)
|