Control: tags -1 patch Control: block 964387 by -1 Hi,
I believe this issue also affects packages that use python3-m2r as build dependency. In the upstream repo there is a patch, which I have attached here. Kind regards, Benjamin
diff --git a/debian/patches/0001_suffix_arg_removed_from_sphinx_v3.0.0.patch b/debian/patches/0001_suffix_arg_removed_from_sphinx_v3.0.0.patch new file mode 100644 index 0000000..18a3ced --- /dev/null +++ b/debian/patches/0001_suffix_arg_removed_from_sphinx_v3.0.0.patch @@ -0,0 +1,28 @@ +Subject: suffix arg removed from sphinx v3.0.0 + +Origin: other +Forwarded: https://github.com/miyakogi/m2r/pull/55 +From: CrossNox <ijmer...@gmail.com> +Last-Update: 2020-04-06 +Applied-Upstream: no +--- + m2r.py | 6 +++++- + 1 file changed, 5 insertions(+), 1 deletion(-) + +diff --git a/m2r.py b/m2r.py +index 897338d..6bd580e 100644 +--- a/m2r.py ++++ b/m2r.py +@@ -649,7 +649,11 @@ def setup(app): + app.add_config_value('m2r_parse_relative_links', False, 'env') + app.add_config_value('m2r_anonymous_references', False, 'env') + app.add_config_value('m2r_disable_inline_math', False, 'env') +- app.add_source_parser('.md', M2RParser) ++ try: ++ app.add_source_parser(".md", M2RParser) # for older sphinx versions ++ except TypeError: ++ app.add_source_suffix(".md", "markdown") ++ app.add_source_parser(M2RParser) + app.add_directive('mdinclude', MdInclude) + metadata = dict( + version=__version__, diff --git a/debian/patches/series b/debian/patches/series index 0819c7b..861d3c2 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -1,2 +1,3 @@ +0001_suffix_arg_removed_from_sphinx_v3.0.0.patch 2001_privacy.patch 2002_use_system_mathjax.patch