./devel/py-click, Simple wrapper around optparse for powerful command line utilities

[ CVSweb ] [ Homepage ] [ RSS ] [ Required by ] [ Add to tracker ]


Branch: CURRENT, Version: 8.1.8, Package name: py312-click-8.1.8, Maintainer: pkgsrc-users

Click is a Python package for creating beautiful command line
interfaces in a composable way with as little code as necessary.
It's the "Command Line Interface Creation Kit". It's highly
configurable but comes with sensible defaults out of the box.

It aims to make the process of writing command line tools quick
and fun while also preventing any frustration caused by the inability
to implement an intended CLI API.


Required to run:
[devel/py-setuptools] [lang/python37]

Required to build:
[pkgtools/cwrappers]

Master sites:

Filesize: 221.282 KB

Version history: (Expand)


CVS history: (Expand)


   2024-12-25 11:09:09 by Adam Ciarcinski | Files touched by this commit (3) | Package updated
Log message:
py-click: updated to 8.1.8

Version 8.1.8

- Fix an issue with type hints for ``click.open_file()``.
- Fix issue where error message for invalid ``click.Path`` displays on
  multiple lines.
- Fixed issue that prevented a default value of ``""`` from being \ 
displayed in
  the help for an option.
- The test runner handles stripping color consistently on Windows.
- Show correct value for flag default when using ``default_map``.
- Fix ``click.echo(color=...)`` passing ``color`` to coloroma so it can be
  forced on Windows.
- More robust bash version check, fixing problem on Windows with git-bash.
- Cache the help option generated by the ``help_option_names`` setting to
  respect its eagerness.
- Replace uses of ``os.system`` with ``subprocess.Popen``.
- Exceptions generated during a command will use the context's ``color``
  setting when being displayed.
- Error message when defining option with invalid name is more descriptive.
- Refactor code generating default ``--help`` option to deduplicate code.
- Test ``CLIRunner`` resets patched ``_compat.should_strip_ansi``.
   2023-08-24 21:46:12 by Thomas Klausner | Files touched by this commit (2) | Package updated
Log message:
py-click: update to 8.1.7.

Version 8.1.7
-------------

Released 2023-08-17

-   Fix issue with regex flags in shell completion. :issue:`2581`
-   Bash version detection issues a warning instead of an error. :issue:`2574`
-   Fix issue with completion script for Fish shell. :issue:`2567`
   2023-07-19 07:44:03 by Adam Ciarcinski | Files touched by this commit (2) | Package updated
Log message:
py-click: updated to 8.1.6

Version 8.1.6
- Fix an issue with type hints for ``@click.group()``.
   2023-07-17 13:41:07 by Adam Ciarcinski | Files touched by this commit (2) | Package updated
Log message:
py-click: updated to 8.1.5

Version 8.1.5
-------------
- Fix an issue with type hints for ``@click.command()``, ``@click.option()``, and
  other decorators. Introduce typing tests. :issue:`2558`
   2023-07-07 09:25:55 by Adam Ciarcinski | Files touched by this commit (2) | Package updated
Log message:
py-click: updated to 8.1.4

Version 8.1.4
-------------
- Replace all ``typing.Dict`` occurrences to ``typing.MutableMapping`` for
  parameter hints. :issue:`2255`
- Improve type hinting for decorators and give all generic types parameters.
  :issue:`2398`
- Fix return value and type signature of `shell_completion.add_completion_class`
  function. :pr:`2421`
- Bash version detection doesn't fail on Windows. :issue:`2461`
- Completion works if there is a dot (``.``) in the program name. :issue:`2166`
- Improve type annotations for pyright type checker. :issue:`2268`
- Improve responsiveness of ``click.clear()``. :issue:`2284`
- Improve command name detection when using Shiv or PEX. :issue:`2332`
- Avoid showing empty lines if command help text is empty. :issue:`2368`
- ZSH completion script works when loaded from ``fpath``. :issue:`2344`.
- ``EOFError`` and ``KeyboardInterrupt`` tracebacks are not suppressed when
  ``standalone_mode`` is disabled. :issue:`2380`
- ``@group.command`` does not fail if the group was created with a custom
  ``command_class``. :issue:`2416`
- ``multiple=True`` is allowed for flag options again and does not require
  setting ``default=()``. :issue:`2246, 2292, 2295`
- Make the decorators returned by ``@argument()`` and ``@option()`` reusable when the
  ``cls`` parameter is used. :issue:`2294`
- Don't fail when writing filenames to streams with strict errors. Replace invalid
  bytes with the replacement character (``�``). :issue:`2395`
- Remove unnecessary attempt to detect MSYS2 environment. :issue:`2355`
- Remove outdated and unnecessary detection of App Engine environment. :pr:`2554`
- ``echo()`` does not fail when no streams are attached, such as with ``pythonw`` on
  Windows. :issue:`2415`
- Argument with ``expose_value=False`` do not cause completion to fail.
   2023-03-29 11:34:15 by Thomas Klausner | Files touched by this commit (96)
Log message:
*: use PYTHON_VERSION instead of _PYTHON_VERSION
   2022-04-29 13:57:21 by Adam Ciarcinski | Files touched by this commit (2) | Package updated
Log message:
py-click: updated to 8.1.3

Version 8.1.3
-------------
- Use verbose form of ``typing.Callable`` for ``@command`` and
  ``@group``.
- Show error when attempting to create an option with
  ``multiple=True, is_flag=True``. Use ``count`` instead.
   2022-04-13 21:44:34 by Adam Ciarcinski | Files touched by this commit (2) | Package updated
Log message:
py-click: updated to 8.1.2

Version 8.1.2
- Fix error message for readable path check that was mixed up with the
  executable check.
- Restore parameter order for ``Path``, placing the ``executable``
  parameter at the end. It is recommended to use keyword arguments
  instead of positional arguments.