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:           Sun Apr 13 07:09:56 UTC 2025

Modified Files:
        pkgsrc/devel/py-rich-click: Makefile PLIST distinfo

Log Message:
py-rich-click: updated to 1.8.8

Version 1.8.8 (2025-03-09)

Make text wrap instead of using ellipses for overflowing metavars in options tables.
Added --errors-in-output-format flag to rich-click CLI.
Actually fixed regression in stderr handling

Version 1.8.7 (2025-03-08)

Add ability to turn off option/command deduplication in groups
Fix regression in stderr handling

Version 1.8.6 (2025-02-19)

Fix incompatibility with click 8.2.0.

Version 1.8.5 (2024-12-01)

Fix issue with error messages not using user-defined styles.

Version 1.8.4 (2024-11-12)

Support rich.text.Text() objects for header_text, footer_text, errors_suggestion, and errors_epilogue.

Version 1.8.3 (2023-06-09)

Support {cmd} as an option/command group key when python -m {cmd} is the command_path.
Fix yet another deprecation warning issue. (Sorry, sorry.)

Version 1.8.2 (2023-05-14)

Fix another deprecation warning issue.

Version 1.8.1 (2023-05-07)

Fixed bad deprecation warning with highlighter
Fixed incompatibility with Click 9.

Version 1.8.0 (2023-04-30)

Add --rich-config and --output options to the rich-click CLI.
Lazy load Rich to reduce overhead when not rendering help text.
Some internal refactors. These refactors are aimed at making the abstractions more maintainable over time, more consistent, and more adept for advanced used cases.
rich_click.py is exclusively the global config; all formatting has been moved to rich_help_rendering.py.
RichCommand now makes use of methods in the super class: format_usage, format_help_text, format_options, and format_epilog.
Global formatter object has been removed from the code.
highlighter is now constructed by the RichHelpFormatter rather than being inside the config object.
Added RichHelpConfiguration.load_from_globals() classmethod, which pulls all configuration from rich_click.py.
Fix bug with regex highlighter for options and switches.
RichHelpConfiguration() is now asserted to be JSON serializable, as an option for porting configurations. That said, serialization is not a fully supported feature of the high-level API, so serialize 
the config at your own risk.
Related: highlighter is now deprecated in RichHelpConfiguration; please use highlighter_patterns instead.
Moved exclusively to pyproject.toml and removed setup.py / setup.cfg; thank you @Stealthii!
Moved to text_markup: Literal["markdown", "rich", "ansi", None] instead of booleans.
The default is now ansi instead of None to help support usage of click.style(). None is still supported.
Fixed issue where error messages would not print to stderr by default.
New configuration options:
STYLE_OPTIONS_PANEL_BOX
STYLE_COMMANDS_PANEL_BOX
STYLE_ERRORS_PANEL_BOX
Many quality of life improvements for command and option groups:
Support both command_path and command.name.
Added wildcard (*) option for command groups and option groups, with thanks to @ITProKyle!
Resolve duplicates.
Better typing for option groups and command groups with TypedDict
Added panel_styles support to groups.
Allow table_styles and panel_styles to be defined for the positional arguments group.


To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 pkgsrc/devel/py-rich-click/Makefile
cvs rdiff -u -r1.2 -r1.3 pkgsrc/devel/py-rich-click/PLIST
cvs rdiff -u -r1.1 -r1.2 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.5 pkgsrc/devel/py-rich-click/Makefile:1.6
--- pkgsrc/devel/py-rich-click/Makefile:1.5     Thu Mar  6 01:19:06 2025
+++ pkgsrc/devel/py-rich-click/Makefile Sun Apr 13 07:09:56 2025
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.5 2025/03/06 01:19:06 bacon Exp $
+# $NetBSD: Makefile,v 1.6 2025/04/13 07:09:56 adam Exp $
 
-DISTNAME=      rich-click-1.6.1
-PKGNAME=       ${PYPKGPREFIX}-rich-click-1.6.1
+DISTNAME=      rich_click-1.8.8
+PKGNAME=       ${PYPKGPREFIX}-${DISTNAME:S/_/-/}
 CATEGORIES=    devel python
 MASTER_SITES=  ${MASTER_SITE_PYPI:=r/rich-click/}
 
@@ -10,18 +10,16 @@ HOMEPAGE=   https://github.com/ewels/rich-
 COMMENT=       Format click help output nicely with rich
 LICENSE=       mit
 
+TOOL_DEPENDS+= ${PYPKGPREFIX}-setuptools>=78:../../devel/py-setuptools
 DEPENDS+=      ${PYPKGPREFIX}-click>=7:../../devel/py-click
-DEPENDS+=      ${PYPKGPREFIX}-rich>=10.7.0:../../comms/py-rich
+DEPENDS+=      ${PYPKGPREFIX}-rich>=10.7:../../comms/py-rich
+DEPENDS+=      ${PYPKGPREFIX}-typing-extensions>=4:../../devel/py-typing-extensions
 
 USE_LANGUAGES= # none
 
-USE_PKG_RESOURCES=     yes
-
-PYTHON_VERSIONS_INCOMPATIBLE=  27
-
 post-install:
        cd ${DESTDIR}${PREFIX}/bin && \
        ${MV} rich-click rich-click-${PYVERSSUFFIX} || ${TRUE}
 
-.include "../../lang/python/egg.mk"
+.include "../../lang/python/wheel.mk"
 .include "../../mk/bsd.pkg.mk"

Index: pkgsrc/devel/py-rich-click/PLIST
diff -u pkgsrc/devel/py-rich-click/PLIST:1.2 pkgsrc/devel/py-rich-click/PLIST:1.3
--- pkgsrc/devel/py-rich-click/PLIST:1.2        Mon Jul 24 04:45:33 2023
+++ pkgsrc/devel/py-rich-click/PLIST    Sun Apr 13 07:09:56 2025
@@ -1,20 +1,29 @@
-@comment $NetBSD: PLIST,v 1.2 2023/07/24 04:45:33 adam Exp $
+@comment $NetBSD: PLIST,v 1.3 2025/04/13 07:09:56 adam Exp $
 bin/rich-click-${PYVERSSUFFIX}
-${PYSITELIB}/${EGG_INFODIR}/PKG-INFO
-${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt
-${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt
-${PYSITELIB}/${EGG_INFODIR}/entry_points.txt
-${PYSITELIB}/${EGG_INFODIR}/requires.txt
-${PYSITELIB}/${EGG_INFODIR}/top_level.txt
+${PYSITELIB}/${WHEEL_INFODIR}/METADATA
+${PYSITELIB}/${WHEEL_INFODIR}/RECORD
+${PYSITELIB}/${WHEEL_INFODIR}/WHEEL
+${PYSITELIB}/${WHEEL_INFODIR}/entry_points.txt
+${PYSITELIB}/${WHEEL_INFODIR}/licenses/LICENSE
+${PYSITELIB}/${WHEEL_INFODIR}/top_level.txt
 ${PYSITELIB}/rich_click/__init__.py
 ${PYSITELIB}/rich_click/__init__.pyc
 ${PYSITELIB}/rich_click/__init__.pyo
 ${PYSITELIB}/rich_click/__main__.py
 ${PYSITELIB}/rich_click/__main__.pyc
 ${PYSITELIB}/rich_click/__main__.pyo
+${PYSITELIB}/rich_click/_compat_click.py
+${PYSITELIB}/rich_click/_compat_click.pyc
+${PYSITELIB}/rich_click/_compat_click.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.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_click.py
 ${PYSITELIB}/rich_click/rich_click.pyc
@@ -22,6 +31,21 @@ ${PYSITELIB}/rich_click/rich_click.pyo
 ${PYSITELIB}/rich_click/rich_command.py
 ${PYSITELIB}/rich_click/rich_command.pyc
 ${PYSITELIB}/rich_click/rich_command.pyo
+${PYSITELIB}/rich_click/rich_context.py
+${PYSITELIB}/rich_click/rich_context.pyc
+${PYSITELIB}/rich_click/rich_context.pyo
 ${PYSITELIB}/rich_click/rich_group.py
 ${PYSITELIB}/rich_click/rich_group.pyc
 ${PYSITELIB}/rich_click/rich_group.pyo
+${PYSITELIB}/rich_click/rich_help_configuration.py
+${PYSITELIB}/rich_click/rich_help_configuration.pyc
+${PYSITELIB}/rich_click/rich_help_configuration.pyo
+${PYSITELIB}/rich_click/rich_help_formatter.py
+${PYSITELIB}/rich_click/rich_help_formatter.pyc
+${PYSITELIB}/rich_click/rich_help_formatter.pyo
+${PYSITELIB}/rich_click/rich_help_rendering.py
+${PYSITELIB}/rich_click/rich_help_rendering.pyc
+${PYSITELIB}/rich_click/rich_help_rendering.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.1 pkgsrc/devel/py-rich-click/distinfo:1.2
--- pkgsrc/devel/py-rich-click/distinfo:1.1     Thu Jul 20 14:23:56 2023
+++ pkgsrc/devel/py-rich-click/distinfo Sun Apr 13 07:09:56 2025
@@ -1,5 +1,5 @@
-$NetBSD: distinfo,v 1.1 2023/07/20 14:23:56 bacon Exp $
+$NetBSD: distinfo,v 1.2 2025/04/13 07:09:56 adam Exp $
 
-BLAKE2s (rich-click-1.6.1.tar.gz) = a8cc6c7dead92cc015dbd6b296b9b7ee01c9084d4d16ba8ac3be96fd8d47c0ea
-SHA512 (rich-click-1.6.1.tar.gz) = b76ce422b8aa544ffc39fac238f67574e52e510f68b89ccd066db4d143a9dc35b46474753dc39ffaf35b85f6b171d6618e64c931fde62d3714c4b263eac514bf
-Size (rich-click-1.6.1.tar.gz) = 23227 bytes
+BLAKE2s (rich_click-1.8.8.tar.gz) = 99205c0a80aaf78f853c3879b46f14e222e7d64f8e056181519a3d828beaf313
+SHA512 (rich_click-1.8.8.tar.gz) = dacc02d15c99fb12c7fea47e1a06809fe5a1e7cfaa2fd2f3eccc70ecca3b4f990fb7439aed3de4777a8e4565ffc5f6002544b6af0c8ef5cb762905659cfafb43
+Size (rich_click-1.8.8.tar.gz) = 39066 bytes



Home | Main Index | Thread Index | Old Index