public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/python-myst-parser] rawhide: Update to 5.1.0 (rhbz#2476985)
@ 2026-07-07 13:46 Karolina Surma
0 siblings, 0 replies; only message in thread
From: Karolina Surma @ 2026-07-07 13:46 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/python-myst-parser
Branch : rawhide
Commit : 5403004365c653b46971efe19495ea2f6fd55557
Author : Karolina Surma <ksurma@redhat.com>
Date : 2026-07-07T11:21:43+02:00
Stats : +2/-650 in 3 file(s)
URL : https://src.fedoraproject.org/rpms/python-myst-parser/c/5403004365c653b46971efe19495ea2f6fd55557?branch=rawhide
Log:
Update to 5.1.0 (rhbz#2476985)
---
diff --git a/1090.patch b/1090.patch
deleted file mode 100644
index b648d56..0000000
--- a/1090.patch
+++ /dev/null
@@ -1,645 +0,0 @@
-From feb0253498c9bacee8e3a18bd7bd5d7c076185b6 Mon Sep 17 00:00:00 2001
-From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com>
-Date: Mon, 19 Jan 2026 11:56:56 +0000
-Subject: [PATCH 1/4] Initial plan
-
-
-From 0dc75f5aef5e302c3e889434d78e6f379464a62b Mon Sep 17 00:00:00 2001
-From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com>
-Date: Mon, 19 Jan 2026 12:04:12 +0000
-Subject: [PATCH 2/4] Convert normalize_doctree_xml to pytest fixture
-
-Co-authored-by: chrisjsewell <2997570+chrisjsewell@users.noreply.github.com>
----
- tests/conftest.py | 84 ++++++++++---------
- tests/test_html/test_html_to_nodes.py | 3 +-
- .../test_renderers/test_fixtures_docutils.py | 7 +-
- tests/test_renderers/test_fixtures_sphinx.py | 25 +++---
- .../test_renderers/test_include_directive.py | 3 +-
- tests/test_renderers/test_myst_config.py | 3 +-
- tests/test_renderers/test_myst_refs.py | 2 +-
- tests/test_sphinx/conftest.py | 3 +-
- tests/test_sphinx/test_sphinx_builds.py | 3 +-
- 9 files changed, 66 insertions(+), 67 deletions(-)
-
-diff --git a/tests/conftest.py b/tests/conftest.py
-index 7952e9f2..3e4d34c9 100644
---- a/tests/conftest.py
-+++ b/tests/conftest.py
-@@ -2,53 +2,59 @@
-
- import re
-
-+import pytest
- from docutils import __version_info__ as docutils_version_info
-
- DOCUTILS_0_22_PLUS = docutils_version_info >= (0, 22)
-
-
--def normalize_doctree_xml(text: str) -> str:
-+@pytest.fixture
-+def normalize_doctree_xml():
- """Normalize docutils XML output for cross-version compatibility.
-
- In docutils 0.22+, boolean attributes are serialized as "1"/"0"
- instead of "True"/"False". This function normalizes to the old format
- for consistent test fixtures.
- """
-- if DOCUTILS_0_22_PLUS:
-- # Normalize new format (1/0) to old format (1/0)
-- # Only replace when it's clearly a boolean attribute value
-- # Pattern: attribute="1" or attribute="0"
-- attrs = [
-- "force",
-- "glob",
-- "hidden",
-- "id_link",
-- "includehidden",
-- "inline",
-- "internal",
-- "is_div",
-- "linenos",
-- "multi_line_parameter_list",
-- "multi_line_trailing_comma",
-- "no-contents-entry",
-- "no-index",
-- "no-index-entry",
-- "no-typesetting",
-- "no-wrap",
-- "nocontentsentry",
-- "noindex",
-- "noindexentry",
-- "nowrap",
-- "refexplicit",
-- "refspecific",
-- "refwarn",
-- "sorted",
-- "titlesonly",
-- "toctree",
-- "translatable",
-- ]
-- text = re.sub(rf' ({"|".join(attrs)})="1"', r' \1="True"', text)
-- text = re.sub(rf' ({"|".join(attrs)})="0"', r' \1="False"', text)
-- # numbered is changed in math_block, but not in toctree, so we have to be more precise
-- text = re.sub(r' numbered="1" xml:space', r' numbered="True" xml:space', text)
-- return text
-+
-+ def _normalize(text: str) -> str:
-+ if DOCUTILS_0_22_PLUS:
-+ # Normalize new format (1/0) to old format (1/0)
-+ # Only replace when it's clearly a boolean attribute value
-+ # Pattern: attribute="1" or attribute="0"
-+ attrs = [
-+ "force",
-+ "glob",
-+ "hidden",
-+ "id_link",
-+ "includehidden",
-+ "inline",
-+ "internal",
-+ "is_div",
-+ "linenos",
-+ "multi_line_parameter_list",
-+ "multi_line_trailing_comma",
-+ "no-contents-entry",
-+ "no-index",
-+ "no-index-entry",
-+ "no-typesetting",
-+ "no-wrap",
-+ "nocontentsentry",
-+ "noindex",
-+ "noindexentry",
-+ "nowrap",
-+ "refexplicit",
-+ "refspecific",
-+ "refwarn",
-+ "sorted",
-+ "titlesonly",
-+ "toctree",
-+ "translatable",
-+ ]
-+ text = re.sub(rf' ({"|".join(attrs)})="1"', r' \1="True"', text)
-+ text = re.sub(rf' ({"|".join(attrs)})="0"', r' \1="False"', text)
-+ # numbered is changed in math_block, but not in toctree, so we have to be more precise
-+ text = re.sub(r' numbered="1" xml:space', r' numbered="True" xml:space', text)
-+ return text
-+
-+ return _normalize
-diff --git a/tests/test_html/test_html_to_nodes.py b/tests/test_html/test_html_to_nodes.py
-index 08423a79..d54f0f1f 100644
---- a/tests/test_html/test_html_to_nodes.py
-+++ b/tests/test_html/test_html_to_nodes.py
-@@ -6,7 +6,6 @@
-
- from myst_parser.config.main import MdParserConfig
- from myst_parser.mdit_to_docutils.html_to_nodes import html_to_nodes
--from tests.conftest import normalize_doctree_xml
-
- FIXTURE_PATH = Path(__file__).parent
-
-@@ -30,7 +29,7 @@ def _run_directive(name: str, first_line: str, content: str, position: int):
-
-
- @pytest.mark.param_file(FIXTURE_PATH / "html_to_nodes.md")
--def test_html_to_nodes(file_params, mock_renderer):
-+def test_html_to_nodes(file_params, mock_renderer, normalize_doctree_xml):
- output = nodes.container()
- output += html_to_nodes(file_params.content, line_number=0, renderer=mock_renderer)
- file_params.assert_expected(normalize_doctree_xml(output.pformat()), rstrip=True)
-diff --git a/tests/test_renderers/test_fixtures_docutils.py b/tests/test_renderers/test_fixtures_docutils.py
-index c46e51c7..910840f4 100644
---- a/tests/test_renderers/test_fixtures_docutils.py
-+++ b/tests/test_renderers/test_fixtures_docutils.py
-@@ -11,7 +11,6 @@
- from typing import Any
-
- import pytest
--from conftest import normalize_doctree_xml
- from docutils import __version_info__ as docutils_version
- from docutils.core import Publisher, publish_doctree
- from pytest_param_files import ParamTestData
-@@ -22,7 +21,7 @@
-
-
- @pytest.mark.param_file(FIXTURE_PATH / "docutil_syntax_elements.md")
--def test_syntax_elements(file_params: ParamTestData, monkeypatch):
-+def test_syntax_elements(file_params: ParamTestData, monkeypatch, normalize_doctree_xml):
- """Test conversion of Markdown to docutils AST (before transforms are applied)."""
-
- def _apply_transforms(self):
-@@ -47,7 +46,7 @@ def _apply_transforms(self):
-
-
- @pytest.mark.param_file(FIXTURE_PATH / "docutil_link_resolution.md")
--def test_link_resolution(file_params: ParamTestData):
-+def test_link_resolution(file_params: ParamTestData, normalize_doctree_xml):
- """Test that Markdown links resolve to the correct target, or give the correct warning."""
- settings = settings_from_cmdline(file_params.description)
- report_stream = StringIO()
-@@ -70,7 +69,7 @@ def test_link_resolution(file_params: ParamTestData):
-
-
- @pytest.mark.param_file(FIXTURE_PATH / "docutil_roles.md")
--def test_docutils_roles(file_params: ParamTestData, monkeypatch):
-+def test_docutils_roles(file_params: ParamTestData, monkeypatch, normalize_doctree_xml):
- """Test conversion of Markdown to docutils AST (before transforms are applied)."""
-
- def _apply_transforms(self):
-diff --git a/tests/test_renderers/test_fixtures_sphinx.py b/tests/test_renderers/test_fixtures_sphinx.py
-index c061febc..4f70040c 100644
---- a/tests/test_renderers/test_fixtures_sphinx.py
-+++ b/tests/test_renderers/test_fixtures_sphinx.py
-@@ -17,14 +17,13 @@
- from sphinx_pytest.plugin import CreateDoctree
-
- from myst_parser.mdit_to_docutils.sphinx_ import SphinxRenderer
--from tests.conftest import normalize_doctree_xml
-
- FIXTURE_PATH = Path(__file__).parent.joinpath("fixtures")
-
-
- @pytest.mark.param_file(FIXTURE_PATH / "sphinx_syntax_elements.md")
- def test_syntax_elements(
-- file_params: ParamTestData, sphinx_doctree: CreateDoctree, monkeypatch
-+ file_params: ParamTestData, sphinx_doctree: CreateDoctree, monkeypatch, normalize_doctree_xml
- ):
- sphinx_doctree.set_conf({"extensions": ["myst_parser"], "show_warning_types": True})
-
-@@ -52,7 +51,7 @@ def _apply_transforms(self):
-
-
- @pytest.mark.param_file(FIXTURE_PATH / "sphinx_link_resolution.md")
--def test_link_resolution(file_params: ParamTestData, sphinx_doctree: CreateDoctree):
-+def test_link_resolution(file_params: ParamTestData, sphinx_doctree: CreateDoctree, normalize_doctree_xml):
- sphinx_doctree.set_conf(
- {"extensions": ["myst_parser"], **settings_from_json(file_params.description)}
- )
-@@ -78,7 +77,7 @@ def settings_from_json(string: str | None):
-
-
- @pytest.mark.param_file(FIXTURE_PATH / "tables.md")
--def test_tables(file_params: ParamTestData, sphinx_doctree_no_tr: CreateDoctree):
-+def test_tables(file_params: ParamTestData, sphinx_doctree_no_tr: CreateDoctree, normalize_doctree_xml):
- sphinx_doctree_no_tr.set_conf({"extensions": ["myst_parser"]})
- result = sphinx_doctree_no_tr(file_params.content, "index.md")
- file_params.assert_expected(
-@@ -88,7 +87,7 @@ def test_tables(file_params: ParamTestData, sphinx_doctree_no_tr: CreateDoctree)
-
- @pytest.mark.param_file(FIXTURE_PATH / "directive_options.md")
- def test_directive_options(
-- file_params: ParamTestData, sphinx_doctree_no_tr: CreateDoctree
-+ file_params: ParamTestData, sphinx_doctree_no_tr: CreateDoctree, normalize_doctree_xml
- ):
- sphinx_doctree_no_tr.set_conf({"extensions": ["myst_parser"]})
- result = sphinx_doctree_no_tr(file_params.content, "index.md")
-@@ -99,7 +98,7 @@ def test_directive_options(
-
- @pytest.mark.param_file(FIXTURE_PATH / "sphinx_directives.md")
- def test_sphinx_directives(
-- file_params: ParamTestData, sphinx_doctree_no_tr: CreateDoctree
-+ file_params: ParamTestData, sphinx_doctree_no_tr: CreateDoctree, normalize_doctree_xml
- ):
- # TODO fix skipped directives
- # TODO test domain directives
-@@ -117,7 +116,7 @@ def test_sphinx_directives(
-
-
- @pytest.mark.param_file(FIXTURE_PATH / "sphinx_roles.md")
--def test_sphinx_roles(file_params: ParamTestData, sphinx_doctree_no_tr: CreateDoctree):
-+def test_sphinx_roles(file_params: ParamTestData, sphinx_doctree_no_tr: CreateDoctree, normalize_doctree_xml):
- if file_params.title.startswith("SKIP"):
- pytest.skip(file_params.title)
-
-@@ -140,7 +139,7 @@ def test_sphinx_roles(file_params: ParamTestData, sphinx_doctree_no_tr: CreateDo
-
-
- @pytest.mark.param_file(FIXTURE_PATH / "dollarmath.md")
--def test_dollarmath(file_params: ParamTestData, sphinx_doctree_no_tr: CreateDoctree):
-+def test_dollarmath(file_params: ParamTestData, sphinx_doctree_no_tr: CreateDoctree, normalize_doctree_xml):
- sphinx_doctree_no_tr.set_conf(
- {"extensions": ["myst_parser"], "myst_enable_extensions": ["dollarmath"]}
- )
-@@ -152,7 +151,7 @@ def test_dollarmath(file_params: ParamTestData, sphinx_doctree_no_tr: CreateDoct
-
- @pytest.mark.param_file(FIXTURE_PATH / "amsmath.md")
- def test_amsmath(
-- file_params: ParamTestData, sphinx_doctree_no_tr: CreateDoctree, monkeypatch
-+ file_params: ParamTestData, sphinx_doctree_no_tr: CreateDoctree, monkeypatch, normalize_doctree_xml
- ):
- monkeypatch.setattr(SphinxRenderer, "_random_label", lambda self: "mock-uuid")
- sphinx_doctree_no_tr.set_conf(
-@@ -166,7 +165,7 @@ def test_amsmath(
-
- @pytest.mark.param_file(FIXTURE_PATH / "containers.md")
- def test_containers(
-- file_params: ParamTestData, sphinx_doctree_no_tr: CreateDoctree, monkeypatch
-+ file_params: ParamTestData, sphinx_doctree_no_tr: CreateDoctree, monkeypatch, normalize_doctree_xml
- ):
- monkeypatch.setattr(SphinxRenderer, "_random_label", lambda self: "mock-uuid")
- sphinx_doctree_no_tr.set_conf(
-@@ -180,7 +179,7 @@ def test_containers(
-
- @pytest.mark.param_file(FIXTURE_PATH / "eval_rst.md")
- def test_evalrst_elements(
-- file_params: ParamTestData, sphinx_doctree_no_tr: CreateDoctree
-+ file_params: ParamTestData, sphinx_doctree_no_tr: CreateDoctree, normalize_doctree_xml
- ):
- sphinx_doctree_no_tr.set_conf({"extensions": ["myst_parser"]})
- result = sphinx_doctree_no_tr(file_params.content, "index.md")
-@@ -191,7 +190,7 @@ def test_evalrst_elements(
-
- @pytest.mark.param_file(FIXTURE_PATH / "definition_lists.md")
- def test_definition_lists(
-- file_params: ParamTestData, sphinx_doctree_no_tr: CreateDoctree
-+ file_params: ParamTestData, sphinx_doctree_no_tr: CreateDoctree, normalize_doctree_xml
- ):
- sphinx_doctree_no_tr.set_conf(
- {"extensions": ["myst_parser"], "myst_enable_extensions": ["deflist"]}
-@@ -203,7 +202,7 @@ def test_definition_lists(
-
-
- @pytest.mark.param_file(FIXTURE_PATH / "attributes.md")
--def test_attributes(file_params: ParamTestData, sphinx_doctree_no_tr: CreateDoctree):
-+def test_attributes(file_params: ParamTestData, sphinx_doctree_no_tr: CreateDoctree, normalize_doctree_xml):
- sphinx_doctree_no_tr.set_conf(
- {
- "extensions": ["myst_parser"],
-diff --git a/tests/test_renderers/test_include_directive.py b/tests/test_renderers/test_include_directive.py
-index e7065747..9f03d633 100644
---- a/tests/test_renderers/test_include_directive.py
-+++ b/tests/test_renderers/test_include_directive.py
-@@ -3,7 +3,6 @@
- from pathlib import Path
-
- import pytest
--from conftest import normalize_doctree_xml
- from docutils.core import publish_doctree
-
- from myst_parser.parsers.docutils_ import Parser
-@@ -12,7 +11,7 @@
-
-
- @pytest.mark.param_file(FIXTURE_PATH / "mock_include.md")
--def test_render(file_params, tmp_path, monkeypatch):
-+def test_render(file_params, tmp_path, monkeypatch, normalize_doctree_xml):
- monkeypatch.chdir(tmp_path)
-
- tmp_path.joinpath("other.md").write_text("a\nb\nc")
-diff --git a/tests/test_renderers/test_myst_config.py b/tests/test_renderers/test_myst_config.py
-index 9a276cce..5805bd13 100644
---- a/tests/test_renderers/test_myst_config.py
-+++ b/tests/test_renderers/test_myst_config.py
-@@ -5,7 +5,6 @@
- from pathlib import Path
-
- import pytest
--from conftest import normalize_doctree_xml
- from docutils import __version_info__ as docutils_version
- from docutils.core import Publisher, publish_string
- from pytest_param_files import ParamTestData
-@@ -17,7 +16,7 @@
-
-
- @pytest.mark.param_file(FIXTURE_PATH / "myst-config.txt")
--def test_cmdline(file_params: ParamTestData):
-+def test_cmdline(file_params: ParamTestData, normalize_doctree_xml):
- """The description is parsed as a docutils commandline"""
- if file_params.title == "attrs_image" and docutils_version < (0, 22):
- # loose system messages are also output to ast in 0.22 https://github.com/live-clones/docutils/commit/dc4e16315b4fbe391417a6f7aad215b9389a9c74
-diff --git a/tests/test_renderers/test_myst_refs.py b/tests/test_renderers/test_myst_refs.py
-index fcdfd619..b9c74bf0 100644
---- a/tests/test_renderers/test_myst_refs.py
-+++ b/tests/test_renderers/test_myst_refs.py
-@@ -1,7 +1,6 @@
- import sys
-
- import pytest
--from conftest import normalize_doctree_xml
- from sphinx.util.console import strip_colors
- from sphinx_pytest.plugin import CreateDoctree
-
-@@ -42,6 +41,7 @@ def test_parse(
- should_warn: bool,
- sphinx_doctree: CreateDoctree,
- file_regression,
-+ normalize_doctree_xml,
- ):
- sphinx_doctree.set_conf({"extensions": ["myst_parser"], "show_warning_types": True})
- result = sphinx_doctree(text, "index.md")
-diff --git a/tests/test_sphinx/conftest.py b/tests/test_sphinx/conftest.py
-index ddace0d6..87bf6110 100644
---- a/tests/test_sphinx/conftest.py
-+++ b/tests/test_sphinx/conftest.py
-@@ -41,7 +41,6 @@ def test_basic(app, status, warning, get_sphinx_app_output):
- from docutils import nodes
-
- from myst_parser._compat import findall
--from tests.conftest import normalize_doctree_xml
-
- SOURCE_DIR = os.path.abspath(os.path.join(os.path.dirname(__file__), "sourcedirs"))
-
-@@ -95,7 +94,7 @@ def read(
-
-
- @pytest.fixture
--def get_sphinx_app_doctree(file_regression):
-+def get_sphinx_app_doctree(file_regression, normalize_doctree_xml):
- def read(
- app,
- docname="index",
-diff --git a/tests/test_sphinx/test_sphinx_builds.py b/tests/test_sphinx/test_sphinx_builds.py
-index 0276b247..4ac336e4 100644
---- a/tests/test_sphinx/test_sphinx_builds.py
-+++ b/tests/test_sphinx/test_sphinx_builds.py
-@@ -13,8 +13,6 @@
- import pytest
- from sphinx.util.console import strip_colors
-
--from tests.conftest import normalize_doctree_xml
--
- SOURCE_DIR = os.path.abspath(os.path.join(os.path.dirname(__file__), "sourcedirs"))
-
-
-@@ -433,6 +431,7 @@ def test_substitutions(
- get_sphinx_app_doctree,
- get_sphinx_app_output,
- file_regression,
-+ normalize_doctree_xml,
- ):
- """test setting addition configuration values."""
- app.build()
-
-From 677d1acee2e00a45e2aa7b52ec871b3415b5666d Mon Sep 17 00:00:00 2001
-From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com>
-Date: Mon, 19 Jan 2026 12:06:34 +0000
-Subject: [PATCH 3/4] Fix remaining test functions missing
- normalize_doctree_xml fixture
-
-Co-authored-by: chrisjsewell <2997570+chrisjsewell@users.noreply.github.com>
----
- tests/test_renderers/test_fixtures_docutils.py | 4 ++--
- 1 file changed, 2 insertions(+), 2 deletions(-)
-
-diff --git a/tests/test_renderers/test_fixtures_docutils.py b/tests/test_renderers/test_fixtures_docutils.py
-index 910840f4..b53e29e1 100644
---- a/tests/test_renderers/test_fixtures_docutils.py
-+++ b/tests/test_renderers/test_fixtures_docutils.py
-@@ -89,7 +89,7 @@ def _apply_transforms(self):
-
-
- @pytest.mark.param_file(FIXTURE_PATH / "docutil_directives.md")
--def test_docutils_directives(file_params: ParamTestData, monkeypatch):
-+def test_docutils_directives(file_params: ParamTestData, monkeypatch, normalize_doctree_xml):
- """Test output of docutils directives."""
- if "SKIP" in file_params.description: # line-block directive not yet supported
- pytest.skip(file_params.description)
-@@ -111,7 +111,7 @@ def _apply_transforms(self):
-
-
- @pytest.mark.param_file(FIXTURE_PATH / "docutil_syntax_extensions.txt")
--def test_syntax_extensions(file_params: ParamTestData):
-+def test_syntax_extensions(file_params: ParamTestData, normalize_doctree_xml):
- """The description is parsed as a docutils commandline"""
- settings = settings_from_cmdline(file_params.description)
- report_stream = StringIO()
-
-From dab28f2cdec57c4633c2391431936eb17f526b2f Mon Sep 17 00:00:00 2001
-From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com>
-Date: Mon, 19 Jan 2026 12:15:16 +0000
-Subject: [PATCH 4/4] Apply ruff formatting to fix pre-commit
-
-Co-authored-by: chrisjsewell <2997570+chrisjsewell@users.noreply.github.com>
----
- tests/conftest.py | 4 +-
- .../test_renderers/test_fixtures_docutils.py | 8 ++-
- tests/test_renderers/test_fixtures_sphinx.py | 59 +++++++++++++++----
- 3 files changed, 56 insertions(+), 15 deletions(-)
-
-diff --git a/tests/conftest.py b/tests/conftest.py
-index 3e4d34c9..5602cd41 100644
---- a/tests/conftest.py
-+++ b/tests/conftest.py
-@@ -54,7 +54,9 @@ def _normalize(text: str) -> str:
- text = re.sub(rf' ({"|".join(attrs)})="1"', r' \1="True"', text)
- text = re.sub(rf' ({"|".join(attrs)})="0"', r' \1="False"', text)
- # numbered is changed in math_block, but not in toctree, so we have to be more precise
-- text = re.sub(r' numbered="1" xml:space', r' numbered="True" xml:space', text)
-+ text = re.sub(
-+ r' numbered="1" xml:space', r' numbered="True" xml:space', text
-+ )
- return text
-
- return _normalize
-diff --git a/tests/test_renderers/test_fixtures_docutils.py b/tests/test_renderers/test_fixtures_docutils.py
-index b53e29e1..4988f078 100644
---- a/tests/test_renderers/test_fixtures_docutils.py
-+++ b/tests/test_renderers/test_fixtures_docutils.py
-@@ -21,7 +21,9 @@
-
-
- @pytest.mark.param_file(FIXTURE_PATH / "docutil_syntax_elements.md")
--def test_syntax_elements(file_params: ParamTestData, monkeypatch, normalize_doctree_xml):
-+def test_syntax_elements(
-+ file_params: ParamTestData, monkeypatch, normalize_doctree_xml
-+):
- """Test conversion of Markdown to docutils AST (before transforms are applied)."""
-
- def _apply_transforms(self):
-@@ -89,7 +91,9 @@ def _apply_transforms(self):
-
-
- @pytest.mark.param_file(FIXTURE_PATH / "docutil_directives.md")
--def test_docutils_directives(file_params: ParamTestData, monkeypatch, normalize_doctree_xml):
-+def test_docutils_directives(
-+ file_params: ParamTestData, monkeypatch, normalize_doctree_xml
-+):
- """Test output of docutils directives."""
- if "SKIP" in file_params.description: # line-block directive not yet supported
- pytest.skip(file_params.description)
-diff --git a/tests/test_renderers/test_fixtures_sphinx.py b/tests/test_renderers/test_fixtures_sphinx.py
-index 4f70040c..4a8e1710 100644
---- a/tests/test_renderers/test_fixtures_sphinx.py
-+++ b/tests/test_renderers/test_fixtures_sphinx.py
-@@ -23,7 +23,10 @@
-
- @pytest.mark.param_file(FIXTURE_PATH / "sphinx_syntax_elements.md")
- def test_syntax_elements(
-- file_params: ParamTestData, sphinx_doctree: CreateDoctree, monkeypatch, normalize_doctree_xml
-+ file_params: ParamTestData,
-+ sphinx_doctree: CreateDoctree,
-+ monkeypatch,
-+ normalize_doctree_xml,
- ):
- sphinx_doctree.set_conf({"extensions": ["myst_parser"], "show_warning_types": True})
-
-@@ -51,7 +54,9 @@ def _apply_transforms(self):
-
-
- @pytest.mark.param_file(FIXTURE_PATH / "sphinx_link_resolution.md")
--def test_link_resolution(file_params: ParamTestData, sphinx_doctree: CreateDoctree, normalize_doctree_xml):
-+def test_link_resolution(
-+ file_params: ParamTestData, sphinx_doctree: CreateDoctree, normalize_doctree_xml
-+):
- sphinx_doctree.set_conf(
- {"extensions": ["myst_parser"], **settings_from_json(file_params.description)}
- )
-@@ -77,7 +82,11 @@ def settings_from_json(string: str | None):
-
-
- @pytest.mark.param_file(FIXTURE_PATH / "tables.md")
--def test_tables(file_params: ParamTestData, sphinx_doctree_no_tr: CreateDoctree, normalize_doctree_xml):
-+def test_tables(
-+ file_params: ParamTestData,
-+ sphinx_doctree_no_tr: CreateDoctree,
-+ normalize_doctree_xml,
-+):
- sphinx_doctree_no_tr.set_conf({"extensions": ["myst_parser"]})
- result = sphinx_doctree_no_tr(file_params.content, "index.md")
- file_params.assert_expected(
-@@ -87,7 +96,9 @@ def test_tables(file_params: ParamTestData, sphinx_doctree_no_tr: CreateDoctree,
-
- @pytest.mark.param_file(FIXTURE_PATH / "directive_options.md")
- def test_directive_options(
-- file_params: ParamTestData, sphinx_doctree_no_tr: CreateDoctree, normalize_doctree_xml
-+ file_params: ParamTestData,
-+ sphinx_doctree_no_tr: CreateDoctree,
-+ normalize_doctree_xml,
- ):
- sphinx_doctree_no_tr.set_conf({"extensions": ["myst_parser"]})
- result = sphinx_doctree_no_tr(file_params.content, "index.md")
-@@ -98,7 +109,9 @@ def test_directive_options(
-
- @pytest.mark.param_file(FIXTURE_PATH / "sphinx_directives.md")
- def test_sphinx_directives(
-- file_params: ParamTestData, sphinx_doctree_no_tr: CreateDoctree, normalize_doctree_xml
-+ file_params: ParamTestData,
-+ sphinx_doctree_no_tr: CreateDoctree,
-+ normalize_doctree_xml,
- ):
- # TODO fix skipped directives
- # TODO test domain directives
-@@ -116,7 +129,11 @@ def test_sphinx_directives(
-
-
- @pytest.mark.param_file(FIXTURE_PATH / "sphinx_roles.md")
--def test_sphinx_roles(file_params: ParamTestData, sphinx_doctree_no_tr: CreateDoctree, normalize_doctree_xml):
-+def test_sphinx_roles(
-+ file_params: ParamTestData,
-+ sphinx_doctree_no_tr: CreateDoctree,
-+ normalize_doctree_xml,
-+):
- if file_params.title.startswith("SKIP"):
- pytest.skip(file_params.title)
-
-@@ -139,7 +156,11 @@ def test_sphinx_roles(file_params: ParamTestData, sphinx_doctree_no_tr: CreateDo
-
-
- @pytest.mark.param_file(FIXTURE_PATH / "dollarmath.md")
--def test_dollarmath(file_params: ParamTestData, sphinx_doctree_no_tr: CreateDoctree, normalize_doctree_xml):
-+def test_dollarmath(
-+ file_params: ParamTestData,
-+ sphinx_doctree_no_tr: CreateDoctree,
-+ normalize_doctree_xml,
-+):
- sphinx_doctree_no_tr.set_conf(
- {"extensions": ["myst_parser"], "myst_enable_extensions": ["dollarmath"]}
- )
-@@ -151,7 +172,10 @@ def test_dollarmath(file_params: ParamTestData, sphinx_doctree_no_tr: CreateDoct
-
- @pytest.mark.param_file(FIXTURE_PATH / "amsmath.md")
- def test_amsmath(
-- file_params: ParamTestData, sphinx_doctree_no_tr: CreateDoctree, monkeypatch, normalize_doctree_xml
-+ file_params: ParamTestData,
-+ sphinx_doctree_no_tr: CreateDoctree,
-+ monkeypatch,
-+ normalize_doctree_xml,
- ):
- monkeypatch.setattr(SphinxRenderer, "_random_label", lambda self: "mock-uuid")
- sphinx_doctree_no_tr.set_conf(
-@@ -165,7 +189,10 @@ def test_amsmath(
-
- @pytest.mark.param_file(FIXTURE_PATH / "containers.md")
- def test_containers(
-- file_params: ParamTestData, sphinx_doctree_no_tr: CreateDoctree, monkeypatch, normalize_doctree_xml
-+ file_params: ParamTestData,
-+ sphinx_doctree_no_tr: CreateDoctree,
-+ monkeypatch,
-+ normalize_doctree_xml,
- ):
- monkeypatch.setattr(SphinxRenderer, "_random_label", lambda self: "mock-uuid")
- sphinx_doctree_no_tr.set_conf(
-@@ -179,7 +206,9 @@ def test_containers(
-
- @pytest.mark.param_file(FIXTURE_PATH / "eval_rst.md")
- def test_evalrst_elements(
-- file_params: ParamTestData, sphinx_doctree_no_tr: CreateDoctree, normalize_doctree_xml
-+ file_params: ParamTestData,
-+ sphinx_doctree_no_tr: CreateDoctree,
-+ normalize_doctree_xml,
- ):
- sphinx_doctree_no_tr.set_conf({"extensions": ["myst_parser"]})
- result = sphinx_doctree_no_tr(file_params.content, "index.md")
-@@ -190,7 +219,9 @@ def test_evalrst_elements(
-
- @pytest.mark.param_file(FIXTURE_PATH / "definition_lists.md")
- def test_definition_lists(
-- file_params: ParamTestData, sphinx_doctree_no_tr: CreateDoctree, normalize_doctree_xml
-+ file_params: ParamTestData,
-+ sphinx_doctree_no_tr: CreateDoctree,
-+ normalize_doctree_xml,
- ):
- sphinx_doctree_no_tr.set_conf(
- {"extensions": ["myst_parser"], "myst_enable_extensions": ["deflist"]}
-@@ -202,7 +233,11 @@ def test_definition_lists(
-
-
- @pytest.mark.param_file(FIXTURE_PATH / "attributes.md")
--def test_attributes(file_params: ParamTestData, sphinx_doctree_no_tr: CreateDoctree, normalize_doctree_xml):
-+def test_attributes(
-+ file_params: ParamTestData,
-+ sphinx_doctree_no_tr: CreateDoctree,
-+ normalize_doctree_xml,
-+):
- sphinx_doctree_no_tr.set_conf(
- {
- "extensions": ["myst_parser"],
diff --git a/python-myst-parser.spec b/python-myst-parser.spec
index 4565472..48cb7d8 100644
--- a/python-myst-parser.spec
+++ b/python-myst-parser.spec
@@ -4,7 +4,7 @@
%global pypi_name myst-parser
Name: python-%{pypi_name}
-Version: 5.0.0
+Version: 5.1.0
Release: %autorelease
Summary: A commonmark compliant parser, with bridges to docutils & sphinx
@@ -13,9 +13,6 @@ License: MIT
URL: https://github.com/executablebooks/MyST-Parser
Source0: %{url}/archive/v%{version}/%{pypi_name}-%{version}.tar.gz
-# Run tests successfully
-Patch: https://github.com/executablebooks/MyST-Parser/pull/1090.patch
-
BuildArch: noarch
BuildRequires: python3-devel
diff --git a/sources b/sources
index f384adb..2307af5 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (myst-parser-5.0.0.tar.gz) = 765385bcb0716fa8d9a42c6860846d504e75b1aa3bc32b4a2cfd1f1717555872e5c35da687a47ae7ece2043aed37d84ee9f0609e078f250e640149a9bb7487a8
+SHA512 (myst-parser-5.1.0.tar.gz) = db3c9b2173f0e3ca1c53053c4b5150291436dc50203e6c93660d0b9aafb2e0b27f06765dfb18b1147ec5629ca11a5fcb8b83862783c58099ee214c4d4b9a60a0
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-07-07 13:46 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-07-07 13:46 [rpms/python-myst-parser] rawhide: Update to 5.1.0 (rhbz#2476985) Karolina Surma
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox