Skip to content

v10.1.0

Choose a tag to compare

@kdeldycke kdeldycke released this 02 Nov 07:52
Immutable release. Only release title and notes can be modified.

Note

10.1.0 is available on 🐍 PyPI and 🐙 GitHub.

  • Export MissingExtraError, env_copy() and machine_envvars_apply() from the package root, so they import as from click_extra import ....
  • Add click_extra.layout.number_frames(), which numbers each frame of an animation at the gutter width of the tallest one.
  • A subcommand section of a configuration file leaves the keys it does not set to context_settings["default_map"], as root keys do.
  • click-extra snippet reads a source from standard input as UTF-8, like a source file.
  • Fix cascade=True losing the keys a less local file sets in a subcommand section that a more local file also defines.
  • Fix the Config file column of --params naming the wrong file for a key in a cascade of three or more files.
  • Fix the Config file column of --params printing a remote configuration URL with a slash missing, like https:/example.com/basket.toml.
  • Fix --help and man pages printing a --config URL default with a single slash after its scheme.
  • Fix unpatch_click() to restore the default theme that patch_click() replaced, and keep the default when patch_click() set no theme.
  • Fix the xml format writing invalid XML for a name like 0 or apple pie in tables and serialize_data(), and dropping columns under numeric headers.
  • Fix click-extra screenshot ending in a traceback when the command it captures cannot start: it now exits with an error message.
  • Fix click-extra screenshot --timeout ending in a traceback when the command outlives it: it now exits with an error message.
  • Fix click-extra snippet ending in a traceback on a non-UTF-8 source, and emptying the output file when that source is stdin.
  • Fix record_command() leaving both ends of its pseudo-terminal open when the command it records cannot start.
  • Fix animated captures with line numbers moving every row one cell right on the frames that reach 10 lines.
  • Fix --help-format markdown writing &, < and > as raw HTML, which hid text like <stdout> in a browser.
  • Fix --tree and man pages keeping Click's \b marker when a command's first paragraph opens with it.
  • Fix the click:tree summary table cutting each command description at 45 characters and hiding the cut.
  • Fix a | in a click:config default value splitting its row of the summary table.
  • Fix click:config table links missing the section of a key with accented letters or leading digits.
  • Fix refresh-directives and Sphinx builds skipping a <!--mirror-src comment that has no space after <!--.
  • Fix linkcheck reporting every link of the click-extra-manpages directive as broken: only an HTML build writes the pages they point at.

Full changelog: v10.0.0...v10.1.0