public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/python-setuptools_scm] rawhide: EL: Avoid modifying runtime package METADATA wrt. rich extra
@ 2026-09-30 14:57 
  0 siblings, 0 replies; only message in thread
From:  @ 2026-09-30 14:57 UTC (permalink / raw)
  To: git-commits

            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

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

only message in thread, other threads:[~2026-09-30 14:57 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-09-30 14:57 [rpms/python-setuptools_scm] rawhide: EL: Avoid modifying runtime package METADATA wrt. rich extra 

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