Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
lpod-python is quite dated, no longer maintained and increasingly hard to get to run on modern systems because it's Python 2 only and Python 2 is no longer supported upstream as of 2020 and has been removed from some Linux Distributions already.
There are two candidates for succession, odfdo and lpod-python3.
odfdo
has been modified whilelpod-python3
retains the old API. I opted forodfdo
because it's on PyPI whilelpod-python3
isn't.In this series of commits, I modified odpdown to use odfdo and adjusted the tests accordingly. The tests pass on Python 3.9 and Python 3.10 (I did not test any others).
A bit of a caveat on requirements: the lxml require is a bit tight because it is the sort of lowest common denominator setuptools can handle. If one wanted to specify all lxml versions odfdo allows, one would have to pull in
poetry
to allow for a package specification with more fine grained dependencies. I forewent that for now.