Marcel Telka
2024-03-15 ac34c00012bd4e9ed61ed2f4029e4898ab542772
python/Markdown: update to 3.6

4 files modified
121 ■■■■ changed files
components/python/Markdown/Makefile 6 ●●●●● patch | view | raw | blame | history
components/python/Markdown/patches/02-test-verbose.patch 4 ●●●● patch | view | raw | blame | history
components/python/Markdown/pkg5 2 ●●● patch | view | raw | blame | history
components/python/Markdown/test/results-all.master 109 ●●●● patch | view | raw | blame | history
components/python/Markdown/Makefile
@@ -19,13 +19,11 @@
include ../../../make-rules/shared-macros.mk
COMPONENT_NAME =        Markdown
HUMAN_VERSION =            3.5.2
HUMAN_VERSION =            3.6
COMPONENT_SUMMARY =        Markdown - Python implementation of John Gruber's Markdown.
COMPONENT_PROJECT_URL =        https://Python-Markdown.github.io/
COMPONENT_ARCHIVE_URL =        \
    https://files.pythonhosted.org/packages/11/28/c5441a6642681d92de56063fa7984df56f783d3f1eba518dc3e7a253b606/Markdown-3.5.2.tar.gz
COMPONENT_ARCHIVE_HASH =    \
    sha256:e1ac7b3dc550ee80e602e71c1d168002f062e49f1b11e26a36264dafd4df2ef8
    sha256:ed4f41f6daecbeeb96e576ce414c41d2d876daa9a16cb35fa8ed8c2ddfad0224
COMPONENT_LICENSE =        BSD-3-Clause
COMPONENT_LICENSE_FILE =    LICENSE.md
components/python/Markdown/patches/02-test-verbose.patch
@@ -1,5 +1,5 @@
--- Markdown-3.5.2/tox.ini.orig
+++ Markdown-3.5.2/tox.ini
--- Markdown-3.6/tox.ini.orig
+++ Markdown-3.6/tox.ini
@@ -7,7 +7,7 @@
 deps = pytidylib
 allowlist_externals = coverage
components/python/Markdown/pkg5
@@ -10,4 +10,4 @@
        "library/python/markdown-39"
    ],
    "name": "Markdown"
}
}
components/python/Markdown/test/results-all.master
@@ -132,10 +132,6 @@
testXHTMLOutput (test_apis.testSerializers) ... ok
testXhtml (test_apis.testSerializers)
" Test XHTML serialization. ... ok
testNestedAbbr (test_extensions.TestAbbr)
Test Nested Abbreviations. ... ok
testSimpleAbbr (test_extensions.TestAbbr)
Test Abbreviations. ... ok
testRE (test_extensions.TestAdmonition) ... ok
testConfigAsKwargsOnInit (test_extensions.TestExtensionClass) ... ok
testGetConfig (test_extensions.TestExtensionClass) ... ok
@@ -155,43 +151,6 @@
testYamlMetaData (test_extensions.TestMetaData)
Test metadata specified as simple YAML. ... ok
testCustomSubstitutions (test_extensions.TestSmarty) ... ok
testAlternateMarker (test_extensions.TestTOC)
Test TOC with user defined marker. ... ok
testBaseLevel (test_extensions.TestTOC)
Test Header Base Level. ... ok
testDisabledMarker (test_extensions.TestTOC)
Test TOC with disabled marker. ... ok
testHeaderInlineMarkup (test_extensions.TestTOC)
Test Headers with inline markup. ... ok
testHtmlEntities (test_extensions.TestTOC)
Test Headers with HTML Entities. ... ok
testHtmlSpecialChars (test_extensions.TestTOC)
Test Headers with HTML special characters. ... ok
testInlineMarkupPermalink (test_extensions.TestTOC)
Test TOC `permalink` with headers containing markup. ... ok
testInlineMarkupPermalinkLeading (test_extensions.TestTOC)
Test TOC `permalink_leading` with headers containing markup. ... ok
testMarker (test_extensions.TestTOC)
Test TOC with a Marker. ... ok
testNoMarker (test_extensions.TestTOC)
Test TOC without a Marker. ... ok
testPermalink (test_extensions.TestTOC)
Test TOC `permalink` feature. ... ok
testPermalinkLeading (test_extensions.TestTOC)
Test TOC `permalink` with `permalink_leading` option. ... ok
testRawHtml (test_extensions.TestTOC)
Test Headers with raw HTML. ... ok
testReset (test_extensions.TestTOC)
Test TOC Reset. ... ok
testTitle (test_extensions.TestTOC)
Test TOC Title. ... ok
testTocInHeaders (test_extensions.TestTOC) ... ok
testUniqueFunc (test_extensions.TestTOC)
Test 'unique' function. ... ok
testUniqueIds (test_extensions.TestTOC)
Test Unique IDs. ... ok
testWithAttrList (test_extensions.TestTOC)
Test TOC with `attr_list` Extension. ... ok
testBasicWikilinks (test_extensions.TestWikiLinks)
Test `[[wikilinks]]`. ... ok
testComplexSettings (test_extensions.TestWikiLinks)
@@ -568,12 +527,21 @@
test_paragraphs_CR_LF (test_syntax.blocks.test_paragraphs.TestParagraphBlocks) ... ok
test_paragraphs_LF (test_syntax.blocks.test_paragraphs.TestParagraphBlocks) ... ok
test_simple_paragraph (test_syntax.blocks.test_paragraphs.TestParagraphBlocks) ... ok
test_header_and_paragraph_no_blank_line_loose_list (test_syntax.blocks.test_ul.TestUnorderedLists) ... ok
test_header_and_paragraph_no_blank_line_loose_list_no_indent (test_syntax.blocks.test_ul.TestUnorderedLists) ... ok
test_header_and_paragraph_no_blank_line_tight_list (test_syntax.blocks.test_ul.TestUnorderedLists) ... skipped 'This behaves as a loose list in Python-Markdown'
test_header_and_paragraph_no_blank_line_tight_list_no_indent (test_syntax.blocks.test_ul.TestUnorderedLists) ... skipped 'This behaves as a loose list in Python-Markdown'
test_abbr_bracket (test_syntax.extensions.test_abbr.TestAbbr) ... ok
test_abbr_carrot (test_syntax.extensions.test_abbr.TestAbbr) ... ok
test_abbr_double_quoted (test_syntax.extensions.test_abbr.TestAbbr) ... ok
test_abbr_extra_space (test_syntax.extensions.test_abbr.TestAbbr) ... ok
test_abbr_hyphen (test_syntax.extensions.test_abbr.TestAbbr) ... ok
test_abbr_ignore_backslash (test_syntax.extensions.test_abbr.TestAbbr) ... ok
test_abbr_ignore_unmatched_case (test_syntax.extensions.test_abbr.TestAbbr) ... ok
test_abbr_line_break (test_syntax.extensions.test_abbr.TestAbbr) ... ok
test_abbr_lower (test_syntax.extensions.test_abbr.TestAbbr) ... ok
test_abbr_multiple (test_syntax.extensions.test_abbr.TestAbbr) ... ok
test_abbr_nested (test_syntax.extensions.test_abbr.TestAbbr) ... ok
test_abbr_no_blank_Lines (test_syntax.extensions.test_abbr.TestAbbr) ... ok
test_abbr_no_space (test_syntax.extensions.test_abbr.TestAbbr) ... ok
test_abbr_override (test_syntax.extensions.test_abbr.TestAbbr) ... ok
@@ -588,8 +556,14 @@
test_with_complex_lists (test_syntax.extensions.test_admonition.TestAdmonition) ... ok
test_with_lists (test_syntax.extensions.test_admonition.TestAdmonition) ... ok
test_with_preceding_text (test_syntax.extensions.test_admonition.TestAdmonition) ... ok
test_empty_list (test_syntax.extensions.test_attr_list.TestAttrList) ... ok
test_curly_after_block (test_syntax.extensions.test_attr_list.TestAttrList) ... ok
test_curly_after_inline (test_syntax.extensions.test_attr_list.TestAttrList) ... ok
test_curly_in_double_quote (test_syntax.extensions.test_attr_list.TestAttrList) ... ok
test_curly_in_single_quote (test_syntax.extensions.test_attr_list.TestAttrList) ... ok
test_empty_attr_list (test_syntax.extensions.test_attr_list.TestAttrList) ... ok
test_extra_eq_gets_ignored_inside_curly_inline (test_syntax.extensions.test_attr_list.TestAttrList) ... ok
test_table_td (test_syntax.extensions.test_attr_list.TestAttrList) ... ok
test_unclosed_quote_ignored (test_syntax.extensions.test_attr_list.TestAttrList) ... ok
test_codehilite_bad_lang (test_syntax.extensions.test_code_hilite.TestCodeHiliteClass) ... skipped 'Pygments== is required'
test_codehilite_defaults (test_syntax.extensions.test_code_hilite.TestCodeHiliteClass) ... skipped 'Pygments== is required'
test_codehilite_guess_lang (test_syntax.extensions.test_code_hilite.TestCodeHiliteClass) ... skipped 'Pygments== is required'
@@ -637,7 +611,9 @@
test_def_list_with_ol (test_syntax.extensions.test_def_list.TestDefList) ... ok
test_def_list_with_ul (test_syntax.extensions.test_def_list.TestDefList) ... ok
testBasicFence (test_syntax.extensions.test_fenced_code.TestFencedCode) ... ok
testFencedCodeCurlyInAttrs (test_syntax.extensions.test_fenced_code.TestFencedCode) ... ok
testFencedCodeEscapedAttrs (test_syntax.extensions.test_fenced_code.TestFencedCode) ... ok
testFencedCodeMismatchedCurlyInAttrs (test_syntax.extensions.test_fenced_code.TestFencedCode) ... ok
testFencedIdAndLangAndClassInAttr (test_syntax.extensions.test_fenced_code.TestFencedCode) ... ok
testFencedIdAndLangInAttr (test_syntax.extensions.test_fenced_code.TestFencedCode) ... ok
testFencedIdInAttr (test_syntax.extensions.test_fenced_code.TestFencedCode) ... ok
@@ -875,6 +851,7 @@
test_horizontal_rule (test_syntax.extensions.test_smarty.TestSmarty) ... ok
test_wrapping_line (test_syntax.extensions.test_smarty.TestSmarty) ... ok
test_years (test_syntax.extensions.test_smarty.TestSmarty) ... ok
test_smarty_and_toc (test_syntax.extensions.test_smarty.TestSmartyAndToc) ... ok
test_angled_quotes (test_syntax.extensions.test_smarty.TestSmartyAngledQuotes) ... ok
test_custom_substitutions (test_syntax.extensions.test_smarty.TestSmartyCustomSubstitutions) ... ok
test_align_columns (test_syntax.extensions.test_tables.TestTableBlocks) ... ok
@@ -894,11 +871,18 @@
test_styles_in_tables (test_syntax.extensions.test_tables.TestTableBlocks) ... ok
test_three_columns (test_syntax.extensions.test_tables.TestTableBlocks) ... ok
test_three_spaces_prefix (test_syntax.extensions.test_tables.TestTableBlocks) ... ok
testAlternateTOCMarker (test_syntax.extensions.test_toc.TestTOC) ... ok
testAnchorLink (test_syntax.extensions.test_toc.TestTOC) ... ok
testAnchorLinkWithCustomClass (test_syntax.extensions.test_toc.TestTOC) ... ok
testAnchorLinkWithCustomClasses (test_syntax.extensions.test_toc.TestTOC) ... ok
testAnchorLinkWithDoubleInlineCode (test_syntax.extensions.test_toc.TestTOC) ... ok
testAnchorLinkWithSingleInlineCode (test_syntax.extensions.test_toc.TestTOC) ... ok
testAutoLinkEmail (test_syntax.extensions.test_toc.TestTOC) ... ok
testDisabledTOCMarker (test_syntax.extensions.test_toc.TestTOC) ... ok
testHeaderInlineMarkup (test_syntax.extensions.test_toc.TestTOC) ... ok
testHeadingRemoveFootnoteRef (test_syntax.extensions.test_toc.TestTOC) ... ok
testHtmlEntitiesInTOC (test_syntax.extensions.test_toc.TestTOC) ... ok
testHtmlSpecialCharsInTOC (test_syntax.extensions.test_toc.TestTOC) ... ok
testMaxLevel (test_syntax.extensions.test_toc.TestTOC) ... ok
testMaxLevelwithBaseLevel (test_syntax.extensions.test_toc.TestTOC) ... ok
testMinMaxLevel (test_syntax.extensions.test_toc.TestTOC) ... ok
@@ -906,6 +890,7 @@
testMinMaxLevelwithBaseLevel (test_syntax.extensions.test_toc.TestTOC) ... ok
testMinMaxLevelwithPermalink (test_syntax.extensions.test_toc.TestTOC) ... ok
testNl2brCompatibility (test_syntax.extensions.test_toc.TestTOC) ... ok
testNoTOCMarker (test_syntax.extensions.test_toc.TestTOC) ... ok
testPermalink (test_syntax.extensions.test_toc.TestTOC) ... ok
testPermalinkWithCustomClass (test_syntax.extensions.test_toc.TestTOC) ... ok
testPermalinkWithCustomClasses (test_syntax.extensions.test_toc.TestTOC) ... ok
@@ -917,12 +902,36 @@
testPermalinkWithSingleInlineCode (test_syntax.extensions.test_toc.TestTOC) ... ok
testPermalinkWithUnicodeInID (test_syntax.extensions.test_toc.TestTOC) ... ok
testPermalinkWithUnicodeTitle (test_syntax.extensions.test_toc.TestTOC) ... ok
testRawHtmlInTOC (test_syntax.extensions.test_toc.TestTOC) ... ok
testTOCBaseLevel (test_syntax.extensions.test_toc.TestTOC) ... ok
testTOCInlineMarkupPermalink (test_syntax.extensions.test_toc.TestTOC) ... ok
testTOCInlineMarkupPermalinkLeading (test_syntax.extensions.test_toc.TestTOC) ... ok
testTOCMarker (test_syntax.extensions.test_toc.TestTOC) ... ok
testTOCPermalink (test_syntax.extensions.test_toc.TestTOC) ... ok
testTOCPermalinkLeading (test_syntax.extensions.test_toc.TestTOC) ... ok
testTOCReset (test_syntax.extensions.test_toc.TestTOC) ... ok
testTOCTitle (test_syntax.extensions.test_toc.TestTOC) ... ok
testTOCUniqueFunc (test_syntax.extensions.test_toc.TestTOC) ... ok
testTOCWithCustomClass (test_syntax.extensions.test_toc.TestTOC) ... ok
testTOCWithCustomClasses (test_syntax.extensions.test_toc.TestTOC) ... ok
testTOCWithCustomTitleClass (test_syntax.extensions.test_toc.TestTOC) ... ok
testTOCWithEmptyTitleClass (test_syntax.extensions.test_toc.TestTOC) ... ok
testTocInHeaders (test_syntax.extensions.test_toc.TestTOC) ... ok
testTocWithAttrList (test_syntax.extensions.test_toc.TestTOC) ... ok
testUniqueIds (test_syntax.extensions.test_toc.TestTOC) ... ok
test_escaped_char_in_id (test_syntax.extensions.test_toc.TestTOC) ... ok
test_escaped_code (test_syntax.extensions.test_toc.TestTOC) ... ok
testDontStripCloseBracket (test_syntax.extensions.test_toc.testStripTags) ... ok
testDontStripHTMLEntities (test_syntax.extensions.test_toc.testStripTags) ... ok
testDontStripOpenBracket (test_syntax.extensions.test_toc.testStripTags) ... ok
testStripCollapseWhitespace (test_syntax.extensions.test_toc.testStripTags) ... ok
testStripComment (test_syntax.extensions.test_toc.testStripTags) ... ok
testStripCommentInElement (test_syntax.extensions.test_toc.testStripTags) ... ok
testStripCommentWithInnerTags (test_syntax.extensions.test_toc.testStripTags) ... ok
testStripElement (test_syntax.extensions.test_toc.testStripTags) ... ok
testStripElementWithNewlines (test_syntax.extensions.test_toc.testStripTags) ... ok
testStripEmptyElement (test_syntax.extensions.test_toc.testStripTags) ... ok
testStripOpenElement (test_syntax.extensions.test_toc.testStripTags) ... ok
test_email_address (test_syntax.inline.test_autolinks.TestAutomaticLinks) ... ok
test_email_address_with_ampersand (test_syntax.inline.test_autolinks.TestAutomaticLinks) ... ok
test_invalid_email_address_domain (test_syntax.inline.test_autolinks.TestAutomaticLinks) ... ok
@@ -1019,9 +1028,9 @@
test_inline_html_backslashes (test_syntax.inline.test_raw_html.TestRawHtml) ... ok
----------------------------------------------------------------------
Ran 932 tests
Ran 961 tests
OK (skipped=62)
OK (skipped=64)
py$(PYV): commands[1]> python -m coverage xml
Wrote XML report to coverage.xml
py$(PYV): commands[2]> python -m coverage report --show-missing
@@ -1031,16 +1040,16 @@
markdown/__main__.py                     42      0   100%
markdown/__meta__.py                     14      0   100%
markdown/blockparser.py                  31      0   100%
markdown/blockprocessors.py             302      8    97%   214, 219-220, 229, 247, 281, 624, 630
markdown/blockprocessors.py             304      8    97%   214, 219-220, 229, 247, 281, 629, 635
markdown/core.py                        148      0   100%
markdown/extensions/__init__.py          29      1    97%   112
markdown/extensions/abbr.py              43      0   100%
markdown/extensions/abbr.py              40      0   100%
markdown/extensions/admonition.py        87      0   100%
markdown/extensions/attr_list.py         91      0   100%
markdown/extensions/attr_list.py         98      0   100%
markdown/extensions/codehilite.py       115     97    16%   48-52, 116-133, 146-188, 212-247, 260-265, 269-288, 296-335, 339-343
markdown/extensions/def_list.py          57      2    96%   105-106
markdown/extensions/extra.py              9      0   100%
markdown/extensions/fenced_code.py       91     10    89%   90, 110, 115-132, 155, 169
markdown/extensions/fenced_code.py       97     10    90%   90, 115, 120-137, 162, 176
markdown/extensions/footnotes.py        227      7    97%   139-140, 160, 167, 290, 398-399
markdown/extensions/legacy_attrs.py      24      0   100%
markdown/extensions/legacy_em.py         13      0   100%
@@ -1050,7 +1059,7 @@
markdown/extensions/sane_lists.py        21      0   100%
markdown/extensions/smarty.py            86      0   100%
markdown/extensions/tables.py           145      0   100%
markdown/extensions/toc.py              208      0   100%
markdown/extensions/toc.py              256     14    95%   72-78, 84-96
markdown/extensions/wikilinks.py         48      0   100%
markdown/htmlparser.py                  140      0   100%
markdown/inlinepatterns.py              384      2    99%   175, 852
@@ -1061,6 +1070,6 @@
markdown/treeprocessors.py              228      5    98%   52, 112, 240-242
markdown/util.py                        143      7    95%   106, 128-133, 256-261
-------------------------------------------------------------------
TOTAL                                  3256    151    95%
TOTAL                                  3316    165    95%
  py$(PYV): OK
  congratulations :)