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: Wed Aug 6 04:53:05 UTC 2025
Modified Files:
pkgsrc/textproc/py-colored: Makefile PLIST distinfo
Log Message:
py-colored: updated to 2.3.1
2.3.1
Changed
Refactor: Optimized Windows Terminal Mode initialization: Moved Colored.enable_windows_terminal_mode() call from Colored.__init__ to module-level execution. This ensures the Windows virtual terminal
processing is enabled only once when the colored module is imported, instead of on every Colored object instantiation. This change improves performance by avoiding redundant API calls and checks.
Refactor: Reduce Colored instance attributes: Removed redundant instance attributes (_ESC, _END, _STYLES, etc.) from the Colored class's __init__ method. These constants are now accessed directly
from the Library module, reducing memory footprint per instance and improving adherence to Pylint's R0902 warning.
Fixed
Resolved static analysis warnings in enable_windows_terminal_mode(): Modified enable_windows_terminal_mode() to ensure consistent return statements and handle all possible execution paths explicitly.
This addresses mypy's "Missing return statement" error and pylint's "inconsistent-return-statements" warning by making all return paths explicit and robustly handling potential ctypes related
exceptions. The return type hint was also updated to Optional[bool].
Resolved type hinting and tuple unpacking warnings in Utilities.is_percentage(): Modified the Utilities.is_percentage() method to explicitly return a fixed-length tuple[int, int, int]. This addresses
mypy's "Incompatible return value type" error and pylint's "unbalanced-tuple-unpacking" warning by ensuring consistent and statically verifiable return types.
Refined type validation and error handling in Controls.nav(): Eliminated the redundant _is_str_object static method. Integrated string type validation directly into the nav() method. Replaced
AttributeError with TypeError for improved semantic clarity when handling invalid argument types.
Ensured test_hex_1.py correctly uses nearest ANSI codes for hex color representation, preventing InvalidHexColor exceptions during gradient and random color tests.
To generate a diff of this commit:
cvs rdiff -u -r1.14 -r1.15 pkgsrc/textproc/py-colored/Makefile
cvs rdiff -u -r1.7 -r1.8 pkgsrc/textproc/py-colored/PLIST
cvs rdiff -u -r1.12 -r1.13 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.14 pkgsrc/textproc/py-colored/Makefile:1.15
--- pkgsrc/textproc/py-colored/Makefile:1.14 Wed Feb 12 09:51:10 2025
+++ pkgsrc/textproc/py-colored/Makefile Wed Aug 6 04:53:05 2025
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.14 2025/02/12 09:51:10 adam Exp $
+# $NetBSD: Makefile,v 1.15 2025/08/06 04:53:05 adam Exp $
-DISTNAME= colored-2.3.0
+DISTNAME= colored-2.3.1
PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
CATEGORIES= textproc python
MASTER_SITES= ${MASTER_SITE_PYPI:=c/colored/}
Index: pkgsrc/textproc/py-colored/PLIST
diff -u pkgsrc/textproc/py-colored/PLIST:1.7 pkgsrc/textproc/py-colored/PLIST:1.8
--- pkgsrc/textproc/py-colored/PLIST:1.7 Wed Feb 12 09:51:10 2025
+++ pkgsrc/textproc/py-colored/PLIST Wed Aug 6 04:53:05 2025
@@ -1,7 +1,8 @@
-@comment $NetBSD: PLIST,v 1.7 2025/02/12 09:51:10 adam Exp $
+@comment $NetBSD: PLIST,v 1.8 2025/08/06 04:53:05 adam Exp $
${PYSITELIB}/${WHEEL_INFODIR}/METADATA
${PYSITELIB}/${WHEEL_INFODIR}/RECORD
${PYSITELIB}/${WHEEL_INFODIR}/WHEEL
+${PYSITELIB}/${WHEEL_INFODIR}/licenses/LICENSE.txt
${PYSITELIB}/colored/__init__.py
${PYSITELIB}/colored/__init__.pyc
${PYSITELIB}/colored/__init__.pyo
Index: pkgsrc/textproc/py-colored/distinfo
diff -u pkgsrc/textproc/py-colored/distinfo:1.12 pkgsrc/textproc/py-colored/distinfo:1.13
--- pkgsrc/textproc/py-colored/distinfo:1.12 Wed Feb 12 09:51:10 2025
+++ pkgsrc/textproc/py-colored/distinfo Wed Aug 6 04:53:05 2025
@@ -1,5 +1,5 @@
-$NetBSD: distinfo,v 1.12 2025/02/12 09:51:10 adam Exp $
+$NetBSD: distinfo,v 1.13 2025/08/06 04:53:05 adam Exp $
-BLAKE2s (colored-2.3.0.tar.gz) = e69cd0545087859a78436613a2218d4dfdc911908a78f743e18db23772f2c86b
-SHA512 (colored-2.3.0.tar.gz) = e5c797f3c6e4fc0648728c776388dbfc156b21c4c56c978fc7dac2478811b6090b40a8c1863b78b0c0cbdfbed372c9d3ad86d96e7bc3db930353dbb98fde8f80
-Size (colored-2.3.0.tar.gz) = 14708 bytes
+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
Home |
Main Index |
Thread Index |
Old Index