public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
To: git-commits@fedoraproject.org
Subject: [rpms/python-mako] rawhide: Add a bootstrap bcond to break circular dependency on self
Date: Sat, 24 Oct 2026 05:46:23 GMT [thread overview]
Message-ID: <179282078350.1.1552790984806124629.rpms-python-mako-a3c72f9f01f4@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : rpms/python-mako
Branch : rawhide
Commit : a3c72f9f01f42cbb8b55cbc28bcf42dba5f0b0f4
Author : Miro Hrončok <miro@hroncok.cz>
Date : 2026-10-21T17:37:13+02:00
Stats : +9/-1 in 1 file(s)
URL : https://src.fedoraproject.org/rpms/python-mako/c/a3c72f9f01f42cbb8b55cbc28bcf42dba5f0b0f4?branch=rawhide
Log:
Add a bootstrap bcond to break circular dependency on self
Note that babel currently is available --with tests but lingua is not,
so I decided to exclude both imports unconditionally.
[skip changelog]
---
diff --git a/python-mako.spec b/python-mako.spec
index e46fa90..e35291e 100644
--- a/python-mako.spec
+++ b/python-mako.spec
@@ -10,6 +10,10 @@ which refines the familiar ideas of componentized layout and inheritance to
produce one of the most straightforward and flexible models available, while
also maintaining close ties to Python calling and scoping semantics.}
+# Break a circular dependency (mako->dogpile-cache->mako) during the new Python bootstrap
+%bcond bootstrap 0
+%bcond tests %{without bootstrap}
+
Name: python-%{src_name}
Version: 1.4.1
Release: %autorelease
@@ -49,7 +53,7 @@ Obsoletes: python-mako-doc < 1.1.4-6
%endif
%generate_buildrequires
-%pyproject_buildrequires -g tests
+%pyproject_buildrequires %{?with_tests:-g tests}
%build
%pyproject_wheel
@@ -59,7 +63,11 @@ Obsoletes: python-mako-doc < 1.1.4-6
%pyproject_save_files %{src_name}
%check
+# the excluded imports need additional dependencies (babel, lingua)
+%pyproject_check_import --exclude mako.ext.babelplugin --exclude mako.ext.linguaplugin
+%if %{with tests}
%pytest -v
+%endif
%files -n python3-%{src_name} -f %{pyproject_files}
%license LICENSE
reply other threads:[~2026-10-24 5:46 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=179282078350.1.1552790984806124629.rpms-python-mako-a3c72f9f01f4@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