Merge ~ahasenack/ubuntu/+source/python-tempita:jammy-tempita-2to3-ftbfs into ubuntu/+source/python-tempita:ubuntu/devel
Status: | Merged | ||||||||
---|---|---|---|---|---|---|---|---|---|
Merged at revision: | 52402bfdb4e153575314854771c66c3a3fac548f | ||||||||
Proposed branch: | ~ahasenack/ubuntu/+source/python-tempita:jammy-tempita-2to3-ftbfs | ||||||||
Merge into: | ubuntu/+source/python-tempita:ubuntu/devel | ||||||||
Diff against target: |
365 lines (+319/-1) 6 files modified
debian/changelog (+11/-0) debian/control (+2/-1) debian/patches/2to3.patch (+236/-0) debian/patches/fix-doc-tests.patch (+65/-0) debian/patches/series (+2/-0) debian/rules (+3/-0) |
||||||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Athos Ribeiro (community) | Approve | ||
Canonical Server Core Reviewers | Pending | ||
Review via email: mp+417740@code.launchpad.net |
Description of the change
This fixes two issues:
- ftbfs
python 3.10 removed[1][2] the 2to3 option in setup.py, which would run 2to3 (you guessed it) against the code during build, and install the result.
My "fix" here was to build this module with python 3.9 on impish, where the 2to3 option still worked, and diff the result. That's the patch I'm applying on jammy.
- doctests
For some reason I didn't investigate too deeply, the doctests were not being run[3]. When the nose runner was called, the directory it was given was empty, so nothing was run. I overrode the test target in d/rules and called them directly. Which led me to another fix to get them to pass: the exception raised was namespaced to the module (tempita.
A bileto ticket with a PPA is available[4], and the dep8 tests actually ran. Failures are just dependencies in i386 and I didn't investigate those :/
While this is up for review, I might still check that.
1. https:/
2. https:/
3. https:/
4. https:/
I will take a look at this one :)