Package: release.debian.org Severity: normal User: release.debian....@packages.debian.org Usertags: unblock
Please unblock the package python-darkslide. This upload fixes a bug which prevented darkslide from doing having any useful functionality in buster: $ darkslide slides.md Adding 'slides.md' (markdown) Error: markdown() takes 1 positional argument but 2 were given For more information about the bug, see https://bugs.debian.org/923977. The debdiff is attached for your reference. unblock python-darkslide/4.0.1-2 -- Cheers, Andrej
diff --git a/debian/changelog b/debian/changelog index 6f748d7..7f718d2 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,10 @@ +python-darkslide (4.0.1-2) unstable; urgency=medium + + * Support python-markdown >= 3 (Closes: #923977). + * Bump the python3-markdown build dependency. + + -- Andrej Shadura <andre...@debian.org> Sat, 13 Apr 2019 00:10:51 +0200 + python-darkslide (4.0.1-1) unstable; urgency=medium [ Ondřej Nový ] diff --git a/debian/control b/debian/control index ea38679..e874172 100644 --- a/debian/control +++ b/debian/control @@ -8,7 +8,7 @@ Build-Depends: python3-all, python3-setuptools (>= 0.6.24), python3-six, - python3-markdown, + python3-markdown (>= 3.0), python3-jinja2, python3-pygments, python3-docutils, diff --git a/debian/patches/series b/debian/patches/series new file mode 100644 index 0000000..95d3385 --- /dev/null +++ b/debian/patches/series @@ -0,0 +1 @@ +support-markdown3.patch diff --git a/debian/patches/support-markdown3.patch b/debian/patches/support-markdown3.patch new file mode 100644 index 0000000..a4e134d --- /dev/null +++ b/debian/patches/support-markdown3.patch @@ -0,0 +1,18 @@ +Subject: extensions is now a named argument to markdown() +From: Andrej Shadura <andre...@debian.org> + +Bug: https://github.com/ionelmc/python-darkslide/issues/10 +Bug-Debian: https://bugs.debian.org/923977 +Forwarded: not-needed + +--- a/src/darkslide/parser.py ++++ b/src/darkslide/parser.py +@@ -57,7 +57,7 @@ + if text.startswith(u'\ufeff'): # check for unicode BOM + text = text[1:] + +- return markdown.markdown(text, self.md_extensions) ++ return markdown.markdown(text, extensions=self.md_extensions) + elif self.format == 'restructuredtext': + try: + from .rst import html_body