Back in the days without pypi and pip, Docutils developers decided to ship a copy of the small auxiliary module roman.py (pypi.org) with Docutils in order to allow the package to stay free of any dependencies except Python (also a pre-requisite for the proposed inclusion of Docutils into the standard library).
In the year 2024, however, depending on an external module that
should not pose an obstacle to Docutils users.
Commits [r9845] and [r9846] added and adopted an alternative implementation of Roman numeral support but did not remove the copy of the upstream roman.py.
I propose to remove both, utils/roman.py and utils/_roman_numeral.py and declare a dependency on roman instead.
(Lowercase roman to int support was added in the upstream repo commit ffc86c4 Oct 1, 2024, so we would need to work around this until a roman.py release with this fix is available.
+1 from me as a Debian packager. We currently carry a patch to use system version of roman, so I will be able to drop that patch.
Dear Günter,
I would suggest deleting
utils/roman.pyinstead (it was an oversight in my patch).Docutils (via Sphinx) is tested on every commit to CPython, so having a third party package that we don't maintain in the 'critical path' dependency chain is unhelpful, as it means that we would either have to patch
romanourselves (as you propose to do now) or wait for someone else to release a fix.utils/_roman_numeral.pyis a small module containing well-tested code, and designed with Docutils's needs in mind. It is also more permissively licensed.A
OK then.
@mandriver: Would an alternative module be OK for Debian? The roman-patch would be obsoleted either way.
Yes, it's also fine for us.
Done in [r9977].
Related
Commit: [r9977]