pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/textproc/py-colored



Module Name:    pkgsrc
Committed By:   adam
Date:           Thu Apr  2 08:52:05 UTC 2026

Modified Files:
        pkgsrc/textproc/py-colored: Makefile distinfo

Log Message:
py-colored: updated to 2.3.2

2.3.2

Added

Added tests_pytest/ suite with pytest-based tests for foreground, background, styles, exceptions, hex color matching, and convert functionality.

Fixed

Fixed mypy type error in hexadecimal.py: changed color parameter type from str | int to str in Hex.find(), as the method requires string input for len() and indexing operations.
Fixed mypy type errors in attributes.py: added missing return type annotation (-> None) to MetaStyle.__getattr__() and replaced bare dict with dict[str, str] for _STYLES and _COLORS class attributes.
Fixed ValueError in Colored.enabled() when FORCE_COLOR environment variable contains a non-integer value (e.g. FORCE_COLOR=yes): invalid values are now treated as enabled.
Fixed Controls.nav() ignoring column=0 due to falsy check: changed if column: to if column is not None: so cursor position at column 0 (start of line) works correctly.
Fixed ValueError crash in Hex.find() when passing an invalid hex string (e.g. #FF, #AABBCCDD): added format validation that raises InvalidHexColor for strings that are not 4 or 7 characters long 
starting with #.
Fixed RGB values out of range in Utilities.is_percentage(): values are now clamped to [0, 255] to always produce valid ANSI escape sequences without breaking existing code.
Fixed incorrect return type annotation -> None on __getattr__ in MetaStyle, MetaFore, and MetaBack metaclasses: changed to -> NoReturn since these methods always raise an exception and never return.
Fixed Utilities.set_colorterm() losing the default truecolor value when $COLORTERM is not set in the environment: changed fallback from '' to self.colorterm to preserve the initialized default.
Renamed misleading Hex.cube() method to Hex.square() to correctly reflect its calculation (x*x), which is the intended least squares fit operation.


To generate a diff of this commit:
cvs rdiff -u -r1.15 -r1.16 pkgsrc/textproc/py-colored/Makefile
cvs rdiff -u -r1.13 -r1.14 pkgsrc/textproc/py-colored/distinfo

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/textproc/py-colored/Makefile
diff -u pkgsrc/textproc/py-colored/Makefile:1.15 pkgsrc/textproc/py-colored/Makefile:1.16
--- pkgsrc/textproc/py-colored/Makefile:1.15    Wed Aug  6 04:53:05 2025
+++ pkgsrc/textproc/py-colored/Makefile Thu Apr  2 08:52:05 2026
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.15 2025/08/06 04:53:05 adam Exp $
+# $NetBSD: Makefile,v 1.16 2026/04/02 08:52:05 adam Exp $
 
-DISTNAME=      colored-2.3.1
+DISTNAME=      colored-2.3.2
 PKGNAME=       ${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=    textproc python
 MASTER_SITES=  ${MASTER_SITE_PYPI:=c/colored/}

Index: pkgsrc/textproc/py-colored/distinfo
diff -u pkgsrc/textproc/py-colored/distinfo:1.13 pkgsrc/textproc/py-colored/distinfo:1.14
--- pkgsrc/textproc/py-colored/distinfo:1.13    Wed Aug  6 04:53:05 2025
+++ pkgsrc/textproc/py-colored/distinfo Thu Apr  2 08:52:05 2026
@@ -1,5 +1,5 @@
-$NetBSD: distinfo,v 1.13 2025/08/06 04:53:05 adam Exp $
+$NetBSD: distinfo,v 1.14 2026/04/02 08:52:05 adam Exp $
 
-BLAKE2s (colored-2.3.1.tar.gz) = eea1bee29e0ea748167acebd5c47f365612ad88c983785eaba4a3cded67109d0
-SHA512 (colored-2.3.1.tar.gz) = 9ad5596af21adfa9a6540808a123f97f4acff152d67c5d6920d3e1a34acfa1479a10ecc45801b6582130cec26b8c91a7b7e67983cc77f08a3bf959ca6e8580fe
-Size (colored-2.3.1.tar.gz) = 16046 bytes
+BLAKE2s (colored-2.3.2.tar.gz) = fdb0496ea2944a691606e09a1b7658718f68087c001aa92026f68bd4d572f7e6
+SHA512 (colored-2.3.2.tar.gz) = b2f6053a5be75b0b4b8b41a24e51f2a8ac9d1511fd7f2deb5d316758631c7595242c65af6311648318136277787558456cbf7349c6ccb81d12952d69b58beb26
+Size (colored-2.3.2.tar.gz) = 17066 bytes



Home | Main Index | Thread Index | Old Index