Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-mistune for openSUSE:Factory checked in at 2023-10-16 22:33:00 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-mistune (Old) and /work/SRC/openSUSE:Factory/.python-mistune.new.20540 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-mistune" Mon Oct 16 22:33:00 2023 rev:19 rq:1117996 version:3.0.2 Changes: -------- --- /work/SRC/openSUSE:Factory/python-mistune/python-mistune.changes 2023-09-22 21:47:21.720746861 +0200 +++ /work/SRC/openSUSE:Factory/.python-mistune.new.20540/python-mistune.changes 2023-10-16 22:33:01.435907224 +0200 @@ -1,0 +2,6 @@ +Mon Oct 16 10:36:17 UTC 2023 - OndÅej Súkup <mimi...@gmail.com> + +- Update to 3.0.2 + * fix RecursionError for lists + +------------------------------------------------------------------- Old: ---- mistune-3.0.1.tar.gz New: ---- mistune-3.0.2.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-mistune.spec ++++++ --- /var/tmp/diff_new_pack.5788Bw/_old 2023-10-16 22:33:02.631950365 +0200 +++ /var/tmp/diff_new_pack.5788Bw/_new 2023-10-16 22:33:02.635950510 +0200 @@ -19,11 +19,10 @@ %define modname mistune %{?sle15_python_module_pythons} Name: python-%{modname} -Version: 3.0.1 +Version: 3.0.2 Release: 0 Summary: Python Markdown parser with renderers and plugins License: BSD-3-Clause -Group: Development/Languages/Python URL: https://github.com/lepture/mistune Source: https://github.com/lepture/%{modname}/archive/refs/tags/v%{version}.tar.gz#/%{modname}-%{version}.tar.gz BuildRequires: %{python_module pip} ++++++ mistune-3.0.1.tar.gz -> mistune-3.0.2.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/mistune-3.0.1/.readthedocs.yaml new/mistune-3.0.2/.readthedocs.yaml --- old/mistune-3.0.1/.readthedocs.yaml 2023-06-10 01:53:43.000000000 +0200 +++ new/mistune-3.0.2/.readthedocs.yaml 2023-09-30 01:57:10.000000000 +0200 @@ -10,6 +10,6 @@ python: install: - - requirements: requirements-docs.txt + - requirements: docs/requirements.txt - method: pip path: . diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/mistune-3.0.1/Makefile new/mistune-3.0.2/Makefile --- old/mistune-3.0.1/Makefile 2023-06-10 01:53:43.000000000 +0200 +++ new/mistune-3.0.2/Makefile 2023-09-30 01:57:10.000000000 +0200 @@ -1,15 +1,6 @@ -.PHONY: clean-pyc clean-build docs +.PHONY: clean-pyc clean-build build-docs -test: - @pytest -s - -coverage: - @pytest --cov=mistune - -clean: clean-build clean-pyc clean-docs - -build: - @python3 -m build +clean: clean-build clean-pyc clean-build: @rm -fr build/ @@ -24,14 +15,6 @@ @find . -name '*~' -exec rm -f {} + @find . -name '__pycache__' -exec rm -fr {} + -clean-docs: - @rm -fr docs/_build - -docs: - @$(MAKE) -C docs html - -publish: - @twine upload dist/*.tar.gz - @twine upload dist/*.whl -.PHONY: build +build-docs: + @sphinx-build docs build/_html -a diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/mistune-3.0.1/docs/_templates/partials/globaltoc-above.html new/mistune-3.0.2/docs/_templates/partials/globaltoc-above.html --- old/mistune-3.0.1/docs/_templates/partials/globaltoc-above.html 1970-01-01 01:00:00.000000000 +0100 +++ new/mistune-3.0.2/docs/_templates/partials/globaltoc-above.html 2023-09-30 01:57:10.000000000 +0200 @@ -0,0 +1,4 @@ +<div class="sponsor" style="background:var(--sy-c-bg-weak);padding:15px;margin:0 0 1.5rem;border-radius:6px;text-align:center"> + <a style="display: flex;justify-content: center;margin-bottom: 0.5rem;" href="https://typlog.com/"><img src="https://typlog.com/android-chrome-512x512.png" alt="Typlog" width="100" height="100"></a> + <div class="text" style="font-size:0.86rem"><a href="https://typlog.com/?utm_source=mistune&utm_medium=docs">A blogging and podcast hosting platform, simple yet elegant.</a></div> +</div> diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/mistune-3.0.1/docs/_templates/partials/sidebar-links.html new/mistune-3.0.2/docs/_templates/partials/sidebar-links.html --- old/mistune-3.0.1/docs/_templates/partials/sidebar-links.html 2023-06-10 01:53:43.000000000 +0200 +++ new/mistune-3.0.2/docs/_templates/partials/sidebar-links.html 1970-01-01 01:00:00.000000000 +0100 @@ -1,5 +0,0 @@ -<div class="sponsor" style="background:var(--sy-c-bg-weak);padding:15px;margin:0 0 1.5rem;border-radius:6px;text-align:center"> - <a style="display: flex;justify-content: center;margin-bottom: 0.5rem;" href="https://typlog.com/"><img src="https://typlog.com/android-chrome-512x512.png" alt="Typlog" width="100" height="100"></a> - <div class="text" style="font-size:0.86rem"><a href="https://typlog.com/?utm_source=mistune&utm_medium=docs">A blogging and podcast hosting platform, simple yet elegant.</a></div> -</div> -<div class="js-carbon" data-carbon-code="CE7DKK3W" data-carbon-placement="mistune"></div> diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/mistune-3.0.1/docs/_templates/partials/webfonts.html new/mistune-3.0.2/docs/_templates/partials/webfonts.html --- old/mistune-3.0.1/docs/_templates/partials/webfonts.html 2023-06-10 01:53:43.000000000 +0200 +++ new/mistune-3.0.2/docs/_templates/partials/webfonts.html 1970-01-01 01:00:00.000000000 +0100 @@ -1,8 +0,0 @@ -<link rel="preconnect" href="https://fonts.googleapis.com"> -<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin> -<link href="https://fonts.googleapis.com/css2?family=Lora:wght@400;500;700&display=swap" rel="stylesheet"> -<style> -.yue { - font-family: Lora, var(--sy-f-sys), var(--sy-f-cjk), serif; -} -</style> diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/mistune-3.0.1/docs/changes.rst new/mistune-3.0.2/docs/changes.rst --- old/mistune-3.0.1/docs/changes.rst 2023-06-10 01:53:43.000000000 +0200 +++ new/mistune-3.0.2/docs/changes.rst 2023-09-30 01:57:10.000000000 +0200 @@ -3,6 +3,13 @@ Here is the full history of mistune v3. +Version 3.0.2 +------------- + +**Released on Sep 30, 2023** + +* Fix list parser to avoid RecursionError + Version 3.0.1 ------------- diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/mistune-3.0.1/docs/make.bat new/mistune-3.0.2/docs/make.bat --- old/mistune-3.0.1/docs/make.bat 2023-06-10 01:53:43.000000000 +0200 +++ new/mistune-3.0.2/docs/make.bat 1970-01-01 01:00:00.000000000 +0100 @@ -1,35 +0,0 @@ -@ECHO OFF - -pushd %~dp0 - -REM Command file for Sphinx documentation - -if "%SPHINXBUILD%" == "" ( - set SPHINXBUILD=sphinx-build -) -set SOURCEDIR=. -set BUILDDIR=_build - -if "%1" == "" goto help - -%SPHINXBUILD% >NUL 2>NUL -if errorlevel 9009 ( - echo. - echo.The 'sphinx-build' command was not found. Make sure you have Sphinx - echo.installed, then set the SPHINXBUILD environment variable to point - echo.to the full path of the 'sphinx-build' executable. Alternatively you - echo.may add the Sphinx directory to PATH. - echo. - echo.If you don't have Sphinx installed, grab it from - echo.http://sphinx-doc.org/ - exit /b 1 -) - -%SPHINXBUILD% -M %1 %SOURCEDIR% %BUILDDIR% %SPHINXOPTS% %O% -goto end - -:help -%SPHINXBUILD% -M help %SOURCEDIR% %BUILDDIR% %SPHINXOPTS% %O% - -:end -popd diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/mistune-3.0.1/docs/requirements.txt new/mistune-3.0.2/docs/requirements.txt --- old/mistune-3.0.1/docs/requirements.txt 1970-01-01 01:00:00.000000000 +0100 +++ new/mistune-3.0.2/docs/requirements.txt 2023-09-30 01:57:10.000000000 +0200 @@ -0,0 +1,4 @@ +sphinx==6.2.1 +sphinx-copybutton==0.5.2 +sphinx-design==0.4.1 +shibuya diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/mistune-3.0.1/docs/upgrade.rst new/mistune-3.0.2/docs/upgrade.rst --- old/mistune-3.0.1/docs/upgrade.rst 2023-06-10 01:53:43.000000000 +0200 +++ new/mistune-3.0.2/docs/upgrade.rst 2023-09-30 01:57:10.000000000 +0200 @@ -30,6 +30,16 @@ - table_cell(self, text, align=None, is_head=False) + table_cell(self, text, align=None, head=False) +For plugins: + +.. code-block:: diff + + - abbr(self, key, definition) + + abbr(self, text: str, title: str) + + - task_list_item(self, text: str, level: int, checked: bool) + + task_list_item(self, text: str, checked: bool) + AstRenderer ~~~~~~~~~~~ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/mistune-3.0.1/requirements-docs.txt new/mistune-3.0.2/requirements-docs.txt --- old/mistune-3.0.1/requirements-docs.txt 2023-06-10 01:53:43.000000000 +0200 +++ new/mistune-3.0.2/requirements-docs.txt 1970-01-01 01:00:00.000000000 +0100 @@ -1,2 +0,0 @@ -sphinx==5.3.0 -shibuya diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/mistune-3.0.1/serve-doc.py new/mistune-3.0.2/serve-doc.py --- old/mistune-3.0.1/serve-doc.py 2023-06-10 01:53:43.000000000 +0200 +++ new/mistune-3.0.2/serve-doc.py 2023-09-30 01:57:10.000000000 +0200 @@ -1,5 +1,5 @@ from livereload import Server, shell app = Server() -app.watch("docs/*.rst", shell("make docs"), delay=2) -app.serve(root="docs/_build/html/") +app.watch("docs", shell("make build-docs"), delay=2) +app.serve(root="build/_html/") diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/mistune-3.0.1/src/mistune/__init__.py new/mistune-3.0.2/src/mistune/__init__.py --- old/mistune-3.0.1/src/mistune/__init__.py 2023-06-10 01:53:43.000000000 +0200 +++ new/mistune-3.0.2/src/mistune/__init__.py 2023-09-30 01:57:10.000000000 +0200 @@ -77,5 +77,5 @@ 'html', 'create_markdown', 'markdown', ] -__version__ = '3.0.1' +__version__ = '3.0.2' __homepage__ = 'https://mistune.lepture.com/' diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/mistune-3.0.1/src/mistune/list_parser.py new/mistune-3.0.2/src/mistune/list_parser.py --- old/mistune-3.0.1/src/mistune/list_parser.py 2023-06-10 01:53:43.000000000 +0200 +++ new/mistune-3.0.2/src/mistune/list_parser.py 2023-09-30 01:57:10.000000000 +0200 @@ -146,6 +146,10 @@ ) state.cursor = m.end() + 1 break + + if tok_type == 'list': + break + tok_index = len(state.tokens) end_pos = block.parse_method(m, state) if end_pos: diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/mistune-3.0.1/src/mistune/toc.py new/mistune-3.0.2/src/mistune/toc.py --- old/mistune-3.0.1/src/mistune/toc.py 2023-06-10 01:53:43.000000000 +0200 +++ new/mistune-3.0.2/src/mistune/toc.py 2023-09-30 01:57:10.000000000 +0200 @@ -9,7 +9,7 @@ from mistune.toc import add_toc_hook, render_toc_ul md = mistune.create_markdown(...) - add_toc_hook(md, level, heading_id) + add_toc_hook(md) html, state = md.parse(text) toc_items = state.env['toc_items']