Merge ~bryce/ubuntu/+source/nose:fix-lp1859880-py3-sphinx into ubuntu/+source/nose:ubuntu/focal-devel
Status: | Superseded | ||||
---|---|---|---|---|---|
Proposed branch: | ~bryce/ubuntu/+source/nose:fix-lp1859880-py3-sphinx | ||||
Merge into: | ubuntu/+source/nose:ubuntu/focal-devel | ||||
Diff against target: |
104 lines (+18/-23) 3 files modified
debian/changelog (+9/-0) debian/control (+6/-17) debian/rules (+3/-6) |
||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
git-ubuntu developers | Pending | ||
Review via email: mp+377754@code.launchpad.net |
This proposal has been superseded by a proposal from 2020-01-17.
Description of the change
Several packages are blocked in proposed migration due to having nose as a dependency for their testsuites. Nose has been ported to python3, but the issue is that its code docs are being generated using the python2 version of sphinx.
I considered a few different ways to fix this:
1. Disable code docs. Nose is no longer maintained and upstream recommends using nose2 or pytest instead, so providing code docs may not be very important anymore, as developers should probably not use it anymore. However, the module still works well enough and is widely used so this seems too brute force.
2. Carry a debian patch to convert codebase to python3. With Ubuntu moving towards python3-only, there is little need for preserving python2 support. However, such a patch would touch a lot of code files and thus be brittle and require regeneration if debian changes things.
3. Generate docs from the build output rather than the source.
4. Add 2to3 as a dependency, and run it on the codebase prior to calling sphinx.
I experimented with #3 for a while, but didn't find a clean and robust way to do it. I'm not certain it would produce exactly the same results as generation from source, although that might not matter in practice.
Option #4, running 2to3, works cleanly and is minimally invasive. The main trade-off is it adds another dependency for the package, but this seems a fair trade.
A PPA with this package is available from:
https:/