diff --git a/Markdown-3.4.4.tar.gz b/Markdown-3.4.4.tar.gz deleted file mode 100644 index 03955c7..0000000 --- a/Markdown-3.4.4.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:225c6123522495d4119a90b3a3ba31a1e87a70369e03f14799ea9c0d7183a3d6 -size 324459 diff --git a/_multibuild b/_multibuild new file mode 100644 index 0000000..fcc7b97 --- /dev/null +++ b/_multibuild @@ -0,0 +1,3 @@ + + test + diff --git a/markdown-3.0-python37.patch b/markdown-3.0-python37.patch index 98a80bd..483a7b0 100644 --- a/markdown-3.0-python37.patch +++ b/markdown-3.0-python37.patch @@ -1,6 +1,10 @@ ---- Markdown-3.0/tests/test_legacy.py.orig 2018-10-18 20:59:01.521952070 +0200 -+++ Markdown-3.0/tests/test_legacy.py 2018-10-18 20:59:20.746395446 +0200 -@@ -29,6 +29,7 @@ +--- + tests/test_legacy.py | 1 + + 1 file changed, 1 insertion(+) + +--- a/tests/test_legacy.py ++++ b/tests/test_legacy.py +@@ -28,6 +28,7 @@ warnings.simplefilter('error') # Except for the warnings that shouldn't warnings.filterwarnings('default', category=PendingDeprecationWarning) warnings.filterwarnings('default', category=DeprecationWarning, module='markdown') diff --git a/markdown-3.7.tar.gz b/markdown-3.7.tar.gz new file mode 100644 index 0000000..e40a4cc --- /dev/null +++ b/markdown-3.7.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:2ae2471477cfd02dbbf038d5d9bc226d40def84b4fe2986e49b59b6b472bbed2 +size 357086 diff --git a/python-Markdown.changes b/python-Markdown.changes index a1da87a..e62c46f 100644 --- a/python-Markdown.changes +++ b/python-Markdown.changes @@ -1,3 +1,83 @@ +------------------------------------------------------------------- +Sat Aug 17 10:27:01 UTC 2024 - Benoît Monin + +- update to version 3.7: + * Changed + + Refactor abbr Extension + * Fixed + + Fixed links to source code on GitHub from the documentation + (#1453). +- rename source tarball to markdown to match upstream + +------------------------------------------------------------------- +Mon Aug 12 14:47:54 UTC 2024 - Matej Cepl + +- Split the package into multibuild with tests separate (to + separate PyYAML dependency). + +------------------------------------------------------------------- +Fri Mar 15 19:46:03 UTC 2024 - Benoît Monin + +- update to version 3.6: + * Changed + + Refactor TOC Sanitation + * Fixed + + Include scripts/*.py in the generated source tarballs (#1430) + + Ensure lines after heading in loose list are properly + detabbed (#1443). + + Give smarty tree processor higher priority than toc (#1440). + + Permit carets (^) and square brackets (]) but explicitly + exclude backslashes (\) from abbreviations (#1444). + + In attribute lists (attr_list, fenced_code), quoted attribute + values are now allowed to contain curly braces (}) (#1414). + +------------------------------------------------------------------- +Thu Jan 11 21:37:02 UTC 2024 - Benoît Monin + +- update to version 3.5.2: + * Fix type annotations for convertFile - it accepts only + bytes-based buffers. Also remove legacy checks from Python 2 + (#1400) + * Remove legacy import needed only in Python 2 (#1403) + * Fix typo that left the attribute + AdmonitionProcessor.content_indent unset (#1404) + * Fix edge-case crash in InlineProcessor with AtomicString + (#1406). + * Fix edge-case crash in codehilite with an empty code tag + (#1405). + * Improve and expand type annotations in the code base (#1401). + * Fix handling of bogus comments (#1425). + +------------------------------------------------------------------- +Wed Nov 1 20:56:04 UTC 2023 - Benoît Monin + +- update to version 3.5.1: + * Fix a performance problem with HTML extraction where large HTML + input could trigger quadratic line counting behavior (#1392). + * Improve and expand type annotations in the code base (#1394). + +------------------------------------------------------------------- +Sun Oct 8 13:54:25 UTC 2023 - Benoît Monin + +- update to version 3.5: + * Added: + + Add permalink_leading configuration option to the toc + extension (#1339) + * Changed: + + Add support for cPython version 3.12 (and PyPy 3.10) and drop + support for Python version 3.7 (#1357). + + Refactor changelog to use the format defined at + https://keepachangelog.com/. + + Update the list of empty HTML tags (#1353). + + Add customizable TOC title class to TOC extension (#1293). + + Add API documentation of the code base which is generated by + mkdocstrings (#1220). + * Fixed: + + Fix a corner case in admonitions where if an indented code + block was provided as the first block, the output would be + malformed (#1329). +- set the minimum python version to 3.8 + ------------------------------------------------------------------- Tue Jul 25 19:12:12 UTC 2023 - Benoît Monin diff --git a/python-Markdown.spec b/python-Markdown.spec index f3e3d41..2378b2e 100644 --- a/python-Markdown.spec +++ b/python-Markdown.spec @@ -1,7 +1,7 @@ # # spec file for package python-Markdown # -# Copyright (c) 2023 SUSE LLC +# Copyright (c) 2024 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -17,28 +17,38 @@ %{?sle15_python_module_pythons} -Name: python-Markdown -Version: 3.4.4 +%global flavor @BUILD_FLAVOR@%{nil} +%if "%{flavor}" == "test" +%define psuffix -test +%bcond_without test +%endif +%if "%{flavor}" == "" +%define psuffix %{nil} +%bcond_with test +%endif +Name: python-Markdown%{psuffix} +Version: 3.7 Release: 0 Summary: Python implementation of Markdown License: BSD-3-Clause Group: Development/Languages/Python URL: https://python-markdown.github.io/ -Source: https://files.pythonhosted.org/packages/source/M/Markdown/Markdown-%{version}.tar.gz +Source: https://files.pythonhosted.org/packages/source/m/markdown/markdown-%{version}.tar.gz Patch0: markdown-3.0-python37.patch -BuildRequires: %{python_module PyYAML} -BuildRequires: %{python_module base >= 3.7} +BuildRequires: %{python_module base >= 3.8} BuildRequires: %{python_module importlib-metadata >= 4.4 if %python-base < 3.10} BuildRequires: %{python_module pip} BuildRequires: %{python_module setuptools} BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros -%if 0%{?python_version_nodots} < 310 -Requires: python-importlib-metadata >= 4.4 +%if %{with test} +BuildRequires: %{python_module Markdown = %{version}} +BuildRequires: %{python_module PyYAML} %endif +Requires: (python-importlib-metadata >= 4.4 if python-base < 3.10) Requires(post): update-alternatives -Requires(postun):update-alternatives +Requires(postun): update-alternatives BuildArch: noarch %python_subpackages @@ -50,20 +60,27 @@ on what exactly is supported and what is not. Additional features are supported by the [Available Extensions][]. %prep -%autosetup -p1 -n Markdown-%{version} +%autosetup -p1 -n markdown-%{version} %build +%if %{without test} %pyproject_wheel +%endif %install +%if %{without test} %pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitelib} %python_clone -a %{buildroot}%{_bindir}/markdown_py +%endif %check +%if %{with test} %pyunittest discover -v +%endif +%if %{without test} %post %python_install_alternative markdown_py @@ -76,5 +93,6 @@ supported by the [Available Extensions][]. %python_alternative %{_bindir}/markdown_py %{python_sitelib}/Markdown-%{version}*-info %{python_sitelib}/markdown +%endif %changelog