public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/python-mako] rawhide: Minimize dependencies
@ 2026-08-28 7:58 Yaakov Selkowitz
0 siblings, 0 replies; only message in thread
From: Yaakov Selkowitz @ 2026-08-28 7:58 UTC (permalink / raw)
To: git-commits
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=
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-08-28 7:58 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-08-28 7:58 [rpms/python-mako] rawhide: Minimize 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