public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/python-setuptools_scm] rawhide: Use pyproject macros to limit dependencies
@ 2026-08-13 19:17 Yaakov Selkowitz
  0 siblings, 0 replies; only message in thread
From: Yaakov Selkowitz @ 2026-08-13 19:17 UTC (permalink / raw)
  To: git-commits

            A new commit has been pushed.

            Repo   : rpms/python-setuptools_scm
            Branch : rawhide
            Commit : 8f71abaefe4b965c8edc2fbbb61d04bc1955e38d
            Author : Yaakov Selkowitz <yselkowi@redhat.com>
            Date   : 2026-08-13T09:46:12-04:00
            Stats  : +9/-4 in 1 file(s)
            URL    : https://src.fedoraproject.org/rpms/python-setuptools_scm/c/8f71abaefe4b965c8edc2fbbb61d04bc1955e38d?branch=rawhide

            Log:
            Use pyproject macros to limit dependencies

Something in 10.2.1 broke the assumptions in the sed commands, allowing
'rich' to sneak through as a dependency in the ELN build.  Using the new
%%pyproject_patch_dependency macro is more more reliable.

---
diff --git a/python-setuptools_scm.spec b/python-setuptools_scm.spec
index 79811e8..0f1c211 100644
--- a/python-setuptools_scm.spec
+++ b/python-setuptools_scm.spec
@@ -42,12 +42,17 @@ It also handles file finders for the supported SCMs.
 %prep
 %autosetup -p1 -n setuptools_scm-%{version}
 # Remove flake8, mypy, ruff, … from the test dependencies
-sed -Ei '/^test = \[/,/^\]/ { /"(griffe|mypy|ruff|flake8).*"/d }' pyproject.toml
-
+%pyproject_patch_dependency griffe:ignore
+%pyproject_patch_dependency griffe-public-wildcard-imports:ignore
+%pyproject_patch_dependency griffecli:ignore
+%pyproject_patch_dependency mypy:ignore
+%pyproject_patch_dependency ruff:ignore
+%pyproject_patch_dependency flake8:ignore
 %if %{defined rhel}
 # Remove unnecessary test dependencies:
-# rich is listed in both [rich] and [test] extras, so we need to be more careful
-sed -Ei '/^test = \[/,/^\]/ { /"(rich|wheel|pytest-timeout|pytest-xdist)",/d }' pyproject.toml
+%pyproject_patch_dependency rich:ignore
+%pyproject_patch_dependency pytest-timeout:ignore
+%pyproject_patch_dependency pytest-xdist:ignore
 sed -Ei '/^\[tool.pytest.ini_options\]/,/^\[/ { /^timeout/d }' pyproject.toml
 %endif
 

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

only message in thread, other threads:[~2026-08-13 19:17 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-08-13 19:17 [rpms/python-setuptools_scm] rawhide: Use pyproject macros to limit dependencies Yaakov Selkowitz

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