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

A new commit has been pushed.

Repo   : rpms/pre-commit
Branch : f44
Commit : 8163ca9a4a30fd947b961c4767f4536b06218985
Author : Benjamin A. Beasley <code@musicinmybrain.net>
Date   : 2026-04-29T13:02:39+01:00
Stats  : +4/-4 in 1 file(s)
URL    : https://src.fedoraproject.org/rpms/pre-commit/c/8163ca9a4a30fd947b961c4767f4536b06218985?branch=f44

Log:
Use %pyproject_patch_dependency in lieu of sed

---
diff --git a/pre-commit.spec b/pre-commit.spec
index 13de0d8..ecd8677 100644
--- a/pre-commit.spec
+++ b/pre-commit.spec
@@ -33,7 +33,7 @@ Source114:       pre-commit-validate-manifest.1
 BuildSystem:            pyproject
 BuildOption(prep):      -S git
 %if %{with check}
-BuildOption(generate_buildrequires): requirements-dev-filtered.txt
+BuildOption(generate_buildrequires): requirements-dev.txt
 %endif
 BuildOption(install):   -l pre_commit
 # Any Python files inside pre_commit.resources are templates and are not
@@ -56,9 +56,9 @@ A framework for managing and maintaining multi-language pre-commit hooks.
 
 
 %prep -a
-# Do not generate BR’s for coverage, linters, etc.:
-sed -r '/^(covdefaults|coverage)\b/d' requirements-dev.txt |
-  tee requirements-dev-filtered.txt
+# https://docs.fedoraproject.org/en-US/packaging-guidelines/Python/#_linters
+%pyproject_patch_dependency covdefaults:ignore
+%pyproject_patch_dependency coverage:ignore
 
 
 %install -a

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

only message in thread, other threads:[~2026-07-22  5:49 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-07-22  5:49 [rpms/pre-commit] 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