public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Karolina Surma <ksurma@redhat.com>
To: git-commits@fedoraproject.org
Subject: [rpms/python-markdown-it-py] rawhide: Introduce a bootstrap to avoid python-pytest-regressions dependency from start
Date: Wed, 01 Jul 2026 12:58:14 GMT	[thread overview]
Message-ID: <178291069414.1.873128140265053045.rpms-python-markdown-it-py-e139c09f9bf8@fedoraproject.org> (raw)

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

                 reply	other threads:[~2026-07-01 12: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=178291069414.1.873128140265053045.rpms-python-markdown-it-py-e139c09f9bf8@fedoraproject.org \
    --to=ksurma@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