CVS commit: pkgsrc/devel/py-progressbar2

"Adam Ciarcinski" <[email protected]>
Newsgroups gmane.os.netbsd.devel.pkgsrc.cvs
Message-ID <[email protected]>
Module Name:	pkgsrc
Committed By:	adam
Date:		Fri Aug 14 08:29:09 UTC 2026

Modified Files:
	pkgsrc/devel/py-progressbar2: Makefile PLIST distinfo

Log Message:
py-progressbar2: updated to 4.6.0

4.6.0

Performance

progressbar.progressbar() now auto-dispatches to a lean fast path for the common wrap-a-loop case, and an integer update gate keeps gated iterations to an increment, a compare and a store
Optional native iterator accelerator: pip install 'progressbar2[fast]'. See benchmarks/report.md for the numbers against tqdm, rich, alive-progress and click.

Features

tqdm-style arguments on progressbar(): desc, total, unit, unit_scale and postfix.
MultiBar(join_timeout=...) bounds the wait for unfinished bars on with-block exit.
TERM-based color detection generalized beyond xterm variants
AttributeDict is generic over its value type.

Fixes

28 bugs found in a full audit of the bar, widgets, MultiBar and the CLI
16-color mapping no longer collapses mid-intensity colors (e.g. maroon) to black.
The wheel no longer ships the repo-level benchmarks/, scripts/ and tools/ directories.

Documentation

Rebuilt as an interactive site: a tutorial, task-focused how-tos, per-widget pages with animated demos, and an in-browser Python console that runs every example live: https://progressbar-2.readthedocs.io/
Full API docstring coverage, enforced in CI.

Compatibility

Requires Python 3.10+ (was 3.8).
Still backwards compatible with the original progressbar package.


To generate a diff of this commit:
cvs rdiff -u -r1.18 -r1.19 pkgsrc/devel/py-progressbar2/Makefile
cvs rdiff -u -r1.6 -r1.7 pkgsrc/devel/py-progressbar2/PLIST
cvs rdiff -u -r1.11 -r1.12 pkgsrc/devel/py-progressbar2/distinfo

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
(unnamed) (text/x-diff, 3.1 KB)
Modified files:

Index: pkgsrc/devel/py-progressbar2/Makefile
diff -u pkgsrc/devel/py-progressbar2/Makefile:1.18 pkgsrc/devel/py-progressbar2/Makefile:1.19
--- pkgsrc/devel/py-progressbar2/Makefile:1.18	Tue Jan  6 11:18:43 2026
+++ pkgsrc/devel/py-progressbar2/Makefile	Fri Aug 14 08:29:09 2026
@@ -1,8 +1,7 @@
-# $NetBSD: Makefile,v 1.18 2026/01/06 11:18:43 wiz Exp $
+# $NetBSD: Makefile,v 1.19 2026/08/14 08:29:09 adam Exp $
 
-DISTNAME=	progressbar2-4.5.0
+DISTNAME=	progressbar2-4.6.0
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
-PKGREVISION=	1
 CATEGORIES=	devel python
 MASTER_SITES=	${MASTER_SITE_PYPI:=p/progressbar2/}
 
@@ -23,16 +22,15 @@ TEST_DEPENDS+=	${PYPKGPREFIX}-test-mypy-
 
 USE_LANGUAGES=	# none
 
+PY_RENAME_BINARIES=	progressbar
+
 TEST_ENV+=	PYTHONPATH=${WRKSRC}/build/lib
 
 PYTHON_VERSIONS_INCOMPATIBLE=	310 311 # py-sphinx
 
-post-install:
-	cd ${DESTDIR}${PREFIX}/bin && \
-	${MV} progressbar progressbar-${PYVERSSUFFIX} || ${TRUE}
-
 do-test:
-	${LN} -f ${WRKSRC}/examples.py ${WRKSRC}/tests/examples.py
+	${LN} -f -s ${WRKSRC}/examples.py ${WRKSRC}/tests/examples.py
+	${LN} -f -s ${WRKSRC}/docs ${WRKSRC}/tests/docs
 	cd ${WRKSRC} && ${SETENV} ${TEST_ENV} pytest-${PYVERSSUFFIX} tests
 
 .include "../../lang/python/wheel.mk"

Index: pkgsrc/devel/py-progressbar2/PLIST
diff -u pkgsrc/devel/py-progressbar2/PLIST:1.6 pkgsrc/devel/py-progressbar2/PLIST:1.7
--- pkgsrc/devel/py-progressbar2/PLIST:1.6	Sat Apr 12 19:43:14 2025
+++ pkgsrc/devel/py-progressbar2/PLIST	Fri Aug 14 08:29:09 2026
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.6 2025/04/12 19:43:14 adam Exp $
+@comment $NetBSD: PLIST,v 1.7 2026/08/14 08:29:09 adam Exp $
 bin/progressbar-${PYVERSSUFFIX}
 ${PYSITELIB}/${WHEEL_INFODIR}/METADATA
 ${PYSITELIB}/${WHEEL_INFODIR}/RECORD
@@ -27,6 +27,9 @@ ${PYSITELIB}/progressbar/base.pyo
 ${PYSITELIB}/progressbar/env.py
 ${PYSITELIB}/progressbar/env.pyc
 ${PYSITELIB}/progressbar/env.pyo
+${PYSITELIB}/progressbar/fast.py
+${PYSITELIB}/progressbar/fast.pyc
+${PYSITELIB}/progressbar/fast.pyo
 ${PYSITELIB}/progressbar/multi.py
 ${PYSITELIB}/progressbar/multi.pyc
 ${PYSITELIB}/progressbar/multi.pyo

Index: pkgsrc/devel/py-progressbar2/distinfo
diff -u pkgsrc/devel/py-progressbar2/distinfo:1.11 pkgsrc/devel/py-progressbar2/distinfo:1.12
--- pkgsrc/devel/py-progressbar2/distinfo:1.11	Fri Sep 13 19:21:43 2024
+++ pkgsrc/devel/py-progressbar2/distinfo	Fri Aug 14 08:29:09 2026
@@ -1,5 +1,5 @@
-$NetBSD: distinfo,v 1.11 2024/09/13 19:21:43 adam Exp $
+$NetBSD: distinfo,v 1.12 2026/08/14 08:29:09 adam Exp $
 
-BLAKE2s (progressbar2-4.5.0.tar.gz) = cf0bac75659f0833494fb9de318e30e351d11373047beb0c5b75fc413e33d533
-SHA512 (progressbar2-4.5.0.tar.gz) = 84d13cce516aebc184285479849a1f4d16d16bbd48c7eab55c28ce131f5c770d97368df1ca57499a59e4d2994bce5a0cef7cc3d7c3a358b2dd6beba785f5db33
-Size (progressbar2-4.5.0.tar.gz) = 101449 bytes
+BLAKE2s (progressbar2-4.6.0.tar.gz) = 9ce61438c7782455cda0f64eb7fb679b2e5c0353379ceadb9c4a07cdc5381317
+SHA512 (progressbar2-4.6.0.tar.gz) = c5c60867fa46a2d1828d6cacef06b1d6b41563aa5e3e188b312b74a7dd745b89ad4c11b7147dd02d9a8ab8a80d2c366ca7348dcb9a677e2efe91dd4fa2dbd3bf
+Size (progressbar2-4.6.0.tar.gz) = 542464 bytes
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.