Patch | Description | Author | Forwarded | Bugs | Origin | Last update |
---|---|---|---|---|---|---|
0001-Skip-test-s-that-require-the-network.patch | Skip test(s) that require the network. | Elena Grandi <valhalla-d@trueelena.org> | not-needed | 2016-11-05 | ||
0002-Use-python3-as-the-executable-name.patch | Use python3 as the executable name | Elena Grandi <valhalla@debian.org> | not-needed | 2021-11-09 | ||
0003-Disable-sandbox-for-docx-tests.patch | Disable sandbox for docx tests | Bastian Germann <bage@debian.org> | no | 2022-12-13 | ||
0004-Fix-expected-pandoc-output.patch | Fix expected pandoc output | Andreas Tille <tille@debian.org> | no | 2023-12-13 | ||
convert-file-py313.patch | Fix convert_file for Python 3.13 As of https://github.com/python/cpython/pull/117589 (at least), `Path.glob` returns an `Iterator` rather than `Generator` (which inherits from `Iterator`). `convert_file` doesn't need to care about this distinction; it can reasonably accept both. This previously caused a test failure along these lines: ______________________________________________________ TestPypandoc.test_basic_conversion_from_file_pattern_pathlib_glob _______________________________________________________ self = <tests.TestPypandoc testMethod=test_basic_conversion_from_file_pattern_pathlib_glob> def test_basic_conversion_from_file_pattern_pathlib_glob(self): received_from_str_filename_input = pypandoc.convert_file("./*.md", 'html').lower() > received_from_path_filename_input = pypandoc.convert_file(Path(".").glob("*.md"), 'html').lower() tests.py:654: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ source_file = <map object at 0x7f83952c9420>, to = 'html', format = None, extra_args = (), encoding = 'utf-8', outputfile = None, filters = None, verify_format = True sandbox = False, cworkdir = '/home/cjwatson/src/python/pypandoc', sort_files = True [...] if not _identify_path(discovered_source_files): > raise RuntimeError("source_file is not a valid path") E RuntimeError: source_file is not a valid path pypandoc/__init__.py:201: RuntimeError |
Colin Watson <cjwatson@debian.org> | yes | 2024-12-08 |