The NetBSD Project

CVS log for pkgsrc/devel/py-progressbar2/Makefile

[BACK] Up to [cvs.NetBSD.org] / pkgsrc / devel / py-progressbar2

Request diff between arbitrary revisions


Keyword substitution: kv
Default branch: MAIN


Revision 1.21: download - view: text, markup, annotated - select for diffs
Tue Nov 10 09:28:07 2026 UTC (6 days, 1 hour ago) by adam
Branches: MAIN
CVS tags: HEAD
Diff to: previous 1.20: preferred, colored
Changes since revision 1.20: +6 -7 lines
py-progressbar2: updated to 4.7.0

4.7.0 - 2026-11-05

Widgets are coloured by default: a bar on a colour terminal shows the
default palette without ``enable_colors=True``, spinners cycle through
colours, and the ``Bar`` fill colours are constructor arguments (``fg``,
``bg``) instead of the ``Bar.fg`` and ``Bar.bg`` class attributes. A
widget called directly returns the escape codes, and
``progressbar.utils.no_color`` strips them. Output to a file or pipe is
unchanged.

A parallel execution API: ``progressbar.map``, ``imap``,
``imap_unordered``, ``starmap``, ``thread_map``, ``process_map``,
``as_completed``, the asyncio variants ``amap``, ``aimap``,
``aimap_unordered`` and ``gather``, ``run`` for shell commands, and the
``progressbar.parallel`` decorator, with ``bar='multi'`` for an overall
bar plus a bar per task.

A forced redraw of the default widgets is 20 percent faster than in
4.6.0 and the fast path, the iterator overhead and the import time are
at or below their 4.6.0 cost, with colours on. Rendered colour escapes
are remembered per gradient and per colour, new-style templates are
validated once per template text, and captured writes take a cheaper
lock.

New-style format templates such as ``FormatLabel('{value.__class__}')``
or ``prefix='{value.__doc__} '`` now raise ``ValueError``: a template
walking dunder or frame attributes could reach interpreter internals.
Index access and ordinary attributes keep working, and a positional
field still raises ``IndexError`` as it did.

``desc`` is still the ``prefix`` alias and renders as a template, as it
did in 4.6.0. A literal brace in a description has to be doubled.

The fast bar reserves the width of ``prefix``, ``desc`` and ``suffix``
before sizing the filler, so a labelled bar no longer overflows the
terminal. Labels that are not
strings and an uncallable ``custom_len`` render as before.

The ``progressbar`` and ``bar`` commands exit with status 2 and a usage
line on an invalid option value, such as ``--size abc``, where they
printed a traceback before, and validate every argument before the
output file is opened. A pipeline whose reader goes away ends the copy
quietly with status 0.

``PROGRESSBAR_MINIMUM_UPDATE_INTERVAL`` set to a value that is not a
non-negative finite number is logged once and ignored instead of raising
at the first ``ProgressBar()``.

Deprecation warnings for ``maxval``, ``poll`` and ``currval`` name the
caller's file and line. A warnings filter by module ``progressbar`` no
longer matches them, a filter by category or message does.

``StreamWrapper.lock`` and ``listeners_lock`` are read-only properties
shared with the wrapped streams and reset after ``fork``. A subclass
that assigned its own lock raises ``AttributeError`` at construction.
``update_capturing()`` calls ``flush()`` once the last capture stops, as
in 4.6.0. ``wrapped_excepthook`` is a ``bool``.


The ``progressbar`` and ``bar`` commands, and ``python -m progressbar``,
now exit with status 130 after Ctrl-C interrupts a transfer. Previously
they exited with status 0. Scripts that check the exit status can now
distinguish an interrupted transfer from a completed copy.

The ``python-utils`` dependency now requires 4.1.4 or newer, up from
3.8.1. Older releases render a negative ``scale_1024`` power as
``0.1 YiB`` instead of the byte count. An environment that pins
``python-utils<4`` has to lift that pin before upgrading.

Captured output now survives a drain failure on the other stream, and
unwrapping restores the original stream even when its capture buffer is
closed. Built-in ``StringIO`` capture writes and drains remain atomic.
Caller-replaced buffers keep their method overrides, which run without
stream locks. As in 4.6.0, callers synchronise concurrent writes and drains
on those custom buffers. A capture-hook failure now retains the other
stream's exception in the primary failure's context chain.

Specialised format templates retain their escaping and result types.
Their field paths, including nested format specifications, are checked
before calling the application's formatter.

MultiBar expiry keeps a replacement registered under the same exact
``str`` label. Assignment, update, in-place union and ordinary removal
methods share its membership guard. Lifecycle tracking uses bar identity
without calling application hash or equality methods, and the guard resets
after fork.
Custom label objects retain their hash and equality hooks and their
identity as dictionary keys. Using one for mutation or indexing switches
that MultiBar instance permanently to the 4.6.0 concurrency contract:
callers synchronise concurrent mutation and rendering, including expiry.
These hooks run without the membership guard, even for later exact
``str`` lookups. Clearing the instance does not reset this mode. Direct
calls to ``dict`` base-class mutation methods bypass this protocol.

Revision 1.20: download - view: text, markup, annotated - select for diffs
Fri Oct 16 19:43:51 2026 UTC (4 weeks, 2 days ago) by adam
Branches: MAIN
Diff to: previous 1.19: preferred, colored
Changes since revision 1.19: +2 -2 lines
Forget Python 3.10

Revision 1.19: download - view: text, markup, annotated - select for diffs
Fri Aug 14 08:29:09 2026 UTC (3 months ago) by adam
Branches: MAIN
CVS tags: pkgsrc-2026Q3-base, pkgsrc-2026Q3
Diff to: previous 1.18: preferred, colored
Changes since revision 1.18: +6 -8 lines
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.

Revision 1.18: download - view: text, markup, annotated - select for diffs
Tue Jan 6 11:18:43 2026 UTC (10 months, 1 week ago) by wiz
Branches: MAIN
CVS tags: pkgsrc-2026Q2-base, pkgsrc-2026Q2, pkgsrc-2026Q1-base, pkgsrc-2026Q1
Diff to: previous 1.17: preferred, colored
Changes since revision 1.17: +2 -2 lines
*: forbid some more Python 3.11 for sphinx users

List from grep

Revision 1.17: download - view: text, markup, annotated - select for diffs
Thu Oct 9 07:57:34 2025 UTC (13 months, 1 week ago) by wiz
Branches: MAIN
CVS tags: pkgsrc-2025Q4-base, pkgsrc-2025Q4
Diff to: previous 1.16: preferred, colored
Changes since revision 1.16: +2 -2 lines
*: remove reference to (removed) Python 3.9

Revision 1.16: download - view: text, markup, annotated - select for diffs
Sat Apr 12 19:43:14 2025 UTC (19 months ago) by adam
Branches: MAIN
CVS tags: pkgsrc-2025Q3-base, pkgsrc-2025Q3, pkgsrc-2025Q2-base, pkgsrc-2025Q2
Diff to: previous 1.15: preferred, colored
Changes since revision 1.15: +3 -2 lines
Fix PLIST after py-setuptools update; bump depends and revision

Revision 1.15: download - view: text, markup, annotated - select for diffs
Sun Feb 23 16:59:18 2025 UTC (20 months, 3 weeks ago) by wiz
Branches: MAIN
CVS tags: pkgsrc-2025Q1-base, pkgsrc-2025Q1
Diff to: previous 1.14: preferred, colored
Changes since revision 1.14: +3 -1 lines
*: py-sphinx 8.2 drops support for Python 3.10

Revision 1.14: download - view: text, markup, annotated - select for diffs
Mon Nov 11 07:28:19 2024 UTC (2 years ago) by wiz
Branches: MAIN
CVS tags: pkgsrc-2024Q4-base, pkgsrc-2024Q4
Diff to: previous 1.13: preferred, colored
Changes since revision 1.13: +1 -2 lines
py-*: remove unused tool dependency

py-setuptools includes the py-wheel functionality nowadays

Revision 1.13: download - view: text, markup, annotated - select for diffs
Fri Sep 13 19:21:43 2024 UTC (2 years, 2 months ago) by adam
Branches: MAIN
CVS tags: pkgsrc-2024Q3-base, pkgsrc-2024Q3
Diff to: previous 1.12: preferred, colored
Changes since revision 1.12: +2 -4 lines
py-progressbar2: updated to 4.5.0

4.5.0
Improved build system with many more (and improved) type hints.

Revision 1.12: download - view: text, markup, annotated - select for diffs
Sun Mar 24 17:51:05 2024 UTC (2 years, 7 months ago) by adam
Branches: MAIN
CVS tags: pkgsrc-2024Q2-base, pkgsrc-2024Q2, pkgsrc-2024Q1-base, pkgsrc-2024Q1
Diff to: previous 1.11: preferred, colored
Changes since revision 1.11: +7 -2 lines
py-progressbar2: updated to 4.4.2

v4.4.2
Fixed visible control characters issue on Windows.

v4.4.1
Included fix for the progressbar command

v4.4.0
Greatly improved Windows (colour) support and fixed several Windows bugs

Revision 1.11: download - view: text, markup, annotated - select for diffs
Thu Jan 4 22:42:52 2024 UTC (2 years, 10 months ago) by adam
Branches: MAIN
Diff to: previous 1.10: preferred, colored
Changes since revision 1.10: +2 -6 lines
py-progressbar2: updated to 4.3.2

v4.3.2
disabling run-command until it is properly finished

v4.3.1
fixed typeerror on Windows
excluded docs from install
added readthedocs configuration file

Revision 1.10: download - view: text, markup, annotated - select for diffs
Wed Dec 20 18:52:12 2023 UTC (2 years, 10 months ago) by nros
Branches: MAIN
CVS tags: pkgsrc-2023Q4-base, pkgsrc-2023Q4
Diff to: previous 1.9: preferred, colored
Changes since revision 1.9: +2 -1 lines
py-progressbar2: also needs wheel to build wheel

Revision 1.9: download - view: text, markup, annotated - select for diffs
Tue Dec 19 21:10:47 2023 UTC (2 years, 10 months ago) by nros
Branches: MAIN
Diff to: previous 1.8: preferred, colored
Changes since revision 1.8: +2 -1 lines
py-progressbar2: uses setuptools as build engine for wheel

Revision 1.8: download - view: text, markup, annotated - select for diffs
Mon Dec 18 05:48:47 2023 UTC (2 years, 10 months ago) by adam
Branches: MAIN
Diff to: previous 1.7: preferred, colored
Changes since revision 1.7: +11 -6 lines
py-progressbar2: updated to 4.3.0

v4.3.0

Added support for multithreading, multiprocessing, colors (16, 256 and full color) and many interactive terminal features such as continuous printing for a live ETA

Revision 1.7: download - view: text, markup, annotated - select for diffs
Mon Oct 31 15:27:28 2022 UTC (4 years ago) by adam
Branches: MAIN
CVS tags: pkgsrc-2023Q3-base, pkgsrc-2023Q3, pkgsrc-2023Q2-base, pkgsrc-2023Q2, pkgsrc-2023Q1-base, pkgsrc-2023Q1, pkgsrc-2022Q4-base, pkgsrc-2022Q4
Diff to: previous 1.6: preferred, colored
Changes since revision 1.6: +2 -2 lines
py-progressbar2: updated to 4.2.0

v4.2.0
Added increment() method for easy usage as callback from libraries such as boto

Revision 1.6: download - view: text, markup, annotated - select for diffs
Thu Oct 20 08:59:16 2022 UTC (4 years ago) by adam
Branches: MAIN
Diff to: previous 1.5: preferred, colored
Changes since revision 1.5: +3 -3 lines
py-progressbar2: updated to 4.1.1

v4.1.1
Fixed backwards compatibility with original progressbar library

v4.1.0
Delegate unknown attrs to target in WrappingIO

Revision 1.5: download - view: text, markup, annotated - select for diffs
Wed Jan 5 22:26:42 2022 UTC (4 years, 10 months ago) by wiz
Branches: MAIN
CVS tags: pkgsrc-2022Q3-base, pkgsrc-2022Q3, pkgsrc-2022Q2-base, pkgsrc-2022Q2, pkgsrc-2022Q1-base, pkgsrc-2022Q1
Diff to: previous 1.4: preferred, colored
Changes since revision 1.4: +7 -5 lines
py-progressbar2: update to 4.0.0.

Updated to Python 3.10 including type hinting

Revision 1.4: download - view: text, markup, annotated - select for diffs
Tue Jan 4 20:53:22 2022 UTC (4 years, 10 months ago) by wiz
Branches: MAIN
Diff to: previous 1.3: preferred, colored
Changes since revision 1.3: +2 -1 lines
*: bump PKGREVISION for egg.mk users

They now have a tool dependency on py-setuptools instead of a DEPENDS

Revision 1.3: download - view: text, markup, annotated - select for diffs
Sun Dec 19 13:42:58 2021 UTC (4 years, 10 months ago) by wiz
Branches: MAIN
CVS tags: pkgsrc-2021Q4-base, pkgsrc-2021Q4
Diff to: previous 1.2: preferred, colored
Changes since revision 1.2: +3 -1 lines
py-utils: mark as not for python 2.7

Also mark its users that way

Revision 1.2: download - view: text, markup, annotated - select for diffs
Tue Nov 16 19:42:31 2021 UTC (5 years ago) by adam
Branches: MAIN
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +9 -11 lines
py-progressbar2: updated to 3.55.0

3.55.0:
Unknown changes

Revision 1.1: download - view: text, markup, annotated - select for diffs
Tue Aug 18 20:19:20 2020 UTC (6 years, 2 months ago) by riastradh
Branches: MAIN
CVS tags: pkgsrc-2021Q3-base, pkgsrc-2021Q3, pkgsrc-2021Q2-base, pkgsrc-2021Q2, pkgsrc-2021Q1-base, pkgsrc-2021Q1, pkgsrc-2020Q4-base, pkgsrc-2020Q4, pkgsrc-2020Q3-base, pkgsrc-2020Q3
Import progressbar2-3.51.4 from pypi as devel/py-progressbar2.

Text progress bar library for Python.

Diff request

This form allows you to request diffs between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.

Log view options

CVSweb <webmaster@jp.NetBSD.org>