click v7.1 Release Notes
Release Date: 2020-03-09 // about 4 years ago-
๐ Released 2020-03-09
- ๐ฆ Fix PyPI package name, "click" is lowercase again.
- Fix link in
unicode_literals
error message. :pr:1151
- ๐ Add support for colored output on UNIX Jupyter notebooks.
:issue:
1185
- Operations that strip ANSI controls will strip the cursor hide/show
sequences. :issue:
1216
- ๐ Remove unused compat shim for
bytes
. :pr:1195
- ๐ Expand testing around termui, especially getchar on Windows.
:issue:
1116
- ๐ Fix output on Windows Python 2.7 built with MSVC 14. :pr:
1342
- Fix
OSError
when running in MSYS2. :issue:1338
- ๐ Fix
OSError
when redirecting toNUL
stream on Windows. :issue:1065
- ๐ Fix memory leak when parsing Unicode arguments on Windows.
:issue:
1136
- Fix error in new AppEngine environments. :issue:
1462
- Always return one of the passed choices for
click.Choice
:issue:1277
, :pr:1318
- Add
no_args_is_help
option toclick.Command
, defaults to False :pr:1167
- 0๏ธโฃ Add
show_defaults
parameter toContext
to enable showing defaults globally. :issue:1018
- Handle
env MYPATH=''
as though the option were not passed. :issue:1196
- It is once again possible to call
next(bar)
on an active progress bar instance. :issue:1125
-
open_file
withatomic=True
retains permissions of existing files and respects the current umask for new files. :issue:1376
- โ
When using the test
CliRunner
withmix_stderr=False
, ifresult.stderr
is empty it will not raise aValueError
. :issue:1193
- ๐ Remove the unused
mix_stderr
parameter fromCliRunner.invoke
. :issue:1435
- Fix
TypeError
raised when using bool flags and specifyingtype=bool
. :issue:1287
- Newlines in option help text are replaced with spaces before
re-wrapping to avoid uneven line breaks. :issue:
834
- ๐จ
MissingParameter
exceptions are printable in the Python interpreter. :issue:1139
- 0๏ธโฃ Fix how default values for file-type options are shown during
prompts. :issue:
914
- Fix environment variable automatic generation for commands
containing
-
. :issue:1253
- Option help text replaces newlines with spaces when rewrapping, but
preserves paragraph breaks, fixing multiline formatting.
:issue:
834, 1066, 1397
- Option help text that is wrapped adds an extra newline at the end to
distinguish it from the next option. :issue:
1075
- Consider
sensible-editor
when determining the editor to use forclick.edit()
. :pr:1469
- Arguments to system calls such as the executable path passed to
click.edit
can contains spaces. :pr:1470
- Add ZSH completion autoloading and error handling. :issue:
1348
- Add a repr to
Command
,Group
,Option
, andArgument
, showing the name for friendlier debugging. :issue:1267
- Completion doesn't consider option names if a value starts with
-
after the--
separator. :issue:1247
- ZSH completion escapes special characters in values. :pr:
1418
- ๐ Add completion support for Fish shell. :pr:
1423
- Decoding bytes option values falls back to UTF-8 in more cases.
:pr:
1468
- ๐ Make the warning about old 2-arg parameter callbacks a deprecation
warning, to be removed in 8.0. This has been a warning since Click
2.0. :pr:
1492
- Adjust error messages to standardize the types of quotes used so they match error messages from Python.