pkgsrc-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: pkgsrc/devel/py-rich-click
Module Name: pkgsrc
Committed By: adam
Date: Fri Oct 3 11:51:04 UTC 2025
Modified Files:
pkgsrc/devel/py-rich-click: Makefile PLIST distinfo
Log Message:
py-rich-click: updated to 1.9.1
Version 1.9.1 (2025-09-20)
Fixed bug where running the rich-click CLI on a @rich_click.argument() sometimes caused arguments show up in the option panel when it shouldn't.
Slightly reduced horizontal padding of the modern theme format.
Fixed Click 8.3 compatibility with rendering defaults in help text.
Version 1.9.0 (2025-09-16)
Warning
Version 1.9.0 deprecates support for a lot of old versions of things:
Python 3.7 support is removed. The minimum supported Python version is 3.8.
Click 7 support is removed. The minimum supported Click version is 8.0.
Rich 10 and 11 support is removed. The minimum supported Rich version is 12.
Warning
Version 1.9.0 introduces a minor breaking change: The DEFAULT_STRING, ENVVAR_STRING, REQUIRED_STRING, and DEPRECATED_STRING config options are now rendered with Text.from_markup. So for example,
REQUIRED_STRING = "[required]" would be rendered as Rich markup. You must now escape the rich markup: REQUIRED_STRING = "\\[required]"
Big changes:
Themes! Check them out with rich-click --themes.
Typer support: rich-click typer_app --help.
RichPanels API introduced. This replaces the "groups" feature going forward (although groups will continue to be supported).
@click.option_panel()
@click.command_panel()
IDE tab completion support for decorators. Now you should no longer need to guess what goes in @click.option() or @click.command(context_settings=...) etc.
Help for arguments: help= is now a valid kwarg for @click.argument() decorator. See docs for more information.
Small changes:
"Deprecated" text properly handled and stylized in all places.
Command aliases: @cli.command(aliases=["foo"])
Improved rich-click CLI usability: improved patching and improved script detection+execution.
context_settings={"help_to_stderr": True} support.
Added suite of padding_* config options to control padding.
Better newline handling:
Unordered lists create newlines in help text, e.g. "\n- foo\n- bar" or "\n* foo\n* bar"
Newline control in help text with text_paragraph_linebreaks config option.
Added a few text_* config options, including notably text_kwargs which can control code styles in Markdown.
Backend (mostly invisible) changes:
Overhauled our test suite to use inline-snapshot! 😁
Improved test coverage and CI.
typing_extensions now only required for < Python 3.11.
RichHelpFormatter now defers printing by default if a user does not specify a Console.
This more closely aligns the RichHelpFormatter with how base Click works.
Significant refactors to help text rendering.
Reintroduced deprecation warnings for a couple of features deprecated in 1.8.
There was an issue where the rich.highlighter module could load during CLI execution. We now assert in unit-tests that no rich modules are loaded during code execution, so going forward, rich imports
should no longer ever be a side-effect of CLI execution.
To generate a diff of this commit:
cvs rdiff -u -r1.7 -r1.8 pkgsrc/devel/py-rich-click/Makefile
cvs rdiff -u -r1.3 -r1.4 pkgsrc/devel/py-rich-click/PLIST \
pkgsrc/devel/py-rich-click/distinfo
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: pkgsrc/devel/py-rich-click/Makefile
diff -u pkgsrc/devel/py-rich-click/Makefile:1.7 pkgsrc/devel/py-rich-click/Makefile:1.8
--- pkgsrc/devel/py-rich-click/Makefile:1.7 Thu May 22 06:01:08 2025
+++ pkgsrc/devel/py-rich-click/Makefile Fri Oct 3 11:51:04 2025
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.7 2025/05/22 06:01:08 adam Exp $
+# $NetBSD: Makefile,v 1.8 2025/10/03 11:51:04 adam Exp $
-DISTNAME= rich_click-1.8.9
+DISTNAME= rich_click-1.9.1
PKGNAME= ${PYPKGPREFIX}-${DISTNAME:S/_/-/}
CATEGORIES= devel python
MASTER_SITES= ${MASTER_SITE_PYPI:=r/rich-click/}
@@ -11,12 +11,16 @@ COMMENT= Format click help output nicely
LICENSE= mit
TOOL_DEPENDS+= ${PYPKGPREFIX}-setuptools>=78:../../devel/py-setuptools
-DEPENDS+= ${PYPKGPREFIX}-click>=7:../../devel/py-click
-DEPENDS+= ${PYPKGPREFIX}-rich>=10.7:../../comms/py-rich
-DEPENDS+= ${PYPKGPREFIX}-typing-extensions>=4:../../devel/py-typing-extensions
+DEPENDS+= ${PYPKGPREFIX}-click>=8:../../devel/py-click
+DEPENDS+= ${PYPKGPREFIX}-rich>=12:../../comms/py-rich
USE_LANGUAGES= # none
+.include "../../lang/python/pyversion.mk"
+.if ${PYTHON_VERSION} < 311
+DEPENDS+= ${PYPKGPREFIX}-typing-extensions>=4:../../devel/py-typing-extensions
+.endif
+
post-install:
cd ${DESTDIR}${PREFIX}/bin && \
${MV} rich-click rich-click-${PYVERSSUFFIX} || ${TRUE}
Index: pkgsrc/devel/py-rich-click/PLIST
diff -u pkgsrc/devel/py-rich-click/PLIST:1.3 pkgsrc/devel/py-rich-click/PLIST:1.4
--- pkgsrc/devel/py-rich-click/PLIST:1.3 Sun Apr 13 07:09:56 2025
+++ pkgsrc/devel/py-rich-click/PLIST Fri Oct 3 11:51:04 2025
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.3 2025/04/13 07:09:56 adam Exp $
+@comment $NetBSD: PLIST,v 1.4 2025/10/03 11:51:04 adam Exp $
bin/rich-click-${PYVERSSUFFIX}
${PYSITELIB}/${WHEEL_INFODIR}/METADATA
${PYSITELIB}/${WHEEL_INFODIR}/RECORD
@@ -12,24 +12,38 @@ ${PYSITELIB}/rich_click/__init__.pyo
${PYSITELIB}/rich_click/__main__.py
${PYSITELIB}/rich_click/__main__.pyc
${PYSITELIB}/rich_click/__main__.pyo
+${PYSITELIB}/rich_click/_click_types_cache.py
+${PYSITELIB}/rich_click/_click_types_cache.pyc
+${PYSITELIB}/rich_click/_click_types_cache.pyo
${PYSITELIB}/rich_click/_compat_click.py
${PYSITELIB}/rich_click/_compat_click.pyc
${PYSITELIB}/rich_click/_compat_click.pyo
+${PYSITELIB}/rich_click/_internal_types.py
+${PYSITELIB}/rich_click/_internal_types.pyc
+${PYSITELIB}/rich_click/_internal_types.pyo
${PYSITELIB}/rich_click/cli.py
${PYSITELIB}/rich_click/cli.pyc
${PYSITELIB}/rich_click/cli.pyo
${PYSITELIB}/rich_click/decorators.py
${PYSITELIB}/rich_click/decorators.pyc
+${PYSITELIB}/rich_click/decorators.pyi
${PYSITELIB}/rich_click/decorators.pyo
${PYSITELIB}/rich_click/patch.py
${PYSITELIB}/rich_click/patch.pyc
${PYSITELIB}/rich_click/patch.pyo
${PYSITELIB}/rich_click/py.typed
+${PYSITELIB}/rich_click/rich_box.py
+${PYSITELIB}/rich_click/rich_box.pyc
+${PYSITELIB}/rich_click/rich_box.pyo
${PYSITELIB}/rich_click/rich_click.py
${PYSITELIB}/rich_click/rich_click.pyc
${PYSITELIB}/rich_click/rich_click.pyo
+${PYSITELIB}/rich_click/rich_click_theme.py
+${PYSITELIB}/rich_click/rich_click_theme.pyc
+${PYSITELIB}/rich_click/rich_click_theme.pyo
${PYSITELIB}/rich_click/rich_command.py
${PYSITELIB}/rich_click/rich_command.pyc
+${PYSITELIB}/rich_click/rich_command.pyi
${PYSITELIB}/rich_click/rich_command.pyo
${PYSITELIB}/rich_click/rich_context.py
${PYSITELIB}/rich_click/rich_context.pyc
@@ -46,6 +60,12 @@ ${PYSITELIB}/rich_click/rich_help_format
${PYSITELIB}/rich_click/rich_help_rendering.py
${PYSITELIB}/rich_click/rich_help_rendering.pyc
${PYSITELIB}/rich_click/rich_help_rendering.pyo
+${PYSITELIB}/rich_click/rich_panel.py
+${PYSITELIB}/rich_click/rich_panel.pyc
+${PYSITELIB}/rich_click/rich_panel.pyo
+${PYSITELIB}/rich_click/rich_parameter.py
+${PYSITELIB}/rich_click/rich_parameter.pyc
+${PYSITELIB}/rich_click/rich_parameter.pyo
${PYSITELIB}/rich_click/utils.py
${PYSITELIB}/rich_click/utils.pyc
${PYSITELIB}/rich_click/utils.pyo
Index: pkgsrc/devel/py-rich-click/distinfo
diff -u pkgsrc/devel/py-rich-click/distinfo:1.3 pkgsrc/devel/py-rich-click/distinfo:1.4
--- pkgsrc/devel/py-rich-click/distinfo:1.3 Thu May 22 06:01:08 2025
+++ pkgsrc/devel/py-rich-click/distinfo Fri Oct 3 11:51:04 2025
@@ -1,5 +1,5 @@
-$NetBSD: distinfo,v 1.3 2025/05/22 06:01:08 adam Exp $
+$NetBSD: distinfo,v 1.4 2025/10/03 11:51:04 adam Exp $
-BLAKE2s (rich_click-1.8.9.tar.gz) = 023f7f13a52a14b4d30eb4c5b99bcc4a177a5d067307ed46a880799c39d7eeed
-SHA512 (rich_click-1.8.9.tar.gz) = 4271cb6f7132b6bc90b05e42bf0f70398bd5598ca7f262eaf0152ba9f7172b8cd54664a6ddf018dcfac5ff2d3a53b3e20e81ae1c3a9033b9c7c7eb9ab973f79a
-Size (rich_click-1.8.9.tar.gz) = 39378 bytes
+BLAKE2s (rich_click-1.9.1.tar.gz) = 9d1b62fb8bc67c9d4cf9fd33f2032bf7b2c76417ee7dda16603ef2b4bf85d6a7
+SHA512 (rich_click-1.9.1.tar.gz) = 2fc2bbceb38807f2d849953fbd70bedc30fc1a972d712edbf67229519bd70c016738ad964be933c4b8b6e6b65730d567e1917def0e37dbf0c8caf2cf6c254ef9
+Size (rich_click-1.9.1.tar.gz) = 73109 bytes
Home |
Main Index |
Thread Index |
Old Index