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/python-build] rawhide: Fix compatibility with newest pyproject-hooks
Date: Fri, 16 Oct 2026 09:46:18 GMT	[thread overview]
Message-ID: <179214397812.1.11724332274337714885.rpms-python-build-79779e8b52c6@fedoraproject.org> (raw)

A new commit has been pushed.

Repo   : rpms/python-build
Branch : rawhide
Commit : 79779e8b52c6a3e4752889351d2355d6b0318008
Author : Lumir Balhar <lbalhar@redhat.com>
Date   : 2026-10-16T08:55:30+02:00
Stats  : +71/-0 in 2 file(s)
URL    : https://src.fedoraproject.org/rpms/python-build/c/79779e8b52c6a3e4752889351d2355d6b0318008?branch=rawhide

Log:
Fix compatibility with newest pyproject-hooks

---
diff --git a/58c921aa.patch b/58c921aa.patch
new file mode 100644
index 0000000..faa499a
--- /dev/null
+++ b/58c921aa.patch
@@ -0,0 +1,68 @@
+From 58c921aada7f4e03edda65545d42db0c8b000bdc Mon Sep 17 00:00:00 2001
+From: Gonghan-Princess <1340373031wang@gmail.com>
+Date: Fri, 25 Sep 2026 23:07:22 +0800
+Subject: [PATCH] Avoid deprecated license classifier in legacy metadata test
+ (#1193)
+
+Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
+---
+ docs/changelog/1193.misc.rst   | 2 ++
+ tests/packages/legacy/setup.py | 2 +-
+ tests/test_integration.py      | 7 +++++++
+ tests/test_projectbuilder.py   | 1 +
+ 4 files changed, 11 insertions(+), 1 deletion(-)
+ create mode 100644 docs/changelog/1193.misc.rst
+
+diff --git a/docs/changelog/1193.misc.rst b/docs/changelog/1193.misc.rst
+new file mode 100644
+index 000000000..14e78d813
+--- /dev/null
++++ b/docs/changelog/1193.misc.rst
+@@ -0,0 +1,2 @@
++Keep the legacy package test fixture compatible with forwarded backend warnings by replacing its deprecated license
++classifier with license metadata. - by :user:`Gonghan-Princess`
+diff --git a/tests/packages/legacy/setup.py b/tests/packages/legacy/setup.py
+index 9760837c7..c6324970f 100644
+--- a/tests/packages/legacy/setup.py
++++ b/tests/packages/legacy/setup.py
+@@ -6,8 +6,8 @@
+     version='1.0.0',
+     author='Filipe Laíns',
+     author_email='lains@archlinux.org',
++    license='MIT',
+     classifiers=[
+-        'License :: OSI Approved :: MIT License',
+         'Programming Language :: Python :: 2.7',
+         'Programming Language :: Python :: 3',
+     ],
+diff --git a/tests/test_integration.py b/tests/test_integration.py
+index fe0daa1ee..e3c959a11 100644
+--- a/tests/test_integration.py
++++ b/tests/test_integration.py
+@@ -58,7 +58,14 @@ def _ignore_folder(base: str, filenames: list[str]) -> list[str]:
+     return dest / f'{name}-{version}'
+ 
+ 
++# These pinned third-party sources emit backend deprecations that are not
++# controlled by build; keep other warnings as errors. Match messages rather
++# than BuildBackendWarning, which is absent in the minimum pyproject-hooks.
+ @pytest.mark.network
++@pytest.mark.filterwarnings(r'ignore:`project\.license` as a TOML table is deprecated')
++@pytest.mark.filterwarnings('ignore:License classifiers are deprecated')
++@pytest.mark.filterwarnings('ignore:The test command is disabled and references to it are deprecated')
++@pytest.mark.filterwarnings(r'ignore:bdist_wheel\.universal is deprecated')
+ @pytest.mark.parametrize(
+     'call',
+     [
+diff --git a/tests/test_projectbuilder.py b/tests/test_projectbuilder.py
+index eeb8b74ec..732f26341 100644
+--- a/tests/test_projectbuilder.py
++++ b/tests/test_projectbuilder.py
+@@ -609,6 +609,7 @@ def test_metadata_path_legacy(tmp_dir: str, package_legacy: str) -> None:
+ 
+     assert metadata['name'] == 'legacy'
+     assert metadata['Version'] == '1.0.0'
++    assert metadata['License'] == 'MIT'
+ 
+ 
+ def test_metadata_invalid_wheel(tmp_dir: str, package_test_bad_wheel: str) -> None:

diff --git a/python-build.spec b/python-build.spec
index 62cef97..258df32 100644
--- a/python-build.spec
+++ b/python-build.spec
@@ -15,6 +15,9 @@ License:        MIT
 URL:            https://github.com/pypa/build
 Source:         %{pypi_source build}
 
+# Compatibility with new pyproject-hooks
+Patch:          https://github.com/pypa/build/commit/58c921aa.patch
+
 BuildArch:      noarch
 
 BuildRequires:  python3-devel

                 reply	other threads:[~2026-10-16  9:46 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=179214397812.1.11724332274337714885.rpms-python-build-79779e8b52c6@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