## Features * Support Python 3.14 and drop support for Python 3.8 ## Bug Fixes * Allow again branches in git URLs * Ensure repository is reset to the correct revision during fetch * Support git urls with refs - Add patch support-packaging-26.patch: * Support changes required by packaging 26.0. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-unearth?expand=0&rev=25
33 lines
1.2 KiB
Diff
33 lines
1.2 KiB
Diff
From 0385a1807ae292a916485fd06770594afad1f04f Mon Sep 17 00:00:00 2001
|
|
From: Steve Kowalik <steven@wedontsleep.org>
|
|
Date: Mon, 9 Feb 2026 15:38:14 +1100
|
|
Subject: [PATCH] fix: support packaging 26.0 changes
|
|
|
|
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>
|
|
---
|
|
tests/test_evaluator.py | 4 ++--
|
|
1 file changed, 2 insertions(+), 2 deletions(-)
|
|
|
|
diff --git a/tests/test_evaluator.py b/tests/test_evaluator.py
|
|
index 0412eb7..4b89d8c 100644
|
|
--- 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),
|
|
],
|
|
)
|