public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/python-markdown-callouts] rawhide: [PATCH] Fix compatibility with Markdown >=3.10
@ 2026-08-13 20:31 Filipe Rosset
  0 siblings, 0 replies; only message in thread
From: Filipe Rosset @ 2026-08-13 20:31 UTC (permalink / raw)
  To: git-commits

A new commit has been pushed.

Repo   : rpms/python-markdown-callouts
Branch : rawhide
Commit : 4ec2590dc20e9b0105ff6b4d6bd7592558c9373c
Author : Filipe Rosset <rosset.filipe@gmail.com>
Date   : 2026-08-13T17:22:02-03:00
Stats  : +56/-0 in 2 file(s)
URL    : https://src.fedoraproject.org/rpms/python-markdown-callouts/c/4ec2590dc20e9b0105ff6b4d6bd7592558c9373c?branch=rawhide

Log:
[PATCH] Fix compatibility with Markdown >=3.10

---
diff --git a/0001-Fix-compatibility-with-Markdown-3.10.patch b/0001-Fix-compatibility-with-Markdown-3.10.patch
new file mode 100644
index 0000000..153ecb2
--- /dev/null
+++ b/0001-Fix-compatibility-with-Markdown-3.10.patch
@@ -0,0 +1,53 @@
+From d077ef1168667a47c5e201c02b9c457fe8bb83b7 Mon Sep 17 00:00:00 2001
+From: Filipe Rosset <rosset.filipe@gmail.com>
+Date: Thu, 13 Aug 2026 17:06:53 -0300
+Subject: [PATCH] Fix compatibility with Markdown >=3.10
+
+Validated against python-3.15 and pytest-9.1.1
+
+~/tmp/markdown-callouts$ python3.15 -m pytest
+=================================================================================== test session starts ===================================================================================
+platform linux -- Python 3.15.0rc1, pytest-9.1.1, pluggy-1.6.0
+rootdir: /home/opc/tmp/markdown-callouts
+configfile: pyproject.toml
+testpaths: tests
+plugins: hypothesis-6.151.9, anyio-4.14.2, libtmux-0.61.0, golden-0.2.2
+collected 61 items
+
+tests/test_extension.py .............................................................                                                                                               [100%]
+
+=================================================================================== 61 passed in 0.15s ====================================================================================
+---
+ pyproject.toml          | 2 +-
+ tests/test_extension.py | 2 +-
+ 2 files changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/pyproject.toml b/pyproject.toml
+index bc5cb38..a2d57f3 100644
+--- a/pyproject.toml
++++ b/pyproject.toml
+@@ -33,7 +33,7 @@ classifiers = [
+ dynamic = ["version"]
+ requires-python = ">=3.8"
+ dependencies = [
+-    "Markdown >=3.3.3",
++    "Markdown >=3.10",
+     #min "importlib_metadata >=4.3",
+ ]
+ 
+diff --git a/tests/test_extension.py b/tests/test_extension.py
+index 72eb78c..8601d64 100644
+--- a/tests/test_extension.py
++++ b/tests/test_extension.py
+@@ -19,7 +19,7 @@ def test_extension(request, golden):
+     extensions = [
+         extension(**config)
+         for key, extension in extension_styles.items()
+-        if f"{key}/" in request.node.name or "all/" in request.node.name
++        if key in golden.path.parts or "all" in golden.path.parts
+     ]
+     md = Markdown(extensions=extensions)
+     output = md.convert(golden["input"])
+-- 
+2.55.0
+

diff --git a/python-markdown-callouts.spec b/python-markdown-callouts.spec
index 3d8f320..3ea08c6 100644
--- a/python-markdown-callouts.spec
+++ b/python-markdown-callouts.spec
@@ -9,6 +9,9 @@ License:        MIT
 URL:            https://oprypin.github.io/markdown-callouts
 Source:         %{pypi_source markdown_callouts}
 
+# https://github.com/oprypin/markdown-callouts/pull/24
+Patch:          0001-Fix-compatibility-with-Markdown-3.10.patch
+
 BuildArch:      noarch
 BuildRequires:  python3-devel
 

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

only message in thread, other threads:[~2026-08-13 20:31 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-08-13 20:31 [rpms/python-markdown-callouts] rawhide: [PATCH] Fix compatibility with Markdown >=3.10 Filipe Rosset

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