public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/python-markdown-it-py] rawhide: Introduce a bootstrap to avoid python-pytest-regressions dependency from start
@ 2026-07-01 12:58 Karolina Surma
0 siblings, 0 replies; only message in thread
From: Karolina Surma @ 2026-07-01 12:58 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/python-markdown-it-py
Branch : rawhide
Commit : e139c09f9bf8d50608a6857c89c44d7a461d21fb
Author : Karolina Surma <ksurma@redhat.com>
Date : 2026-07-01T12:57:38+00:00
Stats : +9/-2 in 1 file(s)
URL : https://src.fedoraproject.org/rpms/python-markdown-it-py/c/e139c09f9bf8d50608a6857c89c44d7a461d21fb?branch=rawhide
Log:
Introduce a bootstrap to avoid python-pytest-regressions dependency from start
---
diff --git a/python-markdown-it-py.spec b/python-markdown-it-py.spec
index 290d96a..ff8e699 100644
--- a/python-markdown-it-py.spec
+++ b/python-markdown-it-py.spec
@@ -1,3 +1,7 @@
+# bootstrap is needed to break the loop with python-mdit-py-plugins.
+# Additionaly we use it to not require python-pytest-regressions for the build,
+# as it has a heavy dependency chain, possible much later in the new Python bootstrap
+%bcond bootstrap 0
%global pypi_name markdown-it-py
Name: python-%{pypi_name}
@@ -15,7 +19,7 @@ BuildArch: noarch
BuildRequires: python3-devel
# The plugins extras creates a bootstrap loop
-%bcond plugins 1
+%bcond plugins %{without bootstrap}
%global _description %{expand:
Markdown parser done right. Its features:
@@ -44,6 +48,9 @@ sed -i '1{\@^#!/usr/bin/env python@d}' markdown_it/cli/parse.py
# https://github.com/executablebooks/markdown-it-py/issues/195
sed -i '/"coverage",/d' pyproject.toml
sed -i '/"pytest-cov",/d' pyproject.toml
+%if %{with bootstrap}
+sed -i '/"pytest-regressions",/d' pyproject.toml
+%endif
%generate_buildrequires
%pyproject_buildrequires -x testing,linkify%{?with_plugins:,plugins}
@@ -56,7 +63,7 @@ sed -i '/"pytest-cov",/d' pyproject.toml
%pyproject_save_files markdown_it
%check
-%pytest tests/
+%pytest tests/ %{?with_bootstrap:-k "not test_pretty and not test_table_tokens and not test_file and not test_use_existing_env and not test_store_labels and not test_inline_definitions"}
%files -n python3-%{pypi_name} -f %{pyproject_files}
%license LICENSE LICENSE.markdown-it
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-07-01 12:58 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-07-01 12:58 [rpms/python-markdown-it-py] rawhide: Introduce a bootstrap to avoid python-pytest-regressions dependency from start Karolina Surma
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox