public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Yaakov Selkowitz <yselkowi@redhat.com>
To: git-commits@fedoraproject.org
Subject: [rpms/python-setuptools_scm] rawhide: Use pyproject macros to limit dependencies
Date: Thu, 13 Aug 2026 19:17:50 GMT [thread overview]
Message-ID: <178664867054.1.13631097810006258191.rpms-python-setuptools_scm-8f71abaefe4b@fedoraproject.org> (raw)
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
reply other threads:[~2026-08-13 19:17 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=178664867054.1.13631097810006258191.rpms-python-setuptools_scm-8f71abaefe4b@fedoraproject.org \
--to=yselkowi@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