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-mako] rawhide: Minimize dependencies
Date: Fri, 28 Aug 2026 07:58:25 GMT	[thread overview]
Message-ID: <178790390596.1.17411143549737101780.rpms-python-mako-b181352349e9@fedoraproject.org> (raw)

            A new commit has been pushed.

            Repo   : rpms/python-mako
            Branch : rawhide
            Commit : b181352349e9f76f6f3d7491c4ae9698860e181f
            Author : Yaakov Selkowitz <yselkowi@redhat.com>
            Date   : 2026-08-27T12:41:48-04:00
            Stats  : +12/-33 in 2 file(s)
            URL    : https://src.fedoraproject.org/rpms/python-mako/c/b181352349e9f76f6f3d7491c4ae9698860e181f?branch=rawhide

            Log:
            Minimize dependencies

%pyproject_patch_dependency allows for managing dependencies without
maintaining patches.  tox is not actually used in packaging, so no
reason to require it.  RHEL does not include several backends.

---
diff --git a/python-mako.spec b/python-mako.spec
index 74f51f6..e46fa90 100644
--- a/python-mako.spec
+++ b/python-mako.spec
@@ -19,9 +19,6 @@ License:	MIT AND Python-2.0.1 AND BSD-3-Clause
 URL:		https://www.makotemplates.org
 Source:		https://github.com/sqlalchemy/mako/archive/rel_1_4_1/%{src_name}-%{version}.tar.gz
 
-# fedora doesnt ship lingua
-Patch0:		remove-lingua.patch
-
 BuildArch:	noarch
 
 BuildRequires:	python3-devel
@@ -31,8 +28,10 @@ BuildRequires:	python3-pytest
 
 %package -n python3-%{src_name}
 Summary:	%{summary}
+%if %{undefined rhel}
 # Beaker is the preferred caching backend, but is not strictly necessary
-Recommends:	python3-breaker
+Recommends:	python3-beaker
+%endif
 Obsoletes:	python2-mako < 1.1.0-3
 Obsoletes:	python-mako-doc < 1.1.4-6
 
@@ -40,9 +39,17 @@ Obsoletes:	python-mako-doc < 1.1.4-6
 
 %prep
 %autosetup -p1 -n %{src_name}-rel_1_4_1
+# fedora doesnt ship lingua
+%pyproject_patch_dependency lingua:ignore
+%if %{defined rhel}
+# not included in RHEL
+%pyproject_patch_dependency beaker:ignore
+%pyproject_patch_dependency dogpile.cache:ignore
+%pyproject_patch_dependency junitparser:ignore
+%endif
 
 %generate_buildrequires
-%pyproject_buildrequires -t
+%pyproject_buildrequires -g tests
 
 %build
 %pyproject_wheel

diff --git a/remove-lingua.patch b/remove-lingua.patch
deleted file mode 100644
index 84b2914..0000000
--- a/remove-lingua.patch
+++ /dev/null
@@ -1,28 +0,0 @@
---- a/pyproject.toml	2026-08-26 18:48:39.240380688 +0300
-+++ b/pyproject.toml	2026-08-26 18:53:29.577147178 +0300
-@@ -40,7 +40,6 @@
- [project.optional-dependencies]
- testing = ["pytest"]
- babel = ["Babel"]
--lingua = ["lingua>=4.16"]
- 
- [dependency-groups]
- tests = [
-@@ -50,7 +49,6 @@
-     "pygments",
-     "babel",
-     "dogpile.cache",
--    "lingua>=4.16",
-     "junitparser",
- ]
- coverage = [
---- a/tox.ini	2026-08-26 18:55:29.042024775 +0300
-+++ b/tox.ini	2026-08-26 18:55:38.491774655 +0300
-@@ -12,7 +12,6 @@
-      pygments
-      babel
-      dogpile.cache
--     lingua>=4.16
-      cov: pytest-cov
- 
- setenv=

                 reply	other threads:[~2026-08-28  7:58 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=178790390596.1.17411143549737101780.rpms-python-mako-b181352349e9@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