progressbar2 4.5.0__tar.gz → 4.7.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- progressbar2-4.7.0/.github/FUNDING.yml +4 -0
- progressbar2-4.5.0/ISSUE_TEMPLATE → progressbar2-4.7.0/.github/ISSUE_TEMPLATE.md +0 -1
- progressbar2-4.7.0/.github/workflows/autofix.yml +36 -0
- {progressbar2-4.5.0 → progressbar2-4.7.0}/.github/workflows/codeql.yml +8 -8
- progressbar2-4.7.0/.github/workflows/docs.yml +45 -0
- progressbar2-4.7.0/.github/workflows/main.yml +137 -0
- progressbar2-4.7.0/.github/workflows/release.yml +109 -0
- {progressbar2-4.5.0 → progressbar2-4.7.0}/.github/workflows/stale.yml +3 -1
- {progressbar2-4.5.0 → progressbar2-4.7.0}/.gitignore +14 -0
- progressbar2-4.7.0/.npmrc +3 -0
- progressbar2-4.7.0/.pre-commit-config.yaml +18 -0
- {progressbar2-4.5.0 → progressbar2-4.7.0}/.readthedocs.yaml +14 -2
- progressbar2-4.7.0/AGENTS.md +16 -0
- progressbar2-4.7.0/CHANGES.rst +106 -0
- progressbar2-4.7.0/CONTRIBUTING.rst +182 -0
- {progressbar2-4.5.0 → progressbar2-4.7.0}/LICENSE +0 -1
- {progressbar2-4.5.0 → progressbar2-4.7.0}/MANIFEST.in +1 -5
- progressbar2-4.7.0/PKG-INFO +512 -0
- progressbar2-4.7.0/README.md +420 -0
- progressbar2-4.7.0/benchmarks/bench.py +380 -0
- progressbar2-4.7.0/benchmarks/chart.png +0 -0
- progressbar2-4.7.0/benchmarks/report.md +86 -0
- progressbar2-4.7.0/benchmarks/report.py +404 -0
- progressbar2-4.7.0/benchmarks/requirements.txt +6 -0
- progressbar2-4.7.0/benchmarks/results.json +117 -0
- progressbar2-4.7.0/docs/_ext/demo.py +186 -0
- progressbar2-4.7.0/docs/_ext/page_assets.py +38 -0
- progressbar2-4.7.0/docs/_static/brand.css +41 -0
- progressbar2-4.7.0/docs/_static/demos/homepage-quickstart.svg +41 -0
- progressbar2-4.7.0/docs/_static/demos/howto-colors.svg +41 -0
- progressbar2-4.7.0/docs/_static/demos/howto-custom-widget.svg +41 -0
- progressbar2-4.7.0/docs/_static/demos/howto-dynamic-messages.svg +41 -0
- progressbar2-4.7.0/docs/_static/demos/howto-file-transfer.svg +41 -0
- progressbar2-4.7.0/docs/_static/demos/howto-iterable-wrapper.svg +41 -0
- progressbar2-4.7.0/docs/_static/demos/howto-logging-integration.svg +41 -0
- progressbar2-4.7.0/docs/_static/demos/howto-multibar-line-offset.svg +41 -0
- progressbar2-4.7.0/docs/_static/demos/howto-multibar.svg +41 -0
- progressbar2-4.7.0/docs/_static/demos/howto-non-tty.svg +41 -0
- progressbar2-4.7.0/docs/_static/demos/howto-parallel-execution.svg +41 -0
- progressbar2-4.7.0/docs/_static/demos/howto-prefix-suffix.svg +41 -0
- progressbar2-4.7.0/docs/_static/demos/howto-redirect-stdout.svg +41 -0
- progressbar2-4.7.0/docs/_static/demos/howto-tqdm-style.svg +41 -0
- progressbar2-4.7.0/docs/_static/demos/howto-unknown-length.svg +41 -0
- progressbar2-4.7.0/docs/_static/demos/readme-cli.svg +41 -0
- progressbar2-4.7.0/docs/_static/demos/readme-colors.svg +41 -0
- progressbar2-4.7.0/docs/_static/demos/readme-hero.svg +41 -0
- progressbar2-4.7.0/docs/_static/demos/readme-multibar.svg +41 -0
- progressbar2-4.7.0/docs/_static/demos/readme-parallel.svg +41 -0
- progressbar2-4.7.0/docs/_static/demos/readme-race.svg +41 -0
- progressbar2-4.7.0/docs/_static/demos/readme-unknown-length.svg +41 -0
- progressbar2-4.7.0/docs/_static/demos/tutorial-step1.svg +41 -0
- progressbar2-4.7.0/docs/_static/demos/tutorial-step2.svg +41 -0
- progressbar2-4.7.0/docs/_static/demos/tutorial-step3.svg +41 -0
- progressbar2-4.7.0/docs/_static/demos/tutorial-step4.svg +41 -0
- progressbar2-4.7.0/docs/_static/demos/tutorial-step5.svg +41 -0
- progressbar2-4.7.0/docs/_static/demos/widgets-absolute-eta.svg +41 -0
- progressbar2-4.7.0/docs/_static/demos/widgets-adaptive-eta.svg +41 -0
- progressbar2-4.7.0/docs/_static/demos/widgets-adaptive-transfer-speed.svg +41 -0
- progressbar2-4.7.0/docs/_static/demos/widgets-animated-marker.svg +41 -0
- progressbar2-4.7.0/docs/_static/demos/widgets-bar.svg +41 -0
- progressbar2-4.7.0/docs/_static/demos/widgets-bouncing-bar.svg +41 -0
- progressbar2-4.7.0/docs/_static/demos/widgets-counter.svg +41 -0
- progressbar2-4.7.0/docs/_static/demos/widgets-current-time.svg +41 -0
- progressbar2-4.7.0/docs/_static/demos/widgets-data-size.svg +41 -0
- progressbar2-4.7.0/docs/_static/demos/widgets-dynamic-message.svg +41 -0
- progressbar2-4.7.0/docs/_static/demos/widgets-eta.svg +41 -0
- progressbar2-4.7.0/docs/_static/demos/widgets-file-transfer-speed.svg +41 -0
- progressbar2-4.7.0/docs/_static/demos/widgets-format-custom-text.svg +41 -0
- progressbar2-4.7.0/docs/_static/demos/widgets-format-label-bar.svg +41 -0
- progressbar2-4.7.0/docs/_static/demos/widgets-format-label.svg +41 -0
- progressbar2-4.7.0/docs/_static/demos/widgets-granular-bar.svg +41 -0
- progressbar2-4.7.0/docs/_static/demos/widgets-job-status-bar.svg +41 -0
- progressbar2-4.7.0/docs/_static/demos/widgets-multi-progress-bar.svg +41 -0
- progressbar2-4.7.0/docs/_static/demos/widgets-multi-range-bar.svg +41 -0
- progressbar2-4.7.0/docs/_static/demos/widgets-percentage-label-bar.svg +41 -0
- progressbar2-4.7.0/docs/_static/demos/widgets-percentage.svg +41 -0
- progressbar2-4.7.0/docs/_static/demos/widgets-postfix.svg +41 -0
- progressbar2-4.7.0/docs/_static/demos/widgets-reverse-bar.svg +41 -0
- progressbar2-4.7.0/docs/_static/demos/widgets-rotating-marker.svg +41 -0
- progressbar2-4.7.0/docs/_static/demos/widgets-simple-progress.svg +41 -0
- progressbar2-4.7.0/docs/_static/demos/widgets-smoothing-eta.svg +41 -0
- progressbar2-4.7.0/docs/_static/demos/widgets-timer.svg +41 -0
- progressbar2-4.7.0/docs/_static/demos/widgets-unit-progress.svg +41 -0
- progressbar2-4.7.0/docs/_static/demos/widgets-variable.svg +41 -0
- progressbar2-4.7.0/docs/_static/guide-cards.css +23 -0
- progressbar2-4.7.0/docs/_static/home.css +124 -0
- progressbar2-4.7.0/docs/_static/livecode/livecode.css +105 -0
- progressbar2-4.7.0/docs/_static/livecode/livecode.js +293 -0
- progressbar2-4.7.0/docs/_static/livecode/worker.js +220 -0
- progressbar2-4.7.0/docs/_static/section-pages.css +67 -0
- progressbar2-4.7.0/docs/_static/showcase.js +119 -0
- progressbar2-4.7.0/docs/_static/vendor/LICENSE-addon-fit.txt +19 -0
- progressbar2-4.7.0/docs/_static/vendor/LICENSE-xterm.txt +21 -0
- progressbar2-4.7.0/docs/_static/vendor/README.md +27 -0
- progressbar2-4.7.0/docs/_static/vendor/addon-fit.js +2 -0
- progressbar2-4.7.0/docs/_static/vendor/addon-fit.js.map +1 -0
- progressbar2-4.7.0/docs/_static/vendor/xterm.css +218 -0
- progressbar2-4.7.0/docs/_static/vendor/xterm.js +2 -0
- progressbar2-4.7.0/docs/_templates/page.html +50 -0
- {progressbar2-4.5.0 → progressbar2-4.7.0}/docs/conf.py +85 -7
- progressbar2-4.7.0/docs/examples/__init__.py +22 -0
- progressbar2-4.7.0/docs/examples/_loader.py +27 -0
- progressbar2-4.7.0/docs/examples/_registry.py +185 -0
- progressbar2-4.7.0/docs/examples/homepage/__init__.py +1 -0
- progressbar2-4.7.0/docs/examples/homepage/quickstart.py +14 -0
- progressbar2-4.7.0/docs/examples/howto/__init__.py +0 -0
- progressbar2-4.7.0/docs/examples/howto/colors.py +47 -0
- progressbar2-4.7.0/docs/examples/howto/custom_widget.py +48 -0
- progressbar2-4.7.0/docs/examples/howto/dynamic_messages.py +44 -0
- progressbar2-4.7.0/docs/examples/howto/file_transfer.py +43 -0
- progressbar2-4.7.0/docs/examples/howto/iterable_wrapper.py +26 -0
- progressbar2-4.7.0/docs/examples/howto/logging_integration.py +54 -0
- progressbar2-4.7.0/docs/examples/howto/multibar.py +44 -0
- progressbar2-4.7.0/docs/examples/howto/multibar_line_offset.py +53 -0
- progressbar2-4.7.0/docs/examples/howto/non_tty.py +30 -0
- progressbar2-4.7.0/docs/examples/howto/parallel_execution.py +57 -0
- progressbar2-4.7.0/docs/examples/howto/prefix_suffix.py +44 -0
- progressbar2-4.7.0/docs/examples/howto/redirect_stdout.py +30 -0
- progressbar2-4.7.0/docs/examples/howto/tqdm_style.py +40 -0
- progressbar2-4.7.0/docs/examples/howto/unknown_length.py +32 -0
- progressbar2-4.7.0/docs/examples/readme/__init__.py +0 -0
- progressbar2-4.7.0/docs/examples/readme/cli.py +47 -0
- progressbar2-4.7.0/docs/examples/readme/colors.py +68 -0
- progressbar2-4.7.0/docs/examples/readme/hero.py +26 -0
- progressbar2-4.7.0/docs/examples/readme/multibar.py +33 -0
- progressbar2-4.7.0/docs/examples/readme/parallel.py +49 -0
- progressbar2-4.7.0/docs/examples/readme/unknown_length.py +20 -0
- progressbar2-4.7.0/docs/examples/tutorial/__init__.py +0 -0
- progressbar2-4.7.0/docs/examples/tutorial/step1.py +14 -0
- progressbar2-4.7.0/docs/examples/tutorial/step2.py +22 -0
- progressbar2-4.7.0/docs/examples/tutorial/step3.py +21 -0
- progressbar2-4.7.0/docs/examples/tutorial/step4.py +28 -0
- progressbar2-4.7.0/docs/examples/tutorial/step5.py +32 -0
- progressbar2-4.7.0/docs/examples/widgets/__init__.py +0 -0
- progressbar2-4.7.0/docs/examples/widgets/absolute_eta.py +34 -0
- progressbar2-4.7.0/docs/examples/widgets/adaptive_eta.py +37 -0
- progressbar2-4.7.0/docs/examples/widgets/adaptive_transfer_speed.py +39 -0
- progressbar2-4.7.0/docs/examples/widgets/animated_marker.py +25 -0
- progressbar2-4.7.0/docs/examples/widgets/bar.py +25 -0
- progressbar2-4.7.0/docs/examples/widgets/bouncing_bar.py +31 -0
- progressbar2-4.7.0/docs/examples/widgets/counter.py +25 -0
- progressbar2-4.7.0/docs/examples/widgets/current_time.py +29 -0
- progressbar2-4.7.0/docs/examples/widgets/data_size.py +26 -0
- progressbar2-4.7.0/docs/examples/widgets/dynamic_message.py +35 -0
- progressbar2-4.7.0/docs/examples/widgets/eta.py +39 -0
- progressbar2-4.7.0/docs/examples/widgets/file_transfer_speed.py +32 -0
- progressbar2-4.7.0/docs/examples/widgets/format_custom_text.py +29 -0
- progressbar2-4.7.0/docs/examples/widgets/format_label.py +28 -0
- progressbar2-4.7.0/docs/examples/widgets/format_label_bar.py +25 -0
- progressbar2-4.7.0/docs/examples/widgets/granular_bar.py +29 -0
- progressbar2-4.7.0/docs/examples/widgets/job_status_bar.py +34 -0
- progressbar2-4.7.0/docs/examples/widgets/multi_progress_bar.py +46 -0
- progressbar2-4.7.0/docs/examples/widgets/multi_range_bar.py +49 -0
- progressbar2-4.7.0/docs/examples/widgets/percentage.py +25 -0
- progressbar2-4.7.0/docs/examples/widgets/percentage_label_bar.py +25 -0
- progressbar2-4.7.0/docs/examples/widgets/postfix.py +38 -0
- progressbar2-4.7.0/docs/examples/widgets/reverse_bar.py +24 -0
- progressbar2-4.7.0/docs/examples/widgets/rotating_marker.py +28 -0
- progressbar2-4.7.0/docs/examples/widgets/simple_progress.py +24 -0
- progressbar2-4.7.0/docs/examples/widgets/smoothing_eta.py +38 -0
- progressbar2-4.7.0/docs/examples/widgets/timer.py +30 -0
- progressbar2-4.7.0/docs/examples/widgets/unit_progress.py +25 -0
- progressbar2-4.7.0/docs/examples/widgets/variable.py +37 -0
- progressbar2-4.7.0/docs/examples.rst +8 -0
- progressbar2-4.7.0/docs/explanation/backwards-compatibility.rst +87 -0
- progressbar2-4.7.0/docs/explanation/index.rst +74 -0
- progressbar2-4.7.0/docs/explanation/performance-and-the-fast-path.rst +122 -0
- progressbar2-4.7.0/docs/explanation/rendering-and-the-update-gate.rst +99 -0
- progressbar2-4.7.0/docs/explanation/terminal-detection.rst +120 -0
- progressbar2-4.7.0/docs/howto/colors.rst +32 -0
- progressbar2-4.7.0/docs/howto/custom-widget.rst +22 -0
- progressbar2-4.7.0/docs/howto/dynamic-messages.rst +23 -0
- progressbar2-4.7.0/docs/howto/file-transfer.rst +17 -0
- progressbar2-4.7.0/docs/howto/index.rst +259 -0
- progressbar2-4.7.0/docs/howto/iterable-wrapper.rst +20 -0
- progressbar2-4.7.0/docs/howto/logging-integration.rst +37 -0
- progressbar2-4.7.0/docs/howto/multibar-line-offset.rst +34 -0
- progressbar2-4.7.0/docs/howto/multibar.rst +32 -0
- progressbar2-4.7.0/docs/howto/non-tty.rst +18 -0
- progressbar2-4.7.0/docs/howto/parallel-execution.rst +244 -0
- progressbar2-4.7.0/docs/howto/prefix-suffix.rst +23 -0
- progressbar2-4.7.0/docs/howto/redirect-stdout.rst +16 -0
- progressbar2-4.7.0/docs/howto/tqdm-style.rst +26 -0
- progressbar2-4.7.0/docs/howto/unknown-length.rst +15 -0
- progressbar2-4.7.0/docs/index.rst +128 -0
- progressbar2-4.7.0/docs/installation.rst +99 -0
- progressbar2-4.7.0/docs/major-version-backlog.md +107 -0
- progressbar2-4.7.0/docs/progressbar.fast.rst +7 -0
- {progressbar2-4.5.0 → progressbar2-4.7.0}/docs/progressbar.rst +3 -0
- {progressbar2-4.5.0 → progressbar2-4.7.0}/docs/progressbar.terminal.rst +0 -8
- progressbar2-4.7.0/docs/reference/cli.rst +157 -0
- progressbar2-4.7.0/docs/reference/index.rst +100 -0
- progressbar2-4.7.0/docs/reference/multibar.rst +76 -0
- progressbar2-4.7.0/docs/reference/parallel.rst +118 -0
- progressbar2-4.7.0/docs/reference/progressbar.rst +118 -0
- {progressbar2-4.5.0 → progressbar2-4.7.0}/docs/requirements.txt +1 -0
- progressbar2-4.7.0/docs/sponsor.rst +19 -0
- progressbar2-4.7.0/docs/tutorial/index.rst +104 -0
- progressbar2-4.7.0/docs/tutorial/step1.rst +28 -0
- progressbar2-4.7.0/docs/tutorial/step2.rst +25 -0
- progressbar2-4.7.0/docs/tutorial/step3.rst +19 -0
- progressbar2-4.7.0/docs/tutorial/step4.rst +19 -0
- progressbar2-4.7.0/docs/tutorial/step5.rst +28 -0
- progressbar2-4.7.0/docs/usage.rst +11 -0
- progressbar2-4.7.0/docs/widgets/absolute-eta.rst +27 -0
- progressbar2-4.7.0/docs/widgets/adaptive-eta.rst +31 -0
- progressbar2-4.7.0/docs/widgets/adaptive-transfer-speed.rst +25 -0
- progressbar2-4.7.0/docs/widgets/animated-marker.rst +32 -0
- progressbar2-4.7.0/docs/widgets/bar.rst +27 -0
- progressbar2-4.7.0/docs/widgets/bouncing-bar.rst +27 -0
- progressbar2-4.7.0/docs/widgets/counter.rst +25 -0
- progressbar2-4.7.0/docs/widgets/current-time.rst +26 -0
- progressbar2-4.7.0/docs/widgets/data-size.rst +25 -0
- progressbar2-4.7.0/docs/widgets/dynamic-message.rst +23 -0
- progressbar2-4.7.0/docs/widgets/eta.rst +29 -0
- progressbar2-4.7.0/docs/widgets/file-transfer-speed.rst +26 -0
- progressbar2-4.7.0/docs/widgets/format-custom-text.rst +25 -0
- progressbar2-4.7.0/docs/widgets/format-label-bar.rst +26 -0
- progressbar2-4.7.0/docs/widgets/format-label.rst +26 -0
- progressbar2-4.7.0/docs/widgets/granular-bar.rst +25 -0
- progressbar2-4.7.0/docs/widgets/index.rst +137 -0
- progressbar2-4.7.0/docs/widgets/job-status-bar.rst +28 -0
- progressbar2-4.7.0/docs/widgets/multi-progress-bar.rst +26 -0
- progressbar2-4.7.0/docs/widgets/multi-range-bar.rst +30 -0
- progressbar2-4.7.0/docs/widgets/percentage-label-bar.rst +26 -0
- progressbar2-4.7.0/docs/widgets/percentage.rst +25 -0
- progressbar2-4.7.0/docs/widgets/postfix.rst +25 -0
- progressbar2-4.7.0/docs/widgets/reverse-bar.rst +23 -0
- progressbar2-4.7.0/docs/widgets/rotating-marker.rst +24 -0
- progressbar2-4.7.0/docs/widgets/simple-progress.rst +26 -0
- progressbar2-4.7.0/docs/widgets/smoothing-eta.rst +30 -0
- progressbar2-4.7.0/docs/widgets/timer.rst +27 -0
- progressbar2-4.7.0/docs/widgets/unit-progress.rst +26 -0
- progressbar2-4.7.0/docs/widgets/variable.rst +26 -0
- progressbar2-4.7.0/examples.py +79 -0
- {progressbar2-4.5.0 → progressbar2-4.7.0}/progressbar/__about__.py +5 -3
- progressbar2-4.7.0/progressbar/__init__.py +259 -0
- progressbar2-4.7.0/progressbar/__main__.py +730 -0
- progressbar2-4.7.0/progressbar/_identity.py +79 -0
- progressbar2-4.7.0/progressbar/_parallel/__init__.py +57 -0
- progressbar2-4.7.0/progressbar/_parallel/_async.py +452 -0
- progressbar2-4.7.0/progressbar/_parallel/_common.py +212 -0
- progressbar2-4.7.0/progressbar/_parallel/_decorator.py +138 -0
- progressbar2-4.7.0/progressbar/_parallel/_display.py +370 -0
- progressbar2-4.7.0/progressbar/_parallel/_shell.py +210 -0
- progressbar2-4.7.0/progressbar/_parallel/_sync.py +825 -0
- progressbar2-4.7.0/progressbar/algorithms.py +112 -0
- progressbar2-4.7.0/progressbar/bar.py +1953 -0
- progressbar2-4.7.0/progressbar/base.py +51 -0
- progressbar2-4.7.0/progressbar/env.py +298 -0
- progressbar2-4.7.0/progressbar/fast.py +159 -0
- progressbar2-4.7.0/progressbar/multi.py +847 -0
- progressbar2-4.7.0/progressbar/py.typed +0 -0
- progressbar2-4.7.0/progressbar/shortcuts.py +108 -0
- progressbar2-4.7.0/progressbar/terminal/__init__.py +12 -0
- progressbar2-4.7.0/progressbar/terminal/base.py +1328 -0
- {progressbar2-4.5.0 → progressbar2-4.7.0}/progressbar/terminal/colors.py +195 -156
- progressbar2-4.7.0/progressbar/terminal/os_specific/__init__.py +51 -0
- progressbar2-4.7.0/progressbar/terminal/os_specific/posix.py +39 -0
- progressbar2-4.7.0/progressbar/terminal/os_specific/windows.py +316 -0
- progressbar2-4.7.0/progressbar/terminal/stream.py +241 -0
- progressbar2-4.7.0/progressbar/utils.py +1289 -0
- progressbar2-4.7.0/progressbar/widgets.py +2466 -0
- progressbar2-4.7.0/progressbar2.egg-info/PKG-INFO +512 -0
- progressbar2-4.7.0/progressbar2.egg-info/SOURCES.txt +372 -0
- {progressbar2-4.5.0 → progressbar2-4.7.0}/progressbar2.egg-info/entry_points.txt +1 -0
- {progressbar2-4.5.0 → progressbar2-4.7.0}/progressbar2.egg-info/requires.txt +12 -4
- progressbar2-4.7.0/progressbar2.egg-info/top_level.txt +1 -0
- {progressbar2-4.5.0 → progressbar2-4.7.0}/pyproject.toml +123 -74
- progressbar2-4.7.0/pytest.ini +42 -0
- {progressbar2-4.5.0 → progressbar2-4.7.0}/ruff.toml +32 -11
- progressbar2-4.7.0/scripts/__init__.py +1 -0
- progressbar2-4.7.0/scripts/build_docs_wheels.py +159 -0
- progressbar2-4.7.0/scripts/render_demos.py +963 -0
- progressbar2-4.7.0/scripts/render_race.py +193 -0
- progressbar2-4.7.0/tests/api_surface_snapshot.json +559 -0
- progressbar2-4.7.0/tests/conftest.py +80 -0
- progressbar2-4.7.0/tests/console/__init__.py +0 -0
- progressbar2-4.7.0/tests/console/test_console.py +390 -0
- progressbar2-4.7.0/tests/console/test_example_colours.py +105 -0
- progressbar2-4.7.0/tests/console/test_homepage.py +350 -0
- progressbar2-4.7.0/tests/console/test_showcase_assets.py +40 -0
- {progressbar2-4.5.0 → progressbar2-4.7.0}/tests/original_examples.py +1 -1
- {progressbar2-4.5.0 → progressbar2-4.7.0}/tests/test_algorithms.py +26 -4
- progressbar2-4.7.0/tests/test_api_surface.py +178 -0
- progressbar2-4.7.0/tests/test_color.py +665 -0
- progressbar2-4.7.0/tests/test_color_fast_path.py +422 -0
- {progressbar2-4.5.0 → progressbar2-4.7.0}/tests/test_custom_widgets.py +36 -0
- progressbar2-4.7.0/tests/test_data_transfer_bar.py +51 -0
- progressbar2-4.7.0/tests/test_demo_animations.py +40 -0
- progressbar2-4.7.0/tests/test_deprecation_warnings.py +95 -0
- progressbar2-4.7.0/tests/test_docs_examples.py +265 -0
- progressbar2-4.7.0/tests/test_docs_wheel_urls.py +27 -0
- progressbar2-4.7.0/tests/test_env_detection.py +129 -0
- {progressbar2-4.5.0 → progressbar2-4.7.0}/tests/test_failure.py +50 -0
- progressbar2-4.7.0/tests/test_fast_default.py +376 -0
- progressbar2-4.7.0/tests/test_fastpath.py +620 -0
- progressbar2-4.7.0/tests/test_format_security.py +451 -0
- progressbar2-4.7.0/tests/test_init_exports.py +82 -0
- progressbar2-4.7.0/tests/test_job_status.py +87 -0
- {progressbar2-4.5.0 → progressbar2-4.7.0}/tests/test_monitor_progress.py +15 -22
- progressbar2-4.7.0/tests/test_multibar.py +1213 -0
- progressbar2-4.7.0/tests/test_native_accelerator.py +286 -0
- progressbar2-4.7.0/tests/test_needs_update.py +93 -0
- progressbar2-4.7.0/tests/test_os_specific.py +17 -0
- progressbar2-4.7.0/tests/test_os_specific_posix.py +49 -0
- progressbar2-4.7.0/tests/test_parallel_aliases.py +110 -0
- progressbar2-4.7.0/tests/test_parallel_async.py +402 -0
- progressbar2-4.7.0/tests/test_parallel_common.py +156 -0
- progressbar2-4.7.0/tests/test_parallel_decorator.py +86 -0
- progressbar2-4.7.0/tests/test_parallel_display.py +194 -0
- progressbar2-4.7.0/tests/test_parallel_display_security.py +78 -0
- progressbar2-4.7.0/tests/test_parallel_errors.py +126 -0
- progressbar2-4.7.0/tests/test_parallel_imap.py +129 -0
- progressbar2-4.7.0/tests/test_parallel_map.py +157 -0
- progressbar2-4.7.0/tests/test_parallel_pool.py +113 -0
- progressbar2-4.7.0/tests/test_parallel_process.py +229 -0
- progressbar2-4.7.0/tests/test_parallel_shell.py +168 -0
- progressbar2-4.7.0/tests/test_perf_budget.py +156 -0
- progressbar2-4.7.0/tests/test_progressbar.py +487 -0
- progressbar2-4.7.0/tests/test_progressbar_command.py +704 -0
- progressbar2-4.7.0/tests/test_readme_demos.py +1137 -0
- progressbar2-4.7.0/tests/test_render_race.py +118 -0
- {progressbar2-4.5.0 → progressbar2-4.7.0}/tests/test_samples.py +17 -0
- {progressbar2-4.5.0 → progressbar2-4.7.0}/tests/test_speed.py +3 -1
- progressbar2-4.7.0/tests/test_stream.py +558 -0
- progressbar2-4.7.0/tests/test_stream_security.py +1468 -0
- progressbar2-4.7.0/tests/test_subclass_compat.py +493 -0
- {progressbar2-4.5.0 → progressbar2-4.7.0}/tests/test_terminal.py +51 -0
- {progressbar2-4.5.0 → progressbar2-4.7.0}/tests/test_timed.py +23 -0
- {progressbar2-4.5.0 → progressbar2-4.7.0}/tests/test_unknown_length.py +20 -0
- progressbar2-4.7.0/tests/test_update_guard.py +48 -0
- progressbar2-4.7.0/tests/test_utils.py +290 -0
- progressbar2-4.7.0/tests/test_widget_default_colours.py +152 -0
- progressbar2-4.7.0/tests/test_widgets.py +486 -0
- {progressbar2-4.5.0 → progressbar2-4.7.0}/tests/test_windows.py +27 -0
- progressbar2-4.7.0/tests/test_with.py +65 -0
- progressbar2-4.7.0/tools/README.md +17 -0
- progressbar2-4.7.0/tools/generate_colors.py +207 -0
- progressbar2-4.7.0/tox.ini +106 -0
- progressbar2-4.7.0/uv.lock +1282 -0
- progressbar2-4.5.0/.github/FUNDING.yml +0 -1
- progressbar2-4.5.0/.github/workflows/main.yml +0 -26
- progressbar2-4.5.0/.pre-commit-config.yaml +0 -14
- progressbar2-4.5.0/CHANGES.rst +0 -11
- progressbar2-4.5.0/CONTRIBUTING.rst +0 -126
- progressbar2-4.5.0/Makefile +0 -51
- progressbar2-4.5.0/PKG-INFO +0 -435
- progressbar2-4.5.0/README.rst +0 -353
- progressbar2-4.5.0/appveyor.yml +0 -41
- progressbar2-4.5.0/circle.yml +0 -8
- progressbar2-4.5.0/docs/_theme/LICENSE +0 -46
- progressbar2-4.5.0/docs/_theme/flask_theme_support.py +0 -89
- progressbar2-4.5.0/docs/_theme/wolph/layout.html +0 -27
- progressbar2-4.5.0/docs/_theme/wolph/relations.html +0 -19
- progressbar2-4.5.0/docs/_theme/wolph/static/flasky.css_t +0 -431
- progressbar2-4.5.0/docs/_theme/wolph/static/small_flask.css +0 -70
- progressbar2-4.5.0/docs/_theme/wolph/theme.conf +0 -7
- progressbar2-4.5.0/docs/examples.rst +0 -5
- progressbar2-4.5.0/docs/index.rst +0 -28
- progressbar2-4.5.0/docs/installation.rst +0 -16
- progressbar2-4.5.0/docs/usage.rst +0 -70
- progressbar2-4.5.0/examples.py +0 -866
- progressbar2-4.5.0/progressbar/__init__.py +0 -91
- progressbar2-4.5.0/progressbar/__main__.py +0 -399
- progressbar2-4.5.0/progressbar/algorithms.py +0 -51
- progressbar2-4.5.0/progressbar/bar.py +0 -1147
- progressbar2-4.5.0/progressbar/base.py +0 -36
- progressbar2-4.5.0/progressbar/env.py +0 -189
- progressbar2-4.5.0/progressbar/multi.py +0 -373
- progressbar2-4.5.0/progressbar/shortcuts.py +0 -22
- progressbar2-4.5.0/progressbar/terminal/__init__.py +0 -4
- progressbar2-4.5.0/progressbar/terminal/base.py +0 -623
- progressbar2-4.5.0/progressbar/terminal/os_specific/__init__.py +0 -27
- progressbar2-4.5.0/progressbar/terminal/os_specific/posix.py +0 -15
- progressbar2-4.5.0/progressbar/terminal/os_specific/windows.py +0 -174
- progressbar2-4.5.0/progressbar/terminal/stream.py +0 -142
- progressbar2-4.5.0/progressbar/utils.py +0 -450
- progressbar2-4.5.0/progressbar/widgets.py +0 -1619
- progressbar2-4.5.0/progressbar2.egg-info/PKG-INFO +0 -435
- progressbar2-4.5.0/progressbar2.egg-info/SOURCES.txt +0 -114
- progressbar2-4.5.0/progressbar2.egg-info/top_level.txt +0 -4
- progressbar2-4.5.0/pytest.ini +0 -28
- progressbar2-4.5.0/requirements.txt +0 -2
- progressbar2-4.5.0/tests/conftest.py +0 -49
- progressbar2-4.5.0/tests/test_color.py +0 -404
- progressbar2-4.5.0/tests/test_data_transfer_bar.py +0 -16
- progressbar2-4.5.0/tests/test_job_status.py +0 -22
- progressbar2-4.5.0/tests/test_multibar.py +0 -249
- progressbar2-4.5.0/tests/test_progressbar.py +0 -78
- progressbar2-4.5.0/tests/test_progressbar_command.py +0 -144
- progressbar2-4.5.0/tests/test_stream.py +0 -150
- progressbar2-4.5.0/tests/test_utils.py +0 -114
- progressbar2-4.5.0/tests/test_widgets.py +0 -206
- progressbar2-4.5.0/tests/test_with.py +0 -19
- progressbar2-4.5.0/tox.ini +0 -65
- {progressbar2-4.5.0 → progressbar2-4.7.0}/.github/ci-reporter.yml +0 -0
- {progressbar2-4.5.0 → progressbar2-4.7.0}/docs/.gitignore +0 -0
- {progressbar2-4.5.0 → progressbar2-4.7.0}/docs/Makefile +0 -0
- /progressbar2-4.5.0/progressbar/py.typed → /progressbar2-4.7.0/docs/_ext/__init__.py +0 -0
- {progressbar2-4.5.0 → progressbar2-4.7.0}/docs/contributing.rst +0 -0
- {progressbar2-4.5.0 → progressbar2-4.7.0}/docs/history.rst +0 -0
- {progressbar2-4.5.0 → progressbar2-4.7.0}/docs/make.bat +0 -0
- {progressbar2-4.5.0 → progressbar2-4.7.0}/docs/progressbar.algorithms.rst +0 -0
- {progressbar2-4.5.0 → progressbar2-4.7.0}/docs/progressbar.bar.rst +0 -0
- {progressbar2-4.5.0 → progressbar2-4.7.0}/docs/progressbar.base.rst +0 -0
- {progressbar2-4.5.0 → progressbar2-4.7.0}/docs/progressbar.env.rst +0 -0
- {progressbar2-4.5.0 → progressbar2-4.7.0}/docs/progressbar.multi.rst +0 -0
- {progressbar2-4.5.0 → progressbar2-4.7.0}/docs/progressbar.shortcuts.rst +0 -0
- {progressbar2-4.5.0 → progressbar2-4.7.0}/docs/progressbar.terminal.base.rst +0 -0
- {progressbar2-4.5.0 → progressbar2-4.7.0}/docs/progressbar.terminal.colors.rst +0 -0
- {progressbar2-4.5.0 → progressbar2-4.7.0}/docs/progressbar.terminal.stream.rst +0 -0
- {progressbar2-4.5.0 → progressbar2-4.7.0}/docs/progressbar.utils.rst +0 -0
- {progressbar2-4.5.0 → progressbar2-4.7.0}/docs/progressbar.widgets.rst +0 -0
- {progressbar2-4.5.0 → progressbar2-4.7.0}/progressbar2.egg-info/dependency_links.txt +0 -0
- {progressbar2-4.5.0 → progressbar2-4.7.0}/setup.cfg +0 -0
- {progressbar2-4.5.0 → progressbar2-4.7.0}/tests/requirements.txt +0 -0
- {progressbar2-4.5.0 → progressbar2-4.7.0}/tests/test_backwards_compatibility.py +0 -0
- {progressbar2-4.5.0 → progressbar2-4.7.0}/tests/test_data.py +0 -0
- {progressbar2-4.5.0 → progressbar2-4.7.0}/tests/test_dill_pickle.py +0 -0
- {progressbar2-4.5.0 → progressbar2-4.7.0}/tests/test_empty.py +0 -0
- {progressbar2-4.5.0 → progressbar2-4.7.0}/tests/test_end.py +0 -0
- {progressbar2-4.5.0 → progressbar2-4.7.0}/tests/test_flush.py +0 -0
- {progressbar2-4.5.0 → progressbar2-4.7.0}/tests/test_iterators.py +0 -0
- {progressbar2-4.5.0 → progressbar2-4.7.0}/tests/test_large_values.py +0 -0
- {progressbar2-4.5.0 → progressbar2-4.7.0}/tests/test_misc.py +0 -0
- {progressbar2-4.5.0 → progressbar2-4.7.0}/tests/test_timer.py +0 -0
- {progressbar2-4.5.0 → progressbar2-4.7.0}/tests/test_unicode.py +0 -0
- {progressbar2-4.5.0 → progressbar2-4.7.0}/tests/test_wrappingio.py +0 -0
|
@@ -12,4 +12,3 @@ If applicable, code to reproduce the issue and/or the stacktrace of the issue
|
|
|
12
12
|
- Python distribution/environment: CPython/Anaconda/IPython/IDLE
|
|
13
13
|
- Operating System: Windows 10, Ubuntu Linux, etc.
|
|
14
14
|
- Package version: `import progressbar; print(progressbar.__version__)`
|
|
15
|
-
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
# Ruff rewrites quote styles and capitalises docstrings without any help
|
|
2
|
+
# from a person, so a contributor should never have to. This hands those
|
|
3
|
+
# fixes to the autofix.ci app, which commits them to the pull request
|
|
4
|
+
# branch, forks included. The existing lint gate still reports any
|
|
5
|
+
# findings that ruff cannot fix.
|
|
6
|
+
#
|
|
7
|
+
# The filename and the workflow name are both fixed by autofix.ci, which
|
|
8
|
+
# uses them to identify the workflow it trusts. Renaming either one stops
|
|
9
|
+
# the app from accepting the patch.
|
|
10
|
+
name: autofix.ci # needed to securely identify the workflow
|
|
11
|
+
|
|
12
|
+
on:
|
|
13
|
+
pull_request:
|
|
14
|
+
push:
|
|
15
|
+
branches: [develop, master]
|
|
16
|
+
|
|
17
|
+
permissions:
|
|
18
|
+
contents: read
|
|
19
|
+
|
|
20
|
+
concurrency:
|
|
21
|
+
group: ${{ github.workflow }}-${{ github.ref }}
|
|
22
|
+
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
|
|
23
|
+
|
|
24
|
+
jobs:
|
|
25
|
+
autofix:
|
|
26
|
+
runs-on: ubuntu-latest
|
|
27
|
+
timeout-minutes: 10
|
|
28
|
+
steps:
|
|
29
|
+
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
|
|
30
|
+
with:
|
|
31
|
+
persist-credentials: false
|
|
32
|
+
- uses: astral-sh/setup-uv@20cfd1bf945f4377ade1205e4dbc17946fc9a30d # v10.0.1
|
|
33
|
+
with:
|
|
34
|
+
python-version: '3.13'
|
|
35
|
+
- run: uvx --with tox-uv tox -e ruff-fix
|
|
36
|
+
- uses: autofix-ci/action@c5b2d67aa2274e7b5a18224e8171550871fc7e4a # v1.3.4
|
|
@@ -2,9 +2,9 @@ name: "CodeQL"
|
|
|
2
2
|
|
|
3
3
|
on:
|
|
4
4
|
push:
|
|
5
|
-
branches: [ "develop" ]
|
|
5
|
+
branches: [ "master", "develop" ]
|
|
6
6
|
pull_request:
|
|
7
|
-
branches: [ "develop" ]
|
|
7
|
+
branches: [ "master", "develop" ]
|
|
8
8
|
schedule:
|
|
9
9
|
- cron: "24 21 * * 1"
|
|
10
10
|
|
|
@@ -20,23 +20,23 @@ jobs:
|
|
|
20
20
|
strategy:
|
|
21
21
|
fail-fast: false
|
|
22
22
|
matrix:
|
|
23
|
-
language: [ python
|
|
23
|
+
language: [ python ]
|
|
24
24
|
|
|
25
25
|
steps:
|
|
26
26
|
- name: Checkout
|
|
27
|
-
uses: actions/checkout@
|
|
27
|
+
uses: actions/checkout@v6
|
|
28
28
|
|
|
29
29
|
- name: Initialize CodeQL
|
|
30
|
-
uses: github/codeql-action/init@
|
|
30
|
+
uses: github/codeql-action/init@v3
|
|
31
31
|
with:
|
|
32
32
|
languages: ${{ matrix.language }}
|
|
33
33
|
queries: +security-and-quality
|
|
34
34
|
|
|
35
35
|
- name: Autobuild
|
|
36
|
-
uses: github/codeql-action/autobuild@
|
|
37
|
-
if: ${{ matrix.language == 'python'
|
|
36
|
+
uses: github/codeql-action/autobuild@v3
|
|
37
|
+
if: ${{ matrix.language == 'python' }}
|
|
38
38
|
|
|
39
39
|
- name: Perform CodeQL Analysis
|
|
40
|
-
uses: github/codeql-action/analyze@
|
|
40
|
+
uses: github/codeql-action/analyze@v3
|
|
41
41
|
with:
|
|
42
42
|
category: "/language:${{ matrix.language }}"
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
name: docs console
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches: [master, develop]
|
|
6
|
+
pull_request:
|
|
7
|
+
workflow_dispatch:
|
|
8
|
+
|
|
9
|
+
concurrency:
|
|
10
|
+
group: "${{ github.workflow }}-${{ github.ref }}"
|
|
11
|
+
cancel-in-progress: true
|
|
12
|
+
|
|
13
|
+
permissions:
|
|
14
|
+
contents: read
|
|
15
|
+
|
|
16
|
+
jobs:
|
|
17
|
+
console:
|
|
18
|
+
name: in-browser console smoke test
|
|
19
|
+
runs-on: ubuntu-latest
|
|
20
|
+
# Task 18's wheel build, a real Pyodide runtime download from jsdelivr,
|
|
21
|
+
# and Chromium's own download can all be slow on a cold CI cache; 20
|
|
22
|
+
# minutes leaves headroom without letting a genuine hang run forever.
|
|
23
|
+
timeout-minutes: 20
|
|
24
|
+
steps:
|
|
25
|
+
- uses: actions/checkout@v6
|
|
26
|
+
- name: Set up Python 3.13
|
|
27
|
+
uses: actions/setup-python@v6
|
|
28
|
+
with:
|
|
29
|
+
python-version: '3.13'
|
|
30
|
+
- name: Install dependencies
|
|
31
|
+
run: |
|
|
32
|
+
python -m pip install --upgrade pip tox
|
|
33
|
+
python -m pip install -e '.[docs-tests]'
|
|
34
|
+
python -m playwright install --with-deps chromium
|
|
35
|
+
- name: Build the docs
|
|
36
|
+
run: tox -e docs
|
|
37
|
+
- name: Run the console smoke test
|
|
38
|
+
run: python -m pytest tests/console -v --no-cov
|
|
39
|
+
- name: Upload the built docs
|
|
40
|
+
if: always()
|
|
41
|
+
uses: actions/upload-artifact@v4
|
|
42
|
+
with:
|
|
43
|
+
name: docs-html
|
|
44
|
+
path: docs/_build/html
|
|
45
|
+
retention-days: 7
|
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
name: tox
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches: [master, develop]
|
|
6
|
+
pull_request:
|
|
7
|
+
workflow_dispatch:
|
|
8
|
+
|
|
9
|
+
concurrency:
|
|
10
|
+
group: "${{ github.workflow }}-${{ github.ref }}"
|
|
11
|
+
cancel-in-progress: true
|
|
12
|
+
|
|
13
|
+
permissions:
|
|
14
|
+
contents: read
|
|
15
|
+
|
|
16
|
+
jobs:
|
|
17
|
+
perf-budget:
|
|
18
|
+
name: Performance budget
|
|
19
|
+
runs-on: ubuntu-latest
|
|
20
|
+
timeout-minutes: 10
|
|
21
|
+
steps:
|
|
22
|
+
- uses: actions/checkout@v6
|
|
23
|
+
- name: Set up Python 3.13
|
|
24
|
+
uses: actions/setup-python@v6
|
|
25
|
+
with:
|
|
26
|
+
python-version: '3.13'
|
|
27
|
+
- name: Install dependencies
|
|
28
|
+
run: |
|
|
29
|
+
python -m pip install --upgrade pip
|
|
30
|
+
python -m pip install -r tests/requirements.txt
|
|
31
|
+
python -m pip install -e .
|
|
32
|
+
- name: Performance budget
|
|
33
|
+
run: python -m pytest tests/test_perf_budget.py -v --no-cov
|
|
34
|
+
|
|
35
|
+
build:
|
|
36
|
+
name: tox (${{ matrix.tox-env }})
|
|
37
|
+
runs-on: ubuntu-latest
|
|
38
|
+
timeout-minutes: 10
|
|
39
|
+
# Job-level continue-on-error, not only step-level: a job that hits
|
|
40
|
+
# timeout-minutes is cancelled rather than failed, which a step-level
|
|
41
|
+
# continue-on-error cannot absorb -- an experimental env (e.g.
|
|
42
|
+
# docs-linkcheck waiting on slow external servers) would still mark
|
|
43
|
+
# the whole run cancelled.
|
|
44
|
+
continue-on-error: ${{ matrix.experimental || false }}
|
|
45
|
+
strategy:
|
|
46
|
+
fail-fast: false
|
|
47
|
+
matrix:
|
|
48
|
+
include:
|
|
49
|
+
- python-version: '3.10'
|
|
50
|
+
tox-env: py310
|
|
51
|
+
- python-version: '3.11'
|
|
52
|
+
tox-env: py311
|
|
53
|
+
- python-version: '3.12'
|
|
54
|
+
tox-env: py312
|
|
55
|
+
- python-version: '3.13'
|
|
56
|
+
tox-env: py313
|
|
57
|
+
- python-version: '3.14'
|
|
58
|
+
tox-env: py314
|
|
59
|
+
# Python 3.15 is a pre-release and currently unsupported by
|
|
60
|
+
# typing_extensions (no released version survives
|
|
61
|
+
# `from typing_extensions import *` on 3.15 because
|
|
62
|
+
# no_type_check_decorator is still listed in __all__ after its
|
|
63
|
+
# removal from typing), which breaks the python_utils import.
|
|
64
|
+
# Failures are advisory until upstream catches up.
|
|
65
|
+
- python-version: '3.15-dev'
|
|
66
|
+
tox-env: py315
|
|
67
|
+
experimental: true
|
|
68
|
+
- python-version: '3.14'
|
|
69
|
+
tox-env: docs
|
|
70
|
+
- python-version: '3.14'
|
|
71
|
+
tox-env: docs-demos
|
|
72
|
+
- python-version: '3.14'
|
|
73
|
+
tox-env: docs-linkcheck
|
|
74
|
+
experimental: true
|
|
75
|
+
- python-version: '3.14'
|
|
76
|
+
tox-env: readme
|
|
77
|
+
- python-version: '3.14'
|
|
78
|
+
tox-env: ruff
|
|
79
|
+
- python-version: '3.14'
|
|
80
|
+
tox-env: codespell
|
|
81
|
+
|
|
82
|
+
steps:
|
|
83
|
+
- uses: actions/checkout@v6
|
|
84
|
+
- name: Set up Python ${{ matrix.python-version }}
|
|
85
|
+
uses: actions/setup-python@v6
|
|
86
|
+
with:
|
|
87
|
+
python-version: ${{ matrix.python-version }}
|
|
88
|
+
allow-prereleases: true
|
|
89
|
+
- name: Install dependencies
|
|
90
|
+
run: |
|
|
91
|
+
python -m pip install --upgrade pip tox
|
|
92
|
+
- name: Apply Ruff fixes to pull requests
|
|
93
|
+
if: github.event_name == 'pull_request' && matrix.tox-env == 'ruff'
|
|
94
|
+
run: tox -e ruff-fix
|
|
95
|
+
- name: Test with tox
|
|
96
|
+
env:
|
|
97
|
+
RUFF_OUTPUT_FORMAT: >-
|
|
98
|
+
${{ github.event_name == 'pull_request' && 'github' || 'full' }}
|
|
99
|
+
# Step-level continue-on-error keeps the job green for
|
|
100
|
+
# experimental (pre-release Python) environments while still
|
|
101
|
+
# showing the failing step in the logs
|
|
102
|
+
continue-on-error: ${{ matrix.experimental || false }}
|
|
103
|
+
run: tox -e ${{ matrix.tox-env }}
|
|
104
|
+
- name: Export coverage
|
|
105
|
+
if: matrix.tox-env == 'py313'
|
|
106
|
+
run: .tox/py313/bin/python -m coverage lcov -o coverage.lcov
|
|
107
|
+
- name: Upload coverage to Coveralls
|
|
108
|
+
if: matrix.tox-env == 'py313' && github.event_name != 'pull_request' && startsWith(github.ref, 'refs/heads/')
|
|
109
|
+
uses: coverallsapp/github-action@8d6379e14d29928660c4ba802d8e85393440b329 # v2.3.8
|
|
110
|
+
with:
|
|
111
|
+
file: coverage.lcov
|
|
112
|
+
format: lcov
|
|
113
|
+
fail-on-error: true
|
|
114
|
+
|
|
115
|
+
windows:
|
|
116
|
+
name: tox (windows / py312)
|
|
117
|
+
runs-on: windows-latest
|
|
118
|
+
timeout-minutes: 10
|
|
119
|
+
env:
|
|
120
|
+
# Force UTF-8 I/O so unicode-marker tests (e.g. test_unicode) don't
|
|
121
|
+
# hit UnicodeEncodeError against the legacy Windows code page under
|
|
122
|
+
# pytest's fd-level capture.
|
|
123
|
+
PYTHONUTF8: '1'
|
|
124
|
+
steps:
|
|
125
|
+
- uses: actions/checkout@v6
|
|
126
|
+
- name: Set up Python 3.12
|
|
127
|
+
uses: actions/setup-python@v6
|
|
128
|
+
with:
|
|
129
|
+
python-version: '3.12'
|
|
130
|
+
- name: Install dependencies
|
|
131
|
+
run: |
|
|
132
|
+
python -m pip install --upgrade pip tox
|
|
133
|
+
- name: Test with tox
|
|
134
|
+
# The 100% coverage gate cannot be met on Windows: POSIX-only
|
|
135
|
+
# branches never execute there, so run without the coverage gate
|
|
136
|
+
# (`--no-cov` posarg). Linux jobs still enforce full coverage.
|
|
137
|
+
run: tox -e py312 -- --no-cov
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
name: release
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
release:
|
|
5
|
+
types: [published]
|
|
6
|
+
workflow_dispatch:
|
|
7
|
+
inputs:
|
|
8
|
+
ref:
|
|
9
|
+
description: 'Git tag to build and publish (e.g. v4.6.0)'
|
|
10
|
+
required: true
|
|
11
|
+
type: string
|
|
12
|
+
|
|
13
|
+
permissions:
|
|
14
|
+
contents: read
|
|
15
|
+
|
|
16
|
+
jobs:
|
|
17
|
+
build:
|
|
18
|
+
name: Build distributions
|
|
19
|
+
runs-on: ubuntu-latest
|
|
20
|
+
steps:
|
|
21
|
+
- uses: actions/checkout@v6
|
|
22
|
+
with:
|
|
23
|
+
ref: ${{ inputs.ref || github.ref }}
|
|
24
|
+
- name: Verify the ref is a release tag matching __version__
|
|
25
|
+
env:
|
|
26
|
+
EVENT_NAME: ${{ github.event_name }}
|
|
27
|
+
EVENT_REF: ${{ github.ref }}
|
|
28
|
+
INPUT_REF: ${{ inputs.ref }}
|
|
29
|
+
run: |
|
|
30
|
+
set -euo pipefail
|
|
31
|
+
if [ "$EVENT_NAME" = "workflow_dispatch" ]; then
|
|
32
|
+
ref="$INPUT_REF"
|
|
33
|
+
else
|
|
34
|
+
ref="$EVENT_REF"
|
|
35
|
+
fi
|
|
36
|
+
case "$ref" in
|
|
37
|
+
refs/tags/v*) tag="${ref#refs/tags/}" ;;
|
|
38
|
+
v*)
|
|
39
|
+
if [ "$EVENT_NAME" != "workflow_dispatch" ]; then
|
|
40
|
+
echo "::error::ref '$ref' is not a tag ref"
|
|
41
|
+
exit 1
|
|
42
|
+
fi
|
|
43
|
+
tag="$ref"
|
|
44
|
+
;;
|
|
45
|
+
*)
|
|
46
|
+
echo "::error::ref '$ref' is not a v* release tag"
|
|
47
|
+
exit 1
|
|
48
|
+
;;
|
|
49
|
+
esac
|
|
50
|
+
if ! [[ "$tag" =~ ^v[0-9]+\.[0-9]+\.[0-9]+[0-9A-Za-z.+-]*$ ]]; then
|
|
51
|
+
echo "::error::tag '$tag' does not look like vX.Y.Z"
|
|
52
|
+
exit 1
|
|
53
|
+
fi
|
|
54
|
+
version="$(sed -n -E "s/^__version__(: *str)? = ['\"]([^'\"]*)['\"].*/\2/p" progressbar/__about__.py)"
|
|
55
|
+
if [ -z "$version" ]; then
|
|
56
|
+
echo "::error::could not read __version__ from progressbar/__about__.py"
|
|
57
|
+
exit 1
|
|
58
|
+
fi
|
|
59
|
+
if [ "$tag" != "v$version" ]; then
|
|
60
|
+
echo "::error::tag '$tag' does not match __version__ '$version'"
|
|
61
|
+
exit 1
|
|
62
|
+
fi
|
|
63
|
+
tag_commit="$(git rev-parse --verify --quiet "refs/tags/$tag^{commit}")" || {
|
|
64
|
+
echo "::error::tag '$tag' is not present in the checkout"
|
|
65
|
+
exit 1
|
|
66
|
+
}
|
|
67
|
+
if [ "$tag_commit" != "$(git rev-parse HEAD)" ]; then
|
|
68
|
+
echo "::error::checked-out commit is not the commit of tag '$tag'"
|
|
69
|
+
exit 1
|
|
70
|
+
fi
|
|
71
|
+
echo "Releasing $tag ($tag_commit)"
|
|
72
|
+
- name: Install uv
|
|
73
|
+
uses: astral-sh/setup-uv@v7
|
|
74
|
+
- name: Build sdist and wheel
|
|
75
|
+
run: uv build --no-sources
|
|
76
|
+
- name: Verify distribution contents
|
|
77
|
+
run: |
|
|
78
|
+
set -euo pipefail
|
|
79
|
+
unpacked="$(unzip -Z1 dist/*.whl | cut -d/ -f1 | sort -u)"
|
|
80
|
+
echo "$unpacked"
|
|
81
|
+
test "$(echo "$unpacked" | grep -cvE '^progressbar$|^progressbar2-.*\.dist-info$')" -eq 0
|
|
82
|
+
sdist="$(tar tzf dist/*.tar.gz)"
|
|
83
|
+
echo "$sdist"
|
|
84
|
+
stray_pattern='\.sync-conflict-|\.(orig|rej|bak)$'
|
|
85
|
+
if { unzip -Z1 dist/*.whl; echo "$sdist"; } | grep -E "$stray_pattern"; then
|
|
86
|
+
echo "::error::distribution contains stray conflict or backup files"
|
|
87
|
+
exit 1
|
|
88
|
+
fi
|
|
89
|
+
- uses: actions/upload-artifact@v6
|
|
90
|
+
with:
|
|
91
|
+
name: dist
|
|
92
|
+
path: dist/
|
|
93
|
+
|
|
94
|
+
publish:
|
|
95
|
+
name: Publish to PyPI
|
|
96
|
+
needs: build
|
|
97
|
+
runs-on: ubuntu-latest
|
|
98
|
+
environment:
|
|
99
|
+
name: pypi
|
|
100
|
+
url: https://pypi.org/project/progressbar2/
|
|
101
|
+
permissions:
|
|
102
|
+
id-token: write
|
|
103
|
+
steps:
|
|
104
|
+
- uses: actions/download-artifact@v7
|
|
105
|
+
with:
|
|
106
|
+
name: dist
|
|
107
|
+
path: dist/
|
|
108
|
+
- name: Publish via Trusted Publishing
|
|
109
|
+
uses: pypa/gh-action-pypi-publish@release/v1
|
|
@@ -8,10 +8,12 @@ on:
|
|
|
8
8
|
jobs:
|
|
9
9
|
stale:
|
|
10
10
|
runs-on: ubuntu-latest
|
|
11
|
+
permissions:
|
|
12
|
+
issues: write
|
|
13
|
+
pull-requests: write
|
|
11
14
|
steps:
|
|
12
15
|
- uses: actions/stale@v8
|
|
13
16
|
with:
|
|
14
17
|
days-before-issue-stale: 30
|
|
15
18
|
exempt-issue-labels: in-progress,help-wanted,pinned,security,enhancement
|
|
16
19
|
exempt-all-assignees: true
|
|
17
|
-
|
|
@@ -42,3 +42,17 @@ coverage.xml
|
|
|
42
42
|
|
|
43
43
|
# Sphinx documentation
|
|
44
44
|
docs/_build/
|
|
45
|
+
|
|
46
|
+
# Superpowers brainstorming session artifacts
|
|
47
|
+
.superpowers/
|
|
48
|
+
|
|
49
|
+
# Built at docs build time for the in-browser console
|
|
50
|
+
docs/_static/wheels/
|
|
51
|
+
|
|
52
|
+
# Local secrets and environments
|
|
53
|
+
.env
|
|
54
|
+
.env.*
|
|
55
|
+
.venv/
|
|
56
|
+
*.pem
|
|
57
|
+
*.key
|
|
58
|
+
.pypirc
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
# See https://pre-commit.com for more information
|
|
2
|
+
# See https://pre-commit.com/hooks.html for more hooks
|
|
3
|
+
repos:
|
|
4
|
+
- repo: https://github.com/pre-commit/pre-commit-hooks
|
|
5
|
+
rev: v6.0.0
|
|
6
|
+
hooks:
|
|
7
|
+
- id: end-of-file-fixer
|
|
8
|
+
# Preserve the upstream bytes copied by the vendor update command.
|
|
9
|
+
exclude: '^docs/_static/vendor/xterm\.js$'
|
|
10
|
+
- id: trailing-whitespace
|
|
11
|
+
- id: check-yaml
|
|
12
|
+
- id: check-added-large-files
|
|
13
|
+
|
|
14
|
+
- repo: https://github.com/astral-sh/ruff-pre-commit
|
|
15
|
+
rev: v0.15.20
|
|
16
|
+
hooks:
|
|
17
|
+
- id: ruff-check
|
|
18
|
+
- id: ruff-format
|
|
@@ -13,6 +13,12 @@ build:
|
|
|
13
13
|
# nodejs: "20"
|
|
14
14
|
# rust: "1.70"
|
|
15
15
|
# golang: "1.20"
|
|
16
|
+
jobs:
|
|
17
|
+
# Build the wheels the in-browser console installs. A list, so a
|
|
18
|
+
# future step can be appended here without restructuring this key.
|
|
19
|
+
pre_build:
|
|
20
|
+
- python -m pip install build
|
|
21
|
+
- python scripts/build_docs_wheels.py
|
|
16
22
|
|
|
17
23
|
# Build documentation in the "docs/" directory with Sphinx
|
|
18
24
|
sphinx:
|
|
@@ -20,9 +26,15 @@ sphinx:
|
|
|
20
26
|
# You can configure Sphinx to use a different builder, for instance use the dirhtml builder for simpler URLs
|
|
21
27
|
# builder: "dirhtml"
|
|
22
28
|
# Fail on all warnings to avoid broken references
|
|
23
|
-
|
|
29
|
+
fail_on_warning: true
|
|
24
30
|
|
|
25
|
-
#
|
|
31
|
+
# PDF and ePub are supported and build warning-free. They are necessarily
|
|
32
|
+
# static: the `.. demo::` directive emits its animation and Run button as
|
|
33
|
+
# HTML-only nodes, so in these formats a demo degrades to its source
|
|
34
|
+
# listing plus surrounding prose -- readable, just not animated.
|
|
35
|
+
# This works because `docs/index.rst` no longer includes `README.rst`;
|
|
36
|
+
# doing so pulled remote SVG badges into every builder, and LaTeX cannot
|
|
37
|
+
# render SVG at all.
|
|
26
38
|
formats:
|
|
27
39
|
- pdf
|
|
28
40
|
- epub
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
<claude-mem-context>
|
|
2
|
+
# Memory Context
|
|
3
|
+
|
|
4
|
+
# [python-progressbar] recent context, 2026-05-11 12:05am GMT+2
|
|
5
|
+
|
|
6
|
+
Legend: 🎯session 🔴bugfix 🟣feature 🔄refactor ✅change 🔵discovery ⚖️decision 🚨security_alert 🔐security_note
|
|
7
|
+
Format: ID TIME TYPE TITLE
|
|
8
|
+
Fetch details: get_observations([IDs]) | Search: mem-search skill
|
|
9
|
+
|
|
10
|
+
Stats: 1 obs (414t read) | 19,980t work | 98% savings
|
|
11
|
+
|
|
12
|
+
### May 11, 2026
|
|
13
|
+
2388 12:04a ✅ CI/tox config updated to test Python 3.10–3.15
|
|
14
|
+
|
|
15
|
+
Access 20k tokens of past work via get_observations([IDs]) or mem-search skill.
|
|
16
|
+
</claude-mem-context>
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
=========
|
|
2
|
+
Changelog
|
|
3
|
+
=========
|
|
4
|
+
|
|
5
|
+
4.7.0 - 2026-11-05
|
|
6
|
+
------------------
|
|
7
|
+
|
|
8
|
+
Widgets are coloured by default: a bar on a colour terminal shows the
|
|
9
|
+
default palette without ``enable_colors=True``, spinners cycle through
|
|
10
|
+
colours, and the ``Bar`` fill colours are constructor arguments (``fg``,
|
|
11
|
+
``bg``) instead of the ``Bar.fg`` and ``Bar.bg`` class attributes. A
|
|
12
|
+
widget called directly returns the escape codes, and
|
|
13
|
+
``progressbar.utils.no_color`` strips them. Output to a file or pipe is
|
|
14
|
+
unchanged.
|
|
15
|
+
|
|
16
|
+
A parallel execution API: ``progressbar.map``, ``imap``,
|
|
17
|
+
``imap_unordered``, ``starmap``, ``thread_map``, ``process_map``,
|
|
18
|
+
``as_completed``, the asyncio variants ``amap``, ``aimap``,
|
|
19
|
+
``aimap_unordered`` and ``gather``, ``run`` for shell commands, and the
|
|
20
|
+
``progressbar.parallel`` decorator, with ``bar='multi'`` for an overall
|
|
21
|
+
bar plus a bar per task (PR #327).
|
|
22
|
+
|
|
23
|
+
A forced redraw of the default widgets is 20 percent faster than in
|
|
24
|
+
4.6.0 and the fast path, the iterator overhead and the import time are
|
|
25
|
+
at or below their 4.6.0 cost, with colours on. Rendered colour escapes
|
|
26
|
+
are remembered per gradient and per colour, new-style templates are
|
|
27
|
+
validated once per template text, and captured writes take a cheaper
|
|
28
|
+
lock (PR #333).
|
|
29
|
+
|
|
30
|
+
New-style format templates such as ``FormatLabel('{value.__class__}')``
|
|
31
|
+
or ``prefix='{value.__doc__} '`` now raise ``ValueError``: a template
|
|
32
|
+
walking dunder or frame attributes could reach interpreter internals.
|
|
33
|
+
Index access and ordinary attributes keep working, and a positional
|
|
34
|
+
field still raises ``IndexError`` as it did.
|
|
35
|
+
|
|
36
|
+
``desc`` is still the ``prefix`` alias and renders as a template, as it
|
|
37
|
+
did in 4.6.0. A literal brace in a description has to be doubled.
|
|
38
|
+
|
|
39
|
+
The fast bar reserves the width of ``prefix``, ``desc`` and ``suffix``
|
|
40
|
+
before sizing the filler, so a labelled bar no longer overflows the
|
|
41
|
+
terminal (contributed by @rupayon123 in PR #331). Labels that are not
|
|
42
|
+
strings and an uncallable ``custom_len`` render as before.
|
|
43
|
+
|
|
44
|
+
The ``progressbar`` and ``bar`` commands exit with status 2 and a usage
|
|
45
|
+
line on an invalid option value, such as ``--size abc``, where they
|
|
46
|
+
printed a traceback before, and validate every argument before the
|
|
47
|
+
output file is opened. A pipeline whose reader goes away ends the copy
|
|
48
|
+
quietly with status 0.
|
|
49
|
+
|
|
50
|
+
``PROGRESSBAR_MINIMUM_UPDATE_INTERVAL`` set to a value that is not a
|
|
51
|
+
non-negative finite number is logged once and ignored instead of raising
|
|
52
|
+
at the first ``ProgressBar()``.
|
|
53
|
+
|
|
54
|
+
Deprecation warnings for ``maxval``, ``poll`` and ``currval`` name the
|
|
55
|
+
caller's file and line. A warnings filter by module ``progressbar`` no
|
|
56
|
+
longer matches them, a filter by category or message does.
|
|
57
|
+
|
|
58
|
+
``StreamWrapper.lock`` and ``listeners_lock`` are read-only properties
|
|
59
|
+
shared with the wrapped streams and reset after ``fork``. A subclass
|
|
60
|
+
that assigned its own lock raises ``AttributeError`` at construction.
|
|
61
|
+
``update_capturing()`` calls ``flush()`` once the last capture stops, as
|
|
62
|
+
in 4.6.0. ``wrapped_excepthook`` is a ``bool``.
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
The ``progressbar`` and ``bar`` commands, and ``python -m progressbar``,
|
|
66
|
+
now exit with status 130 after Ctrl-C interrupts a transfer. Previously
|
|
67
|
+
they exited with status 0. Scripts that check the exit status can now
|
|
68
|
+
distinguish an interrupted transfer from a completed copy.
|
|
69
|
+
|
|
70
|
+
The ``python-utils`` dependency now requires 4.1.4 or newer, up from
|
|
71
|
+
3.8.1. Older releases render a negative ``scale_1024`` power as
|
|
72
|
+
``0.1 YiB`` instead of the byte count. An environment that pins
|
|
73
|
+
``python-utils<4`` has to lift that pin before upgrading.
|
|
74
|
+
|
|
75
|
+
Captured output now survives a drain failure on the other stream, and
|
|
76
|
+
unwrapping restores the original stream even when its capture buffer is
|
|
77
|
+
closed. Built-in ``StringIO`` capture writes and drains remain atomic.
|
|
78
|
+
Caller-replaced buffers keep their method overrides, which run without
|
|
79
|
+
stream locks. As in 4.6.0, callers synchronise concurrent writes and drains
|
|
80
|
+
on those custom buffers. A capture-hook failure now retains the other
|
|
81
|
+
stream's exception in the primary failure's context chain.
|
|
82
|
+
|
|
83
|
+
Specialised format templates retain their escaping and result types.
|
|
84
|
+
Their field paths, including nested format specifications, are checked
|
|
85
|
+
before calling the application's formatter.
|
|
86
|
+
|
|
87
|
+
MultiBar expiry keeps a replacement registered under the same exact
|
|
88
|
+
``str`` label. Assignment, update, in-place union and ordinary removal
|
|
89
|
+
methods share its membership guard. Lifecycle tracking uses bar identity
|
|
90
|
+
without calling application hash or equality methods, and the guard resets
|
|
91
|
+
after fork.
|
|
92
|
+
Custom label objects retain their hash and equality hooks and their
|
|
93
|
+
identity as dictionary keys. Using one for mutation or indexing switches
|
|
94
|
+
that MultiBar instance permanently to the 4.6.0 concurrency contract:
|
|
95
|
+
callers synchronise concurrent mutation and rendering, including expiry.
|
|
96
|
+
These hooks run without the membership guard, even for later exact
|
|
97
|
+
``str`` lookups. Clearing the instance does not reset this mode. Direct
|
|
98
|
+
calls to ``dict`` base-class mutation methods bypass this protocol.
|
|
99
|
+
|
|
100
|
+
For the most recent changes to the Python Progressbar please look at the Git
|
|
101
|
+
releases or the commit log:
|
|
102
|
+
|
|
103
|
+
- https://github.com/WoLpH/python-progressbar/releases
|
|
104
|
+
- https://github.com/WoLpH/python-progressbar/commits/develop
|
|
105
|
+
|
|
106
|
+
Hint: the ``...`` button on a commit shows the full change message.
|