public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
To: git-commits@fedoraproject.org
Subject: [rpms/python-setuptools_scm] rawhide: EL: Avoid modifying runtime package METADATA wrt. rich extra
Date: Wed, 30 Sep 2026 14:57:09 GMT [thread overview]
Message-ID: <179078022930.1.9578187202101679525.rpms-python-setuptools_scm-a08da48272db@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : rpms/python-setuptools_scm
Branch : rawhide
Commit : a08da48272dbe1ce40aec07930e8800180d94a8e
Author : Miro Hrončok <miro@hroncok.cz>
Date : 2026-08-14T13:02:03+02:00
Stats : +2/-1 in 1 file(s)
URL : https://src.fedoraproject.org/rpms/python-setuptools_scm/c/a08da48272dbe1ce40aec07930e8800180d94a8e?branch=rawhide
Log:
EL: Avoid modifying runtime package METADATA wrt. rich extra
Users who install the package on EL don't have the +rich extra subpackage,
but that does not mean we should remove
Requires-Dist: rich>=13; extra == "rich"
from METADATA. That can be useful when combining RPM and PyPI packages.
For discussion about the semantics of %pyproject_patch_dependency wrt. extras,
see https://lists.fedoraproject.org/archives/list/python-devel@lists.fedoraproject.org/message/XKT66NFCRGCWCAEVPJTLBQ4YFKWHQQJH/
---
diff --git a/python-setuptools_scm.spec b/python-setuptools_scm.spec
index 0f1c211..d0b1170 100644
--- a/python-setuptools_scm.spec
+++ b/python-setuptools_scm.spec
@@ -50,7 +50,8 @@ It also handles file finders for the supported SCMs.
%pyproject_patch_dependency flake8:ignore
%if %{defined rhel}
# Remove unnecessary test dependencies:
-%pyproject_patch_dependency rich:ignore
+# rich is also an extra dependency, so use :br_only not to patch runtime METADATA
+%pyproject_patch_dependency rich:ignore:br_only
%pyproject_patch_dependency pytest-timeout:ignore
%pyproject_patch_dependency pytest-xdist:ignore
sed -Ei '/^\[tool.pytest.ini_options\]/,/^\[/ { /^timeout/d }' pyproject.toml
reply other threads:[~2026-09-30 14:57 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=179078022930.1.9578187202101679525.rpms-python-setuptools_scm-a08da48272db@fedoraproject.org \
--to=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