public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/python-zmq] f44: Use %pyproject_patch_dependency in lieu of sed
@ 2026-08-21  7:09 Benjamin A. Beasley
  0 siblings, 0 replies; only message in thread
From: Benjamin A. Beasley @ 2026-08-21  7:09 UTC (permalink / raw)
  To: git-commits

A new commit has been pushed.

Repo   : rpms/python-zmq
Branch : f44
Commit : e5e077bac77b1c305e390a0d153ed34d2d8c1853
Author : Benjamin A. Beasley <code@musicinmybrain.net>
Date   : 2026-05-07T06:40:57+01:00
Stats  : +9/-6 in 1 file(s)
URL    : https://src.fedoraproject.org/rpms/python-zmq/c/e5e077bac77b1c305e390a0d153ed34d2d8c1853?branch=f44

Log:
Use %pyproject_patch_dependency in lieu of sed

---
diff --git a/python-zmq.spec b/python-zmq.spec
index db44b2e..90e399b 100644
--- a/python-zmq.spec
+++ b/python-zmq.spec
@@ -46,7 +46,7 @@ URL:            https://zeromq.org/languages/python/
 Source:         %{forgeurl}/archive/v%{version}/pyzmq-%{version}.tar.gz
 
 BuildSystem:            pyproject
-BuildOption(generate_buildrequires): test-requirements-filtered.txt
+BuildOption(generate_buildrequires): test-requirements.txt
 # https://scikit-build-core.readthedocs.io/en/latest/configuration/index.html
 BuildOption(build):     %{shrink:
                         -Ccmake.define.PYZMQ_LIBZMQ_RPATH:BOOL=OFF
@@ -128,11 +128,14 @@ find 'src' -type f -name '*.py' \
   xargs -r sed -r -i '1{/^#!/d}'
 
 # https://docs.fedoraproject.org/en-US/packaging-guidelines/Python/#_linters
-# - pymongo is used only in examples/mongodb/, and we don’t run examples
-sed -r \
-    -e 's/^(black|codecov|coverage|flake8|mypy|pytest-cov)\b/# &/' \
-    -e 's/^(pymongo)\b/# &/' \
-    test-requirements.txt | tee test-requirements-filtered.txt
+%pyproject_patch_dependency black:ignore
+%pyproject_patch_dependency codecov:ignore
+%pyproject_patch_dependency coverage:ignore
+%pyproject_patch_dependency flake8:ignore
+%pyproject_patch_dependency mypy:ignore
+%pyproject_patch_dependency pytest-cov:ignore
+# pymongo is used only in examples/mongodb/, and we don’t run examples
+%pyproject_patch_dependency pymongo:ignore
 
 
 %check -p

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

only message in thread, other threads:[~2026-08-21  7:09 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-08-21  7:09 [rpms/python-zmq] f44: Use %pyproject_patch_dependency in lieu of sed Benjamin A. Beasley

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