diff mbox series

[meta-python,03/18] python3-cmd2: Upgrade 4.4.3 -> 4.4.4

Message ID 20261201203145.3954930-3-leon.anavi@konsulko.com
State Under Review
Headers show
Series [meta-python,01/18] python3-astroid: Upgrade 4.3.4 -> 4.4.0 | expand

Commit Message

Leon Anavi Dec. 1, 2026, 8:31 p.m. UTC
Upgrade to release 4.4.4 with the following bug fixes:

- Tab completion of a match which needs quotes, such as a file
  name with a space, now takes one press of Tab instead of two.
  The opening quote is inserted and the completion carries on
  in the same key press.
- A match chosen from the completion menu now closes its quote
  and adds a trailing space. Previously the quote was left
  open, and running the command failed with Invalid syntax: No
  closing quotation. A directory still leaves its quote open so
  the rest of the path can be completed. See the Quotes Added
  by Completion documentation for details.
- Completions.allow_finalization used to be ignored when
  there were several matches. It now decides whether a
  match chosen from them closes its quote. If you have
  written a completer which offers matches the user keeps
  completing, like directories, alongside other matches,
  return allow_finalization=False for those results so the
  quote stays open.
- On Windows, paths typed with forward slashes now complete
  properly. Shell command completion treats text such as ./my
  and C:/tools/my as a path instead of searching PATH for a
  command of that name. Path completion keeps the separators as
  they were typed, so the first Tab extends the part which
  several matching names share.
- history --output-file and history --edit now write their
  files as UTF-8, which is what run_script reads. On a locale
  whose encoding is not UTF-8, such as Korean or Japanese
  Windows, a history with non-ASCII text was written in the
  locale's encoding. run_script then rejected the saved file as
  not being ASCII or UTF-8 text, and history --edit did not run
  the edited commands.
- run_script now skips a UTF-8 byte order mark at the start of
  a script file, which some Windows editors and Windows
  PowerShell 5.1 write. Previously the mark became part of the
  first command, so that command was not recognized.
- run_pyscript now reads a script the way Python does, instead
  of in the locale's encoding. It honors a byte order mark or a
  PEP 263 coding declaration, and otherwise reads the script as
  UTF-8. On a locale whose encoding is not UTF-8, a UTF-8
  script with non-ASCII text used to fail with
  UnicodeDecodeError or run with garbled strings. A script
  which cannot be decoded  is now reported as an error reading
  the script file.
- A script saved in another encoding, such as the locale's,
  now needs a coding declaration like # -*- coding: cp949
  -*-, as it does when Python runs it.
- A window title set from another thread with
  set_window_title() no longer interleaves with the drawing of
  a prompt-toolkit application which a command runs itself,
  such as prompt_toolkit.prompt() or the prompt of the ipy
  command. The title is now written on that application's event
  loop, as it already was for cmd2's own prompts. This applies
  when the application shares this app's terminal output and
  runs in the AppSession which was current when the Cmd was
  created.
- The save_help_text.py example script now writes its output
  file as UTF-8. On a locale whose encoding is not UTF-8, it
  could fail with UnicodeEncodeError on a character in the help
  text which that encoding lacks.

Signed-off-by: Leon Anavi <leon.anavi@konsulko.com>
---
 .../python/{python3-cmd2_4.4.3.bb => python3-cmd2_4.4.4.bb}     | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
 rename meta-python/recipes-devtools/python/{python3-cmd2_4.4.3.bb => python3-cmd2_4.4.4.bb} (87%)
diff mbox series

Patch

diff --git a/meta-python/recipes-devtools/python/python3-cmd2_4.4.3.bb b/meta-python/recipes-devtools/python/python3-cmd2_4.4.4.bb
similarity index 87%
rename from meta-python/recipes-devtools/python/python3-cmd2_4.4.3.bb
rename to meta-python/recipes-devtools/python/python3-cmd2_4.4.4.bb
index 2cf423fdd4..612598c0e1 100644
--- a/meta-python/recipes-devtools/python/python3-cmd2_4.4.3.bb
+++ b/meta-python/recipes-devtools/python/python3-cmd2_4.4.4.bb
@@ -5,7 +5,7 @@  LIC_FILES_CHKSUM = "file://LICENSE;md5=f2a861642858e0858af9dd4e4716bae0"
 
 DEPENDS += "python3-setuptools-scm-native"
 
-SRC_URI[sha256sum] = "6153a28f9b019f31c8fc784b18489edade5852609c913cf5fa36d179bd581a63"
+SRC_URI[sha256sum] = "1d8cee304712dde897a46715ed7a96bfbfb25c3a0f91f553cc05faf2c3f9310f"
 
 inherit pypi python_setuptools_build_meta python3native