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 to NUL 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 to click.Command, defaults to False :pr:1167
    • 0๏ธโƒฃ Add show_defaults parameter to Context 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 with atomic=True retains permissions of existing files and respects the current umask for new files. :issue:1376
    • โœ… When using the test CliRunner with mix_stderr=False, if result.stderr is empty it will not raise a ValueError. :issue:1193
    • ๐Ÿšš Remove the unused mix_stderr parameter from CliRunner.invoke. :issue:1435
    • Fix TypeError raised when using bool flags and specifying type=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 for click.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, and Argument, 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.