public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/pyusb] rawhide: Drop redundant BuildRequires for python3-wheel
@ 2026-06-29 15:47 
  0 siblings, 0 replies; only message in thread
From:  @ 2026-06-29 15:47 UTC (permalink / raw)
  To: git-commits

A new commit has been pushed.

Repo   : rpms/pyusb
Branch : rawhide
Commit : e7a5743224a68d64ea8b385d11fc6499cc7883a6
Author : Miro Hrončok <miro@hroncok.cz>
Date   : 2026-06-29T13:51:44+02:00
Stats  : +29/-2 in 2 file(s)
URL    : https://src.fedoraproject.org/rpms/pyusb/c/e7a5743224a68d64ea8b385d11fc6499cc7883a6?branch=rawhide

Log:
Drop redundant BuildRequires for python3-wheel

---
diff --git a/81b675f1.patch b/81b675f1.patch
new file mode 100644
index 0000000..e35a95b
--- /dev/null
+++ b/81b675f1.patch
@@ -0,0 +1,19 @@
+From 81b675f1f6d31ab4e86ed549e3523b7329cc31a3 Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Miro=20Hron=C4=8Dok?= <miro@hroncok.cz>
+Date: Mon, 4 Aug 2025 17:10:52 +0200
+Subject: [PATCH] Do not require wheel for building
+
+- current version of setuptools (70.1+) does not need wheel at all
+- older versions of setuptools would fetch wheel when building wheels (but not sdists)
+---
+ pyproject.toml | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/pyproject.toml b/pyproject.toml
+index 508294e5..48647f2d 100644
+--- a/pyproject.toml
++++ b/pyproject.toml
+@@ -1,2 +1,2 @@
+ [build-system]
+-requires = ["setuptools>=30.3.0", "wheel", "setuptools_scm"]
++requires = ["setuptools>=30.3.0", "setuptools_scm"]

diff --git a/pyusb.spec b/pyusb.spec
index 4259a7c..3153a3f 100644
--- a/pyusb.spec
+++ b/pyusb.spec
@@ -1,10 +1,15 @@
 Name: pyusb
 Version: 1.3.1
-Release: 8%{?dist}
+Release: 9%{?dist}
 Summary: Python bindings for libusb
 License: BSD-3-Clause
 URL: https://github.com/pyusb/pyusb/
 Source0: %{pypi_source}
+
+# Do not require wheel for building
+# https://github.com/fedora-eln/eln/issues/284
+Patch: https://github.com/pyusb/pyusb/commit/81b675f1.patch
+
 BuildRequires: libusb1
 BuildArch: noarch
 
@@ -25,7 +30,7 @@ PyUSB provides easy USB access to python. The module contains classes and
 methods to support most USB operations.
 
 %prep
-%autosetup
+%autosetup -p1
 sed -i -e 's/\r//g' README.rst
 
 %generate_buildrequires
@@ -48,6 +53,9 @@ cd tests
 %doc README.rst
 
 %changelog
+* Mon Jun 29 2026 Miro Hrončok <mhroncok@redhat.com> - 1.3.1-9
+- Drop redundant BuildRequires for python3-wheel
+
 * Wed Jun 03 2026 Python Maint <python-maint@redhat.com> - 1.3.1-8
 - Rebuilt for Python 3.15
 

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-06-29 15:47 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-06-29 15:47 [rpms/pyusb] rawhide: Drop redundant BuildRequires for python3-wheel 

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox