14
0

23 Commits

Author SHA256 Message Date
6feee112f6 Accepting request 1303175 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1303175
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-Markdown?expand=0&rev=57
2025-09-10 15:29:34 +00:00
f307ad0975 - update to version 3.9
- increase the minimum python version to 3.9 as required by upstream
- drop fix-py314.patch: fixed upstream

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Markdown?expand=0&rev=114
2025-09-08 10:17:17 +00:00
fd38e31626 Accepting request 1300744 from devel:languages:python
- Convert to libalternatives on SLE-16-based and newer systems only

OBS-URL: https://build.opensuse.org/request/show/1300744
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-Markdown?expand=0&rev=56
2025-08-22 15:46:57 +00:00
4738bd322a - Convert to libalternatives on SLE-16-based and newer systems only
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Markdown?expand=0&rev=112
2025-08-21 09:31:19 +00:00
0142136134 Accepting request 1299147 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1299147
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-Markdown?expand=0&rev=55
2025-08-13 14:23:27 +00:00
9cf6958d47 - Add fix-py314.patch to fix failing tests on 3.14.* or 3.13.6+
(gh#Python-Markdown/markdown#1547).

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Markdown?expand=0&rev=110
2025-08-12 20:30:50 +00:00
57080521f5 Accepting request 1298181 from devel:languages:python
Forwarded request #1298010 from benoit_monin

set the minimum version of setuptools to 77.0 to match upstream pyproject.toml

OBS-URL: https://build.opensuse.org/request/show/1298181
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-Markdown?expand=0&rev=54
2025-08-09 17:58:44 +00:00
332a35be5e set the minimum version of setuptools to 77.0 to match upstream pyproject.toml
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Markdown?expand=0&rev=108
2025-08-07 16:08:56 +00:00
f7c02c0b85 Accepting request 1291952 from devel:languages:python
- Convert to libalternatives

OBS-URL: https://build.opensuse.org/request/show/1291952
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-Markdown?expand=0&rev=53
2025-07-15 14:42:35 +00:00
46514c9bbf - Convert to libalternatives
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Markdown?expand=0&rev=106
2025-07-11 10:57:25 +00:00
d09a3e6e64 Accepting request 1288743 from devel:languages:python
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/1288743
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-Markdown?expand=0&rev=52
2025-06-27 21:00:19 +00:00
0193a563ad Accepting request 1286873 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1286873
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-Markdown?expand=0&rev=51
2025-06-20 14:48:22 +00:00
eaf8707cae Accepting request 1287016 from home:benoit_monin:branches:devel:languages:python
update to version 3.8.2

OBS-URL: https://build.opensuse.org/request/show/1287016
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Markdown?expand=0&rev=103
2025-06-20 09:35:54 +00:00
2d42a03a66 update to version 3.8.1
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Markdown?expand=0&rev=102
2025-06-19 09:07:35 +00:00
5daa561e1e Accepting request 1269114 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1269114
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-Markdown?expand=0&rev=50
2025-04-16 18:37:11 +00:00
dcdc2c70c4 update to version 3.8
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Markdown?expand=0&rev=100
2025-04-14 06:26:49 +00:00
d6daaaf0cd Accepting request 1266131 from devel:languages:python
- Make the metadata directory name case-insensitive.
- Lowercase metadata directory name.

OBS-URL: https://build.opensuse.org/request/show/1266131
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-Markdown?expand=0&rev=49
2025-04-11 14:44:54 +00:00
4f1bd75d98 - Make the metadata directory name case-insensitive.
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Markdown?expand=0&rev=98
2025-04-01 12:24:31 +00:00
922a912ff1 - Lowercase metadata directory name.
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Markdown?expand=0&rev=97
2025-03-25 03:13:33 +00:00
ec68754c9b Accepting request 1195094 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1195094
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-Markdown?expand=0&rev=48
2024-08-22 16:10:29 +00:00
30849af1cb - update to version 3.7
- rename source tarball to markdown to match upstream

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Markdown?expand=0&rev=95
2024-08-21 11:33:05 +00:00
bdd43dead0 Accepting request 1193472 from devel:languages:python
- Split the package into multibuild with tests separate (to
  separate PyYAML dependency).

OBS-URL: https://build.opensuse.org/request/show/1193472
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-Markdown?expand=0&rev=47
2024-08-17 10:40:57 +00:00
5db14d974b - Split the package into multibuild with tests separate (to
separate PyYAML dependency).

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Markdown?expand=0&rev=93
2024-08-12 14:48:58 +00:00
5 changed files with 19 additions and 63 deletions

View File

@@ -1,54 +0,0 @@
From 15346cd3a73f108bf11c57907b32737f8365d6bd Mon Sep 17 00:00:00 2001
From: facelessuser <faceless.shop@gmail.com>
Date: Mon, 21 Jul 2025 08:56:43 -0600
Subject: [PATCH] Fix failing cases for Python 3.14
New change requires us to monkey patch `locatetagend` to prevent
capturing incomplete tags in code spans.
---
docs/changelog.md | 6 ++++++
markdown/htmlparser.py | 14 ++++++++++++++
2 files changed, 20 insertions(+)
Index: markdown-3.8.2/docs/changelog.md
===================================================================
--- markdown-3.8.2.orig/docs/changelog.md 2025-06-19 19:12:28.000000000 +0200
+++ markdown-3.8.2/docs/changelog.md 2025-08-12 21:13:46.980036183 +0200
@@ -10,6 +10,12 @@
[Python Version Specification]: https://packaging.python.org/en/latest/specifications/version-specifiers/.
See the [Contributing Guide](contributing.md) for details.
+## [Unreleased]
+
+### Fixed
+
+* Fix handling of incomplete HTML tags in code spans in Python 3.14.
+
## [3.8.2] - 2025-06-19
### Fixed
Index: markdown-3.8.2/markdown/htmlparser.py
===================================================================
--- markdown-3.8.2.orig/markdown/htmlparser.py 2025-06-19 19:12:28.000000000 +0200
+++ markdown-3.8.2/markdown/htmlparser.py 2025-08-12 21:13:46.980214669 +0200
@@ -69,6 +69,20 @@
)?
\s* # trailing whitespace
""", re.VERBOSE)
+htmlparser.locatetagend = re.compile(r"""
+ [a-zA-Z][^`\t\n\r\f />]* # tag name
+ [\t\n\r\f /]* # optional whitespace before attribute name
+ (?:(?<=['"\t\n\r\f /])[^`\t\n\r\f />][^\t\n\r\f /=>]* # attribute name
+ (?:= # value indicator
+ (?:'[^']*' # LITA-enclosed value
+ |"[^"]*" # LIT-enclosed value
+ |(?!['"])[^>\t\n\r\f ]* # bare value
+ )
+ )?
+ [\t\n\r\f /]* # possibly followed by a space
+ )*
+ >?
+""", re.VERBOSE)
# Match a blank line at the start of a block of text (two newlines).
# The newlines may be preceded by additional whitespace.

BIN
markdown-3.8.2.tar.gz (Stored with Git LFS)

Binary file not shown.

3
markdown-3.9.tar.gz Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:d2900fe1782bd33bdbbd56859defef70c2e78fc46668f8eb9df3128138f2cb6a
size 364585

View File

@@ -1,3 +1,17 @@
-------------------------------------------------------------------
Fri Sep 5 15:36:45 UTC 2025 - Benoît Monin <benoit.monin@gmx.fr>
- update to version 3.9:
* Footnotes are now ordered by the occurrence of their references
in the document (#1367).
* Ensure inline processing iterates through elements in document
order (#1546).
* Fix handling of incomplete HTML tags in code spans in Python
3.14 (#1547).
- increase the minimum python version to 3.9 as required by
upstream
- drop fix-py314.patch: fixed upstream
-------------------------------------------------------------------
Thu Aug 21 09:30:43 UTC 2025 - Markéta Machová <mmachova@suse.com>

View File

@@ -1,7 +1,6 @@
#
# spec file for package python-Markdown
#
# Copyright (c) 2025 SUSE LLC
# Copyright (c) 2025 SUSE LLC and contributors
#
# All modifications and additions to the file contributed by third parties
@@ -33,7 +32,7 @@
%endif
%{?sle15_python_module_pythons}
Name: python-Markdown%{psuffix}
Version: 3.8.2
Version: 3.9
Release: 0
Summary: Python implementation of Markdown
License: BSD-3-Clause
@@ -41,10 +40,7 @@ Group: Development/Languages/Python
URL: https://python-markdown.github.io/
Source: https://files.pythonhosted.org/packages/source/m/markdown/markdown-%{version}.tar.gz
Patch0: markdown-3.0-python37.patch
# PATCH-FIX-UPSTREAM fix-py314.patch gh#Python-Markdown/markdown#1547 mcepl@suse.com
# Fix failing cases for Python 3.14
Patch1: fix-py314.patch
BuildRequires: %{python_module base >= 3.8}
BuildRequires: %{python_module base >= 3.9}
BuildRequires: %{python_module importlib-metadata >= 4.4 if %python-base < 3.10}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module setuptools >= 77.0}