public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Lumir Balhar <lbalhar@redhat.com>
To: git-commits@fedoraproject.org
Subject: [rpms/poetry] rawhide: Fix tests compatibility with packaging 26.3
Date: Mon, 17 Aug 2026 11:08:32 GMT [thread overview]
Message-ID: <178696491200.1.10823862507252425997.rpms-poetry-ead18445b06d@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : rpms/poetry
Branch : rawhide
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=rawhide
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
reply other threads:[~2026-08-17 11:08 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=178696491200.1.10823862507252425997.rpms-poetry-ead18445b06d@fedoraproject.org \
--to=lbalhar@redhat.com \
--cc=git-commits@fedoraproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox