public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/poetry] f45: Fix tests compatibility with packaging 26.3
@ 2026-08-17 11:09 Lumir Balhar
0 siblings, 0 replies; only message in thread
From: Lumir Balhar @ 2026-08-17 11:09 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/poetry
Branch : f45
Commit : ead18445b06df927029ebd440ffe437942e664cc
Author : Lumir Balhar <lbalhar@redhat.com>
Date : 2026-08-17T05:34:17+02:00
Stats : +35/-0 in 2 file(s)
URL : https://src.fedoraproject.org/rpms/poetry/c/ead18445b06df927029ebd440ffe437942e664cc?branch=f45
Log:
Fix tests compatibility with packaging 26.3
---
diff --git a/11014.patch b/11014.patch
new file mode 100644
index 0000000..8393120
--- /dev/null
+++ b/11014.patch
@@ -0,0 +1,33 @@
+From 4aada01a8e6217495413bc31ea870db15ab15884 Mon Sep 17 00:00:00 2001
+From: NgoQuocViet2001 <ngoquocviet2001@gmail.com>
+Date: Fri, 14 Aug 2026 00:23:07 +0700
+Subject: [PATCH] test: accept compatible extension wheel tags
+
+---
+ tests/installation/test_chef.py | 6 +++++-
+ 1 file changed, 5 insertions(+), 1 deletion(-)
+
+diff --git a/tests/installation/test_chef.py b/tests/installation/test_chef.py
+index 9a659bc0a2a..e28e5b658db 100644
+--- a/tests/installation/test_chef.py
++++ b/tests/installation/test_chef.py
+@@ -11,6 +11,7 @@
+ import pytest
+
+ from build import ProjectBuilder
++from packaging.utils import parse_wheel_filename
+ from poetry.core.packages.utils.link import Link
+
+ from poetry.factory import Factory
+@@ -96,7 +97,10 @@ def test_prepare_directory_with_extensions(
+ wheel = chef.prepare(archive)
+
+ assert wheel.parent.parent == Path(tempfile.gettempdir())
+- assert wheel.name == f"extended-0.1-{env.supported_tags[0]}.whl"
++ name, version, _, tags = parse_wheel_filename(wheel.name)
++ assert name == "extended"
++ assert str(version) == "0.1"
++ assert not tags.isdisjoint(env.supported_tags)
+
+ # cleanup generated tmp dir artifact
+ os.unlink(wheel)
diff --git a/poetry.spec b/poetry.spec
index 64df81c..187a844 100644
--- a/poetry.spec
+++ b/poetry.spec
@@ -26,6 +26,8 @@ Source0: https://github.com/python-poetry/poetry/archive/%{version}/poetr
# TODO get rid of this patch by talking to virtualenv and poetry upstream about a better solution.
Patch: Patch-get_embedded_wheel-to-return-system-wheels-fro.patch
+# Fixes tests with packaging 26.3
+Patch: https://github.com/python-poetry/poetry/pull/11014.patch
BuildArch: noarch
BuildRequires: python3-devel
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-08-17 11:09 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-08-17 11:09 [rpms/poetry] f45: Fix tests compatibility with packaging 26.3 Lumir Balhar
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox