public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/python-mako] rawhide: Add a bootstrap bcond to break circular dependency on self
@ 2026-10-24  5:46 
  0 siblings, 0 replies; only message in thread
From:  @ 2026-10-24  5:46 UTC (permalink / raw)
  To: git-commits

            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

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

only message in thread, other threads:[~2026-10-24  5:46 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-10-24  5:46 [rpms/python-mako] rawhide: Add a bootstrap bcond to break circular dependency on self 

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