python-cliff 1.14.0 ftbfs with Python 3.5 in Wily
| Affects | Status | Importance | Assigned to | Milestone | |
|---|---|---|---|---|---|
| | cliff |
Undecided
|
Unassigned | ||
| | python-cliff (Ubuntu) |
High
|
Unassigned | ||
Bug Description
Full buildlog from the Python 3.5-as-default PPA:
Should at least investigate whether new upstream 1.14.0 fixes the problem, or report the bug upstream.
| tags: | added: python2.5 |
| tags: |
added: python3.5 removed: python2.5 |
| Barry Warsaw (barry) wrote : | #1 |
| summary: |
- python-cliff 1.13.0-0ubuntu1 ftbfs with Python 3.5 in Wily + python-cliff 1.14.0 ftbfs with Python 3.5 in Wily |
| Barry Warsaw (barry) wrote : | #2 |
| Barry Warsaw (barry) wrote : | #3 |
Actually python-cliff is DPMT so I'll upload a fix to experimental and sync it over to Wily.
| Barry Warsaw (barry) wrote : | #4 |
Dang, my experimental box is broken, so it'll be an Ubuntu upload for now.
| tags: | added: patch |
| Launchpad Janitor (janitor) wrote : | #5 |
This bug was fixed in the package python-cliff - 1.14.0-1ubuntu1
---------------
python-cliff (1.14.0-1ubuntu1) wily; urgency=medium
* d/patches/
(LP: #1491888)
-- Barry Warsaw <email address hidden> Fri, 11 Sep 2015 18:38:58 -0400
| Changed in python-cliff (Ubuntu): | |
| status: | New → Fix Released |
| Doug Hellmann (doug-hellmann) wrote : | #6 |
I'm not sure how adding a docstring to the test class fixes attribute errors for mswindows on subprocess. Was that URL to the log file right?
| Barry Warsaw (barry) wrote : Re: [Bug 1491888] Re: python-cliff 1.14.0 ftbfs with Python 3.5 in Wily | #7 |
On Sep 12, 2015, at 03:54 PM, Doug Hellmann wrote:
>I'm not sure how adding a docstring to the test class fixes attribute
>errors for mswindows on subprocess. Was that URL to the log file right?
Ah sorry for the misunderstanding. The fix for the mswindows attribute ended
up being in cmd2 (subprocess.
in Python 3.5). I've reported that to the cmd2 project and fixed it in the
Ubuntu version of the package.
The issue for cliff is that inspect.getdoc() lookup now follows class
hierarchy so a test fails when the one-liner description of some options come
from the first line of a base class docstring.
| Doug Hellmann (doug-hellmann) wrote : | #8 |
Ah, ok, that makes *much* more sense. I'll probably address that with more logic in cliff besides your proposed patch so thanks for explaining.
Related fix proposed to branch: master
Review: https:/
Related fix proposed to branch: master
Review: https:/
| Doug Hellmann (doug-hellmann) wrote : | #11 |
Upstream pull request for cmd2 is https:/
Reviewed: https:/
Committed: https:/
Submitter: Jenkins
Branch: master
commit 25cce67529d70e3
Author: Doug Hellmann <email address hidden>
Date: Wed Sep 23 19:47:07 2015 +0000
only use unicodecsv for python 2.x
Only use unicodecsv for python 2, since the python 3 module works fine
with unicode data.
Change-Id: I8b82248e855a69
Related-bug: #1491888
Related fix proposed to branch: stable/liberty
Review: https:/
Reviewed: https:/
Committed: https:/
Submitter: Jenkins
Branch: master
commit e3a24897a7ab420
Author: Doug Hellmann <email address hidden>
Date: Wed Sep 23 19:46:08 2015 +0000
Fix test class docstring for py 3.5
Add a docstring to TestCommand so we get that one instead of inheriting
the one from the base class. In previous versions the docstring was not
inherited, but that has changed.
Change-Id: I90c808836f4f76
Related-bug: #1491888
Reviewed: https:/
Committed: https:/
Submitter: Jenkins
Branch: stable/liberty
commit a7bc38823661dd2
Author: Doug Hellmann <email address hidden>
Date: Wed Sep 23 19:47:07 2015 +0000
only use unicodecsv for python 2.x
Only use unicodecsv for python 2, since the python 3 module works fine
with unicode data.
Change-Id: I8b82248e855a69
Related-bug: #1491888
(cherry picked from commit 25cce67529d70e3
| tags: | added: in-stable-liberty |
| Steve Martinelli (stevemar) wrote : | #16 |
cmd2 released (on 10/2016) a new version (0.6.9) that includes support for py35. Marking this as fix-released since we did some work in cliff for this bug.
| Changed in python-cliff: | |
| status: | New → Fix Released |


This upstream Python 3.5 change breaks cliff's test suite:
https:/ /bugs.python. org/issue15582
The patch is simple enough, so I'll just attach it here. I plan on uploading a fix to Ubuntu. We can resync to any new Debian release when that's available.