diff --git a/markdown-3.10.tar.gz b/markdown-3.10.tar.gz new file mode 100644 index 0000000..076f100 --- /dev/null +++ b/markdown-3.10.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:37062d4f2aa4b2b6b32aefb80faa300f82cc790cb949a35b8caede34f2b68c0e +size 364931 diff --git a/markdown-3.8.2.tar.gz b/markdown-3.8.2.tar.gz deleted file mode 100644 index 163318c..0000000 --- a/markdown-3.8.2.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:247b9a70dd12e27f67431ce62523e675b866d254f900c4fe75ce3dda62237c45 -size 362071 diff --git a/python-Markdown.changes b/python-Markdown.changes index 2eafdb6..a77f976 100644 --- a/python-Markdown.changes +++ b/python-Markdown.changes @@ -1,3 +1,51 @@ +------------------------------------------------------------------- +Tue Nov 4 19:45:00 UTC 2025 - Benoît Monin + +- update to version 3.10: + * Officially support Python 3.14 and PyPy 3.11 and drop support + for Python 3.9 and PyPy 3.9. + * Fix an HTML comment parsing case in some Python versions that + can cause an infinite loop (#1554). + * Revert the default behavior of USE_DEFINITION_ORDER (to True). + The new behavior introduced in 3.9.0 is experimental and + results are inconsistent. It should not have been made the + default behavior (#1561). +- increase the minimum python version to 3.10 as required by + upstream +- stop requiring importlib-metadata: + it was only needed for python < 3.10 + +------------------------------------------------------------------- +Fri Sep 5 15:36:45 UTC 2025 - Benoît Monin + +- 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á + +- Convert to libalternatives on SLE-16-based and newer systems only + +------------------------------------------------------------------- +Tue Aug 12 18:28:43 UTC 2025 - Matej Cepl + +- Add fix-py314.patch to fix failing tests on 3.14.* or 3.13.6+ + (gh#Python-Markdown/markdown#1547). + +------------------------------------------------------------------- +Wed Aug 6 18:16:02 UTC 2025 - Benoît Monin + +- set the minimum version of setuptools to 77.0 to match upstream + pyproject.toml + ------------------------------------------------------------------- Fri Jul 11 10:56:26 UTC 2025 - Markéta Machová diff --git a/python-Markdown.spec b/python-Markdown.spec index b7412da..b531000 100644 --- a/python-Markdown.spec +++ b/python-Markdown.spec @@ -1,7 +1,7 @@ # # 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 # remain the property of their copyright owners, unless otherwise agreed @@ -25,10 +25,14 @@ %define psuffix %{nil} %bcond_with test %endif +%if 0%{?suse_version} > 1500 %bcond_without libalternatives +%else +%bcond_with libalternatives +%endif %{?sle15_python_module_pythons} Name: python-Markdown%{psuffix} -Version: 3.8.2 +Version: 3.10 Release: 0 Summary: Python implementation of Markdown License: BSD-3-Clause @@ -36,17 +40,20 @@ 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 -BuildRequires: %{python_module base >= 3.8} -BuildRequires: %{python_module importlib-metadata >= 4.4 if %python-base < 3.10} +BuildRequires: %{python_module base >= 3.10} BuildRequires: %{python_module pip} -BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module setuptools >= 77.0} BuildRequires: %{python_module wheel} -BuildRequires: alts BuildRequires: fdupes BuildRequires: python-rpm-macros -Requires: alts -Requires: (python-importlib-metadata >= 4.4 if python-base < 3.10) BuildArch: noarch +%if %{with libalternatives} +BuildRequires: alts +Requires: alts +%else +Requires(post): update-alternatives +Requires(postun): update-alternatives +%endif %if %{with test} BuildRequires: %{python_module Markdown = %{version}} BuildRequires: %{python_module PyYAML} @@ -82,6 +89,12 @@ supported by the [Available Extensions][]. %endif %if %{without test} +%post +%python_install_alternative markdown_py + +%postun +%python_uninstall_alternative markdown_py + %pre %python_libalternatives_reset_alternative markdown_py