Package: python-cliff / 4.13.2-3

Metadata

Package Version Patches format
python-cliff 4.13.2-3 3.0 (quilt)

Patch series

view the series file
Patch File delta Description
install all files.patch | (download)

MANIFEST.in | 1 1 + 0 - 0 !
1 file changed, 1 insertion(+)

---
stop using private argparse functions.patch | (download)

cliff/sphinxext.py | 23 18 + 5 - 0 !
1 file changed, 18 insertions(+), 5 deletions(-)

 stop using private argparse functions
Fix_compatibility_with_cmd2_3.1.0+.patch | (download)

cliff/formatters/table.py | 2 1 + 1 - 0 !
cliff/interactive.py | 16 3 + 13 - 0 !
cliff/tests/base.py | 2 1 + 1 - 0 !
cliff/tests/test_commandmanager.py | 8 8 + 0 - 0 !
cliff/tests/test_interactive.py | 28 0 + 28 - 0 !
requirements.txt | 2 1 + 1 - 0 !
6 files changed, 14 insertions(+), 44 deletions(-)

 fix compatibility with cmd2 3.1.0+
 cmd2 3.1.0 has removed the dependency on the stdlib cmd library [1]. For
 our use cases, the largest change is that we no longer have the
 'completenames' helper, which was defined in `cmd.Cmd` rather than
 `cmd2.Cmd`. However, upon further inspection is seems this helper was
 never actually used. It was not called directly in cmd2 2.x and was only
 used in cmd in two locations: `Cmd.complete` [2] and `Cmd.complete_help`
 [3]. cmd2 2.x entirely overrode the former [4] and deleted the latter,
 meaning we were not actually using any of that code. Therefore we can
 just delete the helper and any tests for same and suffer no ill effects.
 To be safe though, we bump our cmd2 minimum to 3.0.0.
 .
 While here, we also need to fix some type hints to account for the cmd2
 bump along with a related autopage bump.
 .
 [1] https://github.com/python-cmd2/cmd2/releases/tag/3.1.0
 [2] https://github.com/python/cpython/blob/v3.10.20/Lib/cmd.py#L274
 [3] https://github.com/python/cpython/blob/v3.10.20/Lib/cmd.py#L287
 [4] https://github.com/python-cmd2/cmd2/blob/2.7.0/cmd2/cmd2.py#L2192-L2294
 [5] https://github.com/python-cmd2/cmd2/blob/2.7.0/cmd2/cmd2.py#L3770-L3772