progressbar2 4.6.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.7.0/.github/workflows/autofix.yml +36 -0
- {progressbar2-4.6.0 → progressbar2-4.7.0}/.github/workflows/codeql.yml +2 -2
- {progressbar2-4.6.0 → progressbar2-4.7.0}/.github/workflows/docs.yml +1 -1
- {progressbar2-4.6.0 → progressbar2-4.7.0}/.github/workflows/main.yml +25 -1
- progressbar2-4.7.0/.github/workflows/release.yml +109 -0
- {progressbar2-4.6.0 → progressbar2-4.7.0}/.gitignore +8 -0
- {progressbar2-4.6.0 → progressbar2-4.7.0}/.pre-commit-config.yaml +2 -0
- progressbar2-4.7.0/CHANGES.rst +106 -0
- {progressbar2-4.6.0 → progressbar2-4.7.0}/CONTRIBUTING.rst +23 -4
- {progressbar2-4.6.0 → progressbar2-4.7.0}/MANIFEST.in +1 -1
- progressbar2-4.7.0/PKG-INFO +512 -0
- progressbar2-4.7.0/README.md +420 -0
- {progressbar2-4.6.0 → progressbar2-4.7.0}/benchmarks/bench.py +33 -1
- progressbar2-4.7.0/benchmarks/chart.png +0 -0
- {progressbar2-4.6.0 → progressbar2-4.7.0}/benchmarks/report.md +24 -21
- {progressbar2-4.6.0 → progressbar2-4.7.0}/benchmarks/report.py +21 -19
- {progressbar2-4.6.0 → progressbar2-4.7.0}/benchmarks/requirements.txt +1 -0
- progressbar2-4.7.0/benchmarks/results.json +117 -0
- {progressbar2-4.6.0 → progressbar2-4.7.0}/docs/_ext/demo.py +23 -2
- 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.6.0 → progressbar2-4.7.0}/docs/_static/livecode/livecode.css +30 -0
- {progressbar2-4.6.0 → progressbar2-4.7.0}/docs/_static/livecode/livecode.js +103 -11
- {progressbar2-4.6.0 → progressbar2-4.7.0}/docs/_static/livecode/worker.js +16 -3
- 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.6.0 → progressbar2-4.7.0}/docs/_static/vendor/README.md +11 -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/_templates/page.html +50 -0
- {progressbar2-4.6.0 → progressbar2-4.7.0}/docs/conf.py +39 -1
- {progressbar2-4.6.0 → progressbar2-4.7.0}/docs/examples/_registry.py +66 -12
- progressbar2-4.7.0/docs/examples/homepage/__init__.py +1 -0
- progressbar2-4.7.0/docs/examples/homepage/quickstart.py +14 -0
- {progressbar2-4.6.0 → progressbar2-4.7.0}/docs/examples/howto/colors.py +7 -12
- 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.6.0 → progressbar2-4.7.0}/docs/examples/howto/file_transfer.py +0 -2
- {progressbar2-4.6.0 → progressbar2-4.7.0}/docs/examples/howto/iterable_wrapper.py +1 -3
- {progressbar2-4.6.0 → progressbar2-4.7.0}/docs/examples/howto/logging_integration.py +0 -2
- {progressbar2-4.6.0 → progressbar2-4.7.0}/docs/examples/howto/multibar.py +0 -2
- {progressbar2-4.6.0 → progressbar2-4.7.0}/docs/examples/howto/multibar_line_offset.py +15 -5
- {progressbar2-4.6.0 → progressbar2-4.7.0}/docs/examples/howto/non_tty.py +0 -2
- 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.6.0 → progressbar2-4.7.0}/docs/examples/howto/redirect_stdout.py +0 -2
- {progressbar2-4.6.0 → progressbar2-4.7.0}/docs/examples/howto/tqdm_style.py +0 -2
- {progressbar2-4.6.0 → progressbar2-4.7.0}/docs/examples/howto/unknown_length.py +0 -2
- progressbar2-4.7.0/docs/examples/readme/cli.py +47 -0
- progressbar2-4.7.0/docs/examples/readme/colors.py +68 -0
- {progressbar2-4.6.0 → progressbar2-4.7.0}/docs/examples/readme/hero.py +0 -2
- {progressbar2-4.6.0 → progressbar2-4.7.0}/docs/examples/readme/multibar.py +0 -2
- progressbar2-4.7.0/docs/examples/readme/parallel.py +49 -0
- {progressbar2-4.6.0 → progressbar2-4.7.0}/docs/examples/readme/unknown_length.py +0 -2
- progressbar2-4.7.0/docs/examples/tutorial/step1.py +14 -0
- {progressbar2-4.6.0 → progressbar2-4.7.0}/docs/examples/tutorial/step2.py +1 -3
- {progressbar2-4.6.0 → progressbar2-4.7.0}/docs/examples/tutorial/step3.py +0 -2
- {progressbar2-4.6.0 → progressbar2-4.7.0}/docs/examples/tutorial/step4.py +0 -2
- {progressbar2-4.6.0 → progressbar2-4.7.0}/docs/examples/tutorial/step5.py +0 -2
- {progressbar2-4.6.0 → progressbar2-4.7.0}/docs/examples/widgets/absolute_eta.py +0 -2
- {progressbar2-4.6.0 → progressbar2-4.7.0}/docs/examples/widgets/adaptive_eta.py +0 -2
- {progressbar2-4.6.0 → progressbar2-4.7.0}/docs/examples/widgets/adaptive_transfer_speed.py +0 -2
- {progressbar2-4.6.0 → progressbar2-4.7.0}/docs/examples/widgets/animated_marker.py +0 -2
- {progressbar2-4.6.0 → progressbar2-4.7.0}/docs/examples/widgets/bar.py +0 -2
- {progressbar2-4.6.0 → progressbar2-4.7.0}/docs/examples/widgets/bouncing_bar.py +0 -2
- {progressbar2-4.6.0 → progressbar2-4.7.0}/docs/examples/widgets/counter.py +0 -2
- {progressbar2-4.6.0 → progressbar2-4.7.0}/docs/examples/widgets/current_time.py +0 -2
- {progressbar2-4.6.0 → progressbar2-4.7.0}/docs/examples/widgets/data_size.py +0 -2
- {progressbar2-4.6.0 → progressbar2-4.7.0}/docs/examples/widgets/dynamic_message.py +0 -2
- {progressbar2-4.6.0 → progressbar2-4.7.0}/docs/examples/widgets/eta.py +0 -2
- {progressbar2-4.6.0 → progressbar2-4.7.0}/docs/examples/widgets/file_transfer_speed.py +0 -2
- {progressbar2-4.6.0 → progressbar2-4.7.0}/docs/examples/widgets/format_custom_text.py +0 -2
- {progressbar2-4.6.0 → progressbar2-4.7.0}/docs/examples/widgets/format_label.py +0 -2
- {progressbar2-4.6.0 → progressbar2-4.7.0}/docs/examples/widgets/format_label_bar.py +0 -2
- {progressbar2-4.6.0 → progressbar2-4.7.0}/docs/examples/widgets/granular_bar.py +0 -2
- {progressbar2-4.6.0 → progressbar2-4.7.0}/docs/examples/widgets/job_status_bar.py +0 -2
- {progressbar2-4.6.0 → progressbar2-4.7.0}/docs/examples/widgets/multi_progress_bar.py +0 -2
- {progressbar2-4.6.0 → progressbar2-4.7.0}/docs/examples/widgets/multi_range_bar.py +0 -2
- {progressbar2-4.6.0 → progressbar2-4.7.0}/docs/examples/widgets/percentage.py +0 -2
- {progressbar2-4.6.0 → progressbar2-4.7.0}/docs/examples/widgets/percentage_label_bar.py +0 -2
- {progressbar2-4.6.0 → progressbar2-4.7.0}/docs/examples/widgets/postfix.py +0 -2
- {progressbar2-4.6.0 → progressbar2-4.7.0}/docs/examples/widgets/reverse_bar.py +0 -2
- {progressbar2-4.6.0 → progressbar2-4.7.0}/docs/examples/widgets/rotating_marker.py +0 -2
- {progressbar2-4.6.0 → progressbar2-4.7.0}/docs/examples/widgets/simple_progress.py +0 -2
- {progressbar2-4.6.0 → progressbar2-4.7.0}/docs/examples/widgets/smoothing_eta.py +0 -2
- {progressbar2-4.6.0 → progressbar2-4.7.0}/docs/examples/widgets/timer.py +0 -2
- {progressbar2-4.6.0 → progressbar2-4.7.0}/docs/examples/widgets/unit_progress.py +0 -2
- {progressbar2-4.6.0 → progressbar2-4.7.0}/docs/examples/widgets/variable.py +0 -2
- progressbar2-4.7.0/docs/explanation/index.rst +74 -0
- {progressbar2-4.6.0 → progressbar2-4.7.0}/docs/explanation/performance-and-the-fast-path.rst +5 -0
- progressbar2-4.7.0/docs/howto/colors.rst +32 -0
- {progressbar2-4.6.0 → progressbar2-4.7.0}/docs/howto/custom-widget.rst +6 -2
- progressbar2-4.7.0/docs/howto/dynamic-messages.rst +23 -0
- progressbar2-4.7.0/docs/howto/index.rst +259 -0
- {progressbar2-4.6.0 → progressbar2-4.7.0}/docs/howto/iterable-wrapper.rst +3 -0
- progressbar2-4.7.0/docs/howto/parallel-execution.rst +244 -0
- {progressbar2-4.6.0 → progressbar2-4.7.0}/docs/howto/prefix-suffix.rst +6 -0
- {progressbar2-4.6.0 → progressbar2-4.7.0}/docs/howto/tqdm-style.rst +3 -2
- progressbar2-4.7.0/docs/index.rst +128 -0
- progressbar2-4.7.0/docs/installation.rst +99 -0
- {progressbar2-4.6.0 → progressbar2-4.7.0}/docs/reference/cli.rst +14 -1
- progressbar2-4.7.0/docs/reference/index.rst +100 -0
- progressbar2-4.7.0/docs/reference/parallel.rst +118 -0
- progressbar2-4.7.0/docs/sponsor.rst +19 -0
- progressbar2-4.7.0/docs/tutorial/index.rst +104 -0
- {progressbar2-4.6.0 → progressbar2-4.7.0}/docs/tutorial/step1.rst +3 -0
- {progressbar2-4.6.0 → progressbar2-4.7.0}/docs/tutorial/step2.rst +4 -0
- {progressbar2-4.6.0 → progressbar2-4.7.0}/docs/widgets/animated-marker.rst +6 -1
- {progressbar2-4.6.0 → progressbar2-4.7.0}/examples.py +1 -3
- {progressbar2-4.6.0 → progressbar2-4.7.0}/progressbar/__about__.py +2 -2
- {progressbar2-4.6.0 → progressbar2-4.7.0}/progressbar/__init__.py +55 -1
- {progressbar2-4.6.0 → progressbar2-4.7.0}/progressbar/__main__.py +288 -87
- 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.6.0 → progressbar2-4.7.0}/progressbar/bar.py +188 -30
- {progressbar2-4.6.0 → progressbar2-4.7.0}/progressbar/env.py +6 -5
- {progressbar2-4.6.0 → progressbar2-4.7.0}/progressbar/fast.py +29 -1
- {progressbar2-4.6.0 → progressbar2-4.7.0}/progressbar/multi.py +185 -50
- {progressbar2-4.6.0 → progressbar2-4.7.0}/progressbar/terminal/base.py +363 -36
- {progressbar2-4.6.0 → progressbar2-4.7.0}/progressbar/terminal/colors.py +11 -1
- {progressbar2-4.6.0 → progressbar2-4.7.0}/progressbar/utils.py +529 -105
- {progressbar2-4.6.0 → progressbar2-4.7.0}/progressbar/widgets.py +228 -47
- progressbar2-4.7.0/progressbar2.egg-info/PKG-INFO +512 -0
- {progressbar2-4.6.0 → progressbar2-4.7.0}/progressbar2.egg-info/SOURCES.txt +60 -1
- {progressbar2-4.6.0 → progressbar2-4.7.0}/progressbar2.egg-info/entry_points.txt +1 -0
- {progressbar2-4.6.0 → progressbar2-4.7.0}/progressbar2.egg-info/requires.txt +5 -1
- {progressbar2-4.6.0 → progressbar2-4.7.0}/pyproject.toml +12 -2
- {progressbar2-4.6.0 → progressbar2-4.7.0}/pytest.ini +7 -0
- {progressbar2-4.6.0 → progressbar2-4.7.0}/ruff.toml +5 -2
- {progressbar2-4.6.0 → progressbar2-4.7.0}/scripts/build_docs_wheels.py +12 -1
- {progressbar2-4.6.0 → progressbar2-4.7.0}/scripts/render_demos.py +90 -27
- progressbar2-4.7.0/scripts/render_race.py +193 -0
- {progressbar2-4.6.0 → progressbar2-4.7.0}/tests/api_surface_snapshot.json +22 -7
- {progressbar2-4.6.0 → progressbar2-4.7.0}/tests/console/test_console.py +63 -6
- 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.6.0 → progressbar2-4.7.0}/tests/test_color.py +73 -2
- progressbar2-4.7.0/tests/test_color_fast_path.py +422 -0
- {progressbar2-4.6.0 → progressbar2-4.7.0}/tests/test_data_transfer_bar.py +20 -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_wheel_urls.py +27 -0
- {progressbar2-4.6.0 → progressbar2-4.7.0}/tests/test_env_detection.py +34 -0
- {progressbar2-4.6.0 → progressbar2-4.7.0}/tests/test_fast_default.py +126 -0
- progressbar2-4.7.0/tests/test_format_security.py +451 -0
- {progressbar2-4.6.0 → progressbar2-4.7.0}/tests/test_init_exports.py +28 -9
- progressbar2-4.7.0/tests/test_multibar.py +1213 -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.6.0 → progressbar2-4.7.0}/tests/test_perf_budget.py +72 -0
- {progressbar2-4.6.0 → progressbar2-4.7.0}/tests/test_progressbar.py +149 -35
- progressbar2-4.7.0/tests/test_progressbar_command.py +704 -0
- {progressbar2-4.6.0 → progressbar2-4.7.0}/tests/test_readme_demos.py +269 -50
- progressbar2-4.7.0/tests/test_render_race.py +118 -0
- progressbar2-4.7.0/tests/test_stream_security.py +1468 -0
- progressbar2-4.7.0/tests/test_widget_default_colours.py +152 -0
- {progressbar2-4.6.0 → progressbar2-4.7.0}/tests/test_widgets.py +3 -2
- {progressbar2-4.6.0 → progressbar2-4.7.0}/tox.ini +35 -4
- {progressbar2-4.6.0 → progressbar2-4.7.0}/uv.lock +21 -11
- progressbar2-4.6.0/.github/FUNDING.yml +0 -1
- progressbar2-4.6.0/CHANGES.rst +0 -11
- progressbar2-4.6.0/PKG-INFO +0 -272
- progressbar2-4.6.0/README.rst +0 -185
- progressbar2-4.6.0/benchmarks/chart.png +0 -0
- progressbar2-4.6.0/benchmarks/results.json +0 -107
- progressbar2-4.6.0/docs/_static/demos/howto-colors.svg +0 -60
- progressbar2-4.6.0/docs/_static/demos/howto-custom-widget.svg +0 -60
- progressbar2-4.6.0/docs/_static/demos/howto-dynamic-messages.svg +0 -60
- progressbar2-4.6.0/docs/_static/demos/howto-file-transfer.svg +0 -60
- progressbar2-4.6.0/docs/_static/demos/howto-iterable-wrapper.svg +0 -60
- progressbar2-4.6.0/docs/_static/demos/howto-logging-integration.svg +0 -60
- progressbar2-4.6.0/docs/_static/demos/howto-multibar-line-offset.svg +0 -60
- progressbar2-4.6.0/docs/_static/demos/howto-multibar.svg +0 -60
- progressbar2-4.6.0/docs/_static/demos/howto-non-tty.svg +0 -60
- progressbar2-4.6.0/docs/_static/demos/howto-prefix-suffix.svg +0 -60
- progressbar2-4.6.0/docs/_static/demos/howto-redirect-stdout.svg +0 -60
- progressbar2-4.6.0/docs/_static/demos/howto-tqdm-style.svg +0 -60
- progressbar2-4.6.0/docs/_static/demos/howto-unknown-length.svg +0 -60
- progressbar2-4.6.0/docs/_static/demos/readme-hero.svg +0 -60
- progressbar2-4.6.0/docs/_static/demos/readme-multibar.svg +0 -60
- progressbar2-4.6.0/docs/_static/demos/readme-unknown-length.svg +0 -60
- progressbar2-4.6.0/docs/_static/demos/tutorial-step1.svg +0 -60
- progressbar2-4.6.0/docs/_static/demos/tutorial-step2.svg +0 -60
- progressbar2-4.6.0/docs/_static/demos/tutorial-step3.svg +0 -60
- progressbar2-4.6.0/docs/_static/demos/tutorial-step4.svg +0 -60
- progressbar2-4.6.0/docs/_static/demos/tutorial-step5.svg +0 -60
- progressbar2-4.6.0/docs/_static/demos/widgets-absolute-eta.svg +0 -60
- progressbar2-4.6.0/docs/_static/demos/widgets-adaptive-eta.svg +0 -60
- progressbar2-4.6.0/docs/_static/demos/widgets-adaptive-transfer-speed.svg +0 -60
- progressbar2-4.6.0/docs/_static/demos/widgets-animated-marker.svg +0 -60
- progressbar2-4.6.0/docs/_static/demos/widgets-bar.svg +0 -60
- progressbar2-4.6.0/docs/_static/demos/widgets-bouncing-bar.svg +0 -60
- progressbar2-4.6.0/docs/_static/demos/widgets-counter.svg +0 -60
- progressbar2-4.6.0/docs/_static/demos/widgets-current-time.svg +0 -60
- progressbar2-4.6.0/docs/_static/demos/widgets-data-size.svg +0 -60
- progressbar2-4.6.0/docs/_static/demos/widgets-dynamic-message.svg +0 -60
- progressbar2-4.6.0/docs/_static/demos/widgets-eta.svg +0 -60
- progressbar2-4.6.0/docs/_static/demos/widgets-file-transfer-speed.svg +0 -60
- progressbar2-4.6.0/docs/_static/demos/widgets-format-custom-text.svg +0 -60
- progressbar2-4.6.0/docs/_static/demos/widgets-format-label-bar.svg +0 -60
- progressbar2-4.6.0/docs/_static/demos/widgets-format-label.svg +0 -60
- progressbar2-4.6.0/docs/_static/demos/widgets-granular-bar.svg +0 -60
- progressbar2-4.6.0/docs/_static/demos/widgets-job-status-bar.svg +0 -60
- progressbar2-4.6.0/docs/_static/demos/widgets-multi-progress-bar.svg +0 -60
- progressbar2-4.6.0/docs/_static/demos/widgets-multi-range-bar.svg +0 -60
- progressbar2-4.6.0/docs/_static/demos/widgets-percentage-label-bar.svg +0 -60
- progressbar2-4.6.0/docs/_static/demos/widgets-percentage.svg +0 -60
- progressbar2-4.6.0/docs/_static/demos/widgets-postfix.svg +0 -60
- progressbar2-4.6.0/docs/_static/demos/widgets-reverse-bar.svg +0 -60
- progressbar2-4.6.0/docs/_static/demos/widgets-rotating-marker.svg +0 -60
- progressbar2-4.6.0/docs/_static/demos/widgets-simple-progress.svg +0 -60
- progressbar2-4.6.0/docs/_static/demos/widgets-smoothing-eta.svg +0 -60
- progressbar2-4.6.0/docs/_static/demos/widgets-timer.svg +0 -60
- progressbar2-4.6.0/docs/_static/demos/widgets-unit-progress.svg +0 -60
- progressbar2-4.6.0/docs/_static/demos/widgets-variable.svg +0 -60
- progressbar2-4.6.0/docs/examples/howto/custom_widget.py +0 -49
- progressbar2-4.6.0/docs/examples/howto/dynamic_messages.py +0 -39
- progressbar2-4.6.0/docs/examples/howto/prefix_suffix.py +0 -32
- progressbar2-4.6.0/docs/examples/tutorial/step1.py +0 -21
- progressbar2-4.6.0/docs/explanation/index.rst +0 -13
- progressbar2-4.6.0/docs/howto/colors.rst +0 -27
- progressbar2-4.6.0/docs/howto/dynamic-messages.rst +0 -20
- progressbar2-4.6.0/docs/howto/index.rst +0 -23
- progressbar2-4.6.0/docs/index.rst +0 -54
- progressbar2-4.6.0/docs/installation.rst +0 -32
- progressbar2-4.6.0/docs/reference/index.rst +0 -13
- progressbar2-4.6.0/docs/tutorial/index.rst +0 -15
- progressbar2-4.6.0/progressbar2.egg-info/PKG-INFO +0 -272
- progressbar2-4.6.0/tests/test_multibar.py +0 -579
- progressbar2-4.6.0/tests/test_progressbar_command.py +0 -290
- {progressbar2-4.6.0 → progressbar2-4.7.0}/.github/ISSUE_TEMPLATE.md +0 -0
- {progressbar2-4.6.0 → progressbar2-4.7.0}/.github/ci-reporter.yml +0 -0
- {progressbar2-4.6.0 → progressbar2-4.7.0}/.github/workflows/stale.yml +0 -0
- {progressbar2-4.6.0 → progressbar2-4.7.0}/.npmrc +0 -0
- {progressbar2-4.6.0 → progressbar2-4.7.0}/.readthedocs.yaml +0 -0
- {progressbar2-4.6.0 → progressbar2-4.7.0}/AGENTS.md +0 -0
- {progressbar2-4.6.0 → progressbar2-4.7.0}/LICENSE +0 -0
- {progressbar2-4.6.0 → progressbar2-4.7.0}/docs/.gitignore +0 -0
- {progressbar2-4.6.0 → progressbar2-4.7.0}/docs/Makefile +0 -0
- {progressbar2-4.6.0 → progressbar2-4.7.0}/docs/_ext/__init__.py +0 -0
- {progressbar2-4.6.0 → progressbar2-4.7.0}/docs/_static/vendor/LICENSE-xterm.txt +0 -0
- {progressbar2-4.6.0 → progressbar2-4.7.0}/docs/_static/vendor/xterm.css +0 -0
- {progressbar2-4.6.0 → progressbar2-4.7.0}/docs/_static/vendor/xterm.js +0 -0
- {progressbar2-4.6.0 → progressbar2-4.7.0}/docs/contributing.rst +0 -0
- {progressbar2-4.6.0 → progressbar2-4.7.0}/docs/examples/__init__.py +0 -0
- {progressbar2-4.6.0 → progressbar2-4.7.0}/docs/examples/_loader.py +0 -0
- {progressbar2-4.6.0 → progressbar2-4.7.0}/docs/examples/howto/__init__.py +0 -0
- {progressbar2-4.6.0 → progressbar2-4.7.0}/docs/examples/readme/__init__.py +0 -0
- {progressbar2-4.6.0 → progressbar2-4.7.0}/docs/examples/tutorial/__init__.py +0 -0
- {progressbar2-4.6.0 → progressbar2-4.7.0}/docs/examples/widgets/__init__.py +0 -0
- {progressbar2-4.6.0 → progressbar2-4.7.0}/docs/examples.rst +0 -0
- {progressbar2-4.6.0 → progressbar2-4.7.0}/docs/explanation/backwards-compatibility.rst +0 -0
- {progressbar2-4.6.0 → progressbar2-4.7.0}/docs/explanation/rendering-and-the-update-gate.rst +0 -0
- {progressbar2-4.6.0 → progressbar2-4.7.0}/docs/explanation/terminal-detection.rst +0 -0
- {progressbar2-4.6.0 → progressbar2-4.7.0}/docs/history.rst +0 -0
- {progressbar2-4.6.0 → progressbar2-4.7.0}/docs/howto/file-transfer.rst +0 -0
- {progressbar2-4.6.0 → progressbar2-4.7.0}/docs/howto/logging-integration.rst +0 -0
- {progressbar2-4.6.0 → progressbar2-4.7.0}/docs/howto/multibar-line-offset.rst +0 -0
- {progressbar2-4.6.0 → progressbar2-4.7.0}/docs/howto/multibar.rst +0 -0
- {progressbar2-4.6.0 → progressbar2-4.7.0}/docs/howto/non-tty.rst +0 -0
- {progressbar2-4.6.0 → progressbar2-4.7.0}/docs/howto/redirect-stdout.rst +0 -0
- {progressbar2-4.6.0 → progressbar2-4.7.0}/docs/howto/unknown-length.rst +0 -0
- {progressbar2-4.6.0 → progressbar2-4.7.0}/docs/major-version-backlog.md +0 -0
- {progressbar2-4.6.0 → progressbar2-4.7.0}/docs/make.bat +0 -0
- {progressbar2-4.6.0 → progressbar2-4.7.0}/docs/progressbar.algorithms.rst +0 -0
- {progressbar2-4.6.0 → progressbar2-4.7.0}/docs/progressbar.bar.rst +0 -0
- {progressbar2-4.6.0 → progressbar2-4.7.0}/docs/progressbar.base.rst +0 -0
- {progressbar2-4.6.0 → progressbar2-4.7.0}/docs/progressbar.env.rst +0 -0
- {progressbar2-4.6.0 → progressbar2-4.7.0}/docs/progressbar.fast.rst +0 -0
- {progressbar2-4.6.0 → progressbar2-4.7.0}/docs/progressbar.multi.rst +0 -0
- {progressbar2-4.6.0 → progressbar2-4.7.0}/docs/progressbar.rst +0 -0
- {progressbar2-4.6.0 → progressbar2-4.7.0}/docs/progressbar.shortcuts.rst +0 -0
- {progressbar2-4.6.0 → progressbar2-4.7.0}/docs/progressbar.terminal.base.rst +0 -0
- {progressbar2-4.6.0 → progressbar2-4.7.0}/docs/progressbar.terminal.colors.rst +0 -0
- {progressbar2-4.6.0 → progressbar2-4.7.0}/docs/progressbar.terminal.rst +0 -0
- {progressbar2-4.6.0 → progressbar2-4.7.0}/docs/progressbar.terminal.stream.rst +0 -0
- {progressbar2-4.6.0 → progressbar2-4.7.0}/docs/progressbar.utils.rst +0 -0
- {progressbar2-4.6.0 → progressbar2-4.7.0}/docs/progressbar.widgets.rst +0 -0
- {progressbar2-4.6.0 → progressbar2-4.7.0}/docs/reference/multibar.rst +0 -0
- {progressbar2-4.6.0 → progressbar2-4.7.0}/docs/reference/progressbar.rst +0 -0
- {progressbar2-4.6.0 → progressbar2-4.7.0}/docs/requirements.txt +0 -0
- {progressbar2-4.6.0 → progressbar2-4.7.0}/docs/tutorial/step3.rst +0 -0
- {progressbar2-4.6.0 → progressbar2-4.7.0}/docs/tutorial/step4.rst +0 -0
- {progressbar2-4.6.0 → progressbar2-4.7.0}/docs/tutorial/step5.rst +0 -0
- {progressbar2-4.6.0 → progressbar2-4.7.0}/docs/usage.rst +0 -0
- {progressbar2-4.6.0 → progressbar2-4.7.0}/docs/widgets/absolute-eta.rst +0 -0
- {progressbar2-4.6.0 → progressbar2-4.7.0}/docs/widgets/adaptive-eta.rst +0 -0
- {progressbar2-4.6.0 → progressbar2-4.7.0}/docs/widgets/adaptive-transfer-speed.rst +0 -0
- {progressbar2-4.6.0 → progressbar2-4.7.0}/docs/widgets/bar.rst +0 -0
- {progressbar2-4.6.0 → progressbar2-4.7.0}/docs/widgets/bouncing-bar.rst +0 -0
- {progressbar2-4.6.0 → progressbar2-4.7.0}/docs/widgets/counter.rst +0 -0
- {progressbar2-4.6.0 → progressbar2-4.7.0}/docs/widgets/current-time.rst +0 -0
- {progressbar2-4.6.0 → progressbar2-4.7.0}/docs/widgets/data-size.rst +0 -0
- {progressbar2-4.6.0 → progressbar2-4.7.0}/docs/widgets/dynamic-message.rst +0 -0
- {progressbar2-4.6.0 → progressbar2-4.7.0}/docs/widgets/eta.rst +0 -0
- {progressbar2-4.6.0 → progressbar2-4.7.0}/docs/widgets/file-transfer-speed.rst +0 -0
- {progressbar2-4.6.0 → progressbar2-4.7.0}/docs/widgets/format-custom-text.rst +0 -0
- {progressbar2-4.6.0 → progressbar2-4.7.0}/docs/widgets/format-label-bar.rst +0 -0
- {progressbar2-4.6.0 → progressbar2-4.7.0}/docs/widgets/format-label.rst +0 -0
- {progressbar2-4.6.0 → progressbar2-4.7.0}/docs/widgets/granular-bar.rst +0 -0
- {progressbar2-4.6.0 → progressbar2-4.7.0}/docs/widgets/index.rst +0 -0
- {progressbar2-4.6.0 → progressbar2-4.7.0}/docs/widgets/job-status-bar.rst +0 -0
- {progressbar2-4.6.0 → progressbar2-4.7.0}/docs/widgets/multi-progress-bar.rst +0 -0
- {progressbar2-4.6.0 → progressbar2-4.7.0}/docs/widgets/multi-range-bar.rst +0 -0
- {progressbar2-4.6.0 → progressbar2-4.7.0}/docs/widgets/percentage-label-bar.rst +0 -0
- {progressbar2-4.6.0 → progressbar2-4.7.0}/docs/widgets/percentage.rst +0 -0
- {progressbar2-4.6.0 → progressbar2-4.7.0}/docs/widgets/postfix.rst +0 -0
- {progressbar2-4.6.0 → progressbar2-4.7.0}/docs/widgets/reverse-bar.rst +0 -0
- {progressbar2-4.6.0 → progressbar2-4.7.0}/docs/widgets/rotating-marker.rst +0 -0
- {progressbar2-4.6.0 → progressbar2-4.7.0}/docs/widgets/simple-progress.rst +0 -0
- {progressbar2-4.6.0 → progressbar2-4.7.0}/docs/widgets/smoothing-eta.rst +0 -0
- {progressbar2-4.6.0 → progressbar2-4.7.0}/docs/widgets/timer.rst +0 -0
- {progressbar2-4.6.0 → progressbar2-4.7.0}/docs/widgets/unit-progress.rst +0 -0
- {progressbar2-4.6.0 → progressbar2-4.7.0}/docs/widgets/variable.rst +0 -0
- {progressbar2-4.6.0 → progressbar2-4.7.0}/progressbar/algorithms.py +0 -0
- {progressbar2-4.6.0 → progressbar2-4.7.0}/progressbar/base.py +0 -0
- {progressbar2-4.6.0 → progressbar2-4.7.0}/progressbar/py.typed +0 -0
- {progressbar2-4.6.0 → progressbar2-4.7.0}/progressbar/shortcuts.py +0 -0
- {progressbar2-4.6.0 → progressbar2-4.7.0}/progressbar/terminal/__init__.py +0 -0
- {progressbar2-4.6.0 → progressbar2-4.7.0}/progressbar/terminal/os_specific/__init__.py +0 -0
- {progressbar2-4.6.0 → progressbar2-4.7.0}/progressbar/terminal/os_specific/posix.py +0 -0
- {progressbar2-4.6.0 → progressbar2-4.7.0}/progressbar/terminal/os_specific/windows.py +0 -0
- {progressbar2-4.6.0 → progressbar2-4.7.0}/progressbar/terminal/stream.py +0 -0
- {progressbar2-4.6.0 → progressbar2-4.7.0}/progressbar2.egg-info/dependency_links.txt +0 -0
- {progressbar2-4.6.0 → progressbar2-4.7.0}/progressbar2.egg-info/top_level.txt +0 -0
- {progressbar2-4.6.0 → progressbar2-4.7.0}/scripts/__init__.py +0 -0
- {progressbar2-4.6.0 → progressbar2-4.7.0}/setup.cfg +0 -0
- {progressbar2-4.6.0 → progressbar2-4.7.0}/tests/conftest.py +0 -0
- {progressbar2-4.6.0 → progressbar2-4.7.0}/tests/console/__init__.py +0 -0
- {progressbar2-4.6.0 → progressbar2-4.7.0}/tests/original_examples.py +0 -0
- {progressbar2-4.6.0 → progressbar2-4.7.0}/tests/requirements.txt +0 -0
- {progressbar2-4.6.0 → progressbar2-4.7.0}/tests/test_algorithms.py +0 -0
- {progressbar2-4.6.0 → progressbar2-4.7.0}/tests/test_api_surface.py +0 -0
- {progressbar2-4.6.0 → progressbar2-4.7.0}/tests/test_backwards_compatibility.py +0 -0
- {progressbar2-4.6.0 → progressbar2-4.7.0}/tests/test_custom_widgets.py +0 -0
- {progressbar2-4.6.0 → progressbar2-4.7.0}/tests/test_data.py +0 -0
- {progressbar2-4.6.0 → progressbar2-4.7.0}/tests/test_dill_pickle.py +0 -0
- {progressbar2-4.6.0 → progressbar2-4.7.0}/tests/test_docs_examples.py +0 -0
- {progressbar2-4.6.0 → progressbar2-4.7.0}/tests/test_empty.py +0 -0
- {progressbar2-4.6.0 → progressbar2-4.7.0}/tests/test_end.py +0 -0
- {progressbar2-4.6.0 → progressbar2-4.7.0}/tests/test_failure.py +0 -0
- {progressbar2-4.6.0 → progressbar2-4.7.0}/tests/test_fastpath.py +0 -0
- {progressbar2-4.6.0 → progressbar2-4.7.0}/tests/test_flush.py +0 -0
- {progressbar2-4.6.0 → progressbar2-4.7.0}/tests/test_iterators.py +0 -0
- {progressbar2-4.6.0 → progressbar2-4.7.0}/tests/test_job_status.py +0 -0
- {progressbar2-4.6.0 → progressbar2-4.7.0}/tests/test_large_values.py +0 -0
- {progressbar2-4.6.0 → progressbar2-4.7.0}/tests/test_misc.py +0 -0
- {progressbar2-4.6.0 → progressbar2-4.7.0}/tests/test_monitor_progress.py +0 -0
- {progressbar2-4.6.0 → progressbar2-4.7.0}/tests/test_native_accelerator.py +0 -0
- {progressbar2-4.6.0 → progressbar2-4.7.0}/tests/test_needs_update.py +0 -0
- {progressbar2-4.6.0 → progressbar2-4.7.0}/tests/test_os_specific.py +0 -0
- {progressbar2-4.6.0 → progressbar2-4.7.0}/tests/test_os_specific_posix.py +0 -0
- {progressbar2-4.6.0 → progressbar2-4.7.0}/tests/test_samples.py +0 -0
- {progressbar2-4.6.0 → progressbar2-4.7.0}/tests/test_speed.py +0 -0
- {progressbar2-4.6.0 → progressbar2-4.7.0}/tests/test_stream.py +0 -0
- {progressbar2-4.6.0 → progressbar2-4.7.0}/tests/test_subclass_compat.py +0 -0
- {progressbar2-4.6.0 → progressbar2-4.7.0}/tests/test_terminal.py +0 -0
- {progressbar2-4.6.0 → progressbar2-4.7.0}/tests/test_timed.py +0 -0
- {progressbar2-4.6.0 → progressbar2-4.7.0}/tests/test_timer.py +0 -0
- {progressbar2-4.6.0 → progressbar2-4.7.0}/tests/test_unicode.py +0 -0
- {progressbar2-4.6.0 → progressbar2-4.7.0}/tests/test_unknown_length.py +0 -0
- {progressbar2-4.6.0 → progressbar2-4.7.0}/tests/test_update_guard.py +0 -0
- {progressbar2-4.6.0 → progressbar2-4.7.0}/tests/test_utils.py +0 -0
- {progressbar2-4.6.0 → progressbar2-4.7.0}/tests/test_windows.py +0 -0
- {progressbar2-4.6.0 → progressbar2-4.7.0}/tests/test_with.py +0 -0
- {progressbar2-4.6.0 → progressbar2-4.7.0}/tests/test_wrappingio.py +0 -0
- {progressbar2-4.6.0 → progressbar2-4.7.0}/tools/README.md +0 -0
- {progressbar2-4.6.0 → progressbar2-4.7.0}/tools/generate_colors.py +0 -0
|
@@ -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,7 +2,7 @@ name: tox
|
|
|
2
2
|
|
|
3
3
|
on:
|
|
4
4
|
push:
|
|
5
|
-
branches: [develop]
|
|
5
|
+
branches: [master, develop]
|
|
6
6
|
pull_request:
|
|
7
7
|
workflow_dispatch:
|
|
8
8
|
|
|
@@ -36,6 +36,12 @@ jobs:
|
|
|
36
36
|
name: tox (${{ matrix.tox-env }})
|
|
37
37
|
runs-on: ubuntu-latest
|
|
38
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 }}
|
|
39
45
|
strategy:
|
|
40
46
|
fail-fast: false
|
|
41
47
|
matrix:
|
|
@@ -66,6 +72,8 @@ jobs:
|
|
|
66
72
|
- python-version: '3.14'
|
|
67
73
|
tox-env: docs-linkcheck
|
|
68
74
|
experimental: true
|
|
75
|
+
- python-version: '3.14'
|
|
76
|
+
tox-env: readme
|
|
69
77
|
- python-version: '3.14'
|
|
70
78
|
tox-env: ruff
|
|
71
79
|
- python-version: '3.14'
|
|
@@ -81,12 +89,28 @@ jobs:
|
|
|
81
89
|
- name: Install dependencies
|
|
82
90
|
run: |
|
|
83
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
|
|
84
95
|
- name: Test with tox
|
|
96
|
+
env:
|
|
97
|
+
RUFF_OUTPUT_FORMAT: >-
|
|
98
|
+
${{ github.event_name == 'pull_request' && 'github' || 'full' }}
|
|
85
99
|
# Step-level continue-on-error keeps the job green for
|
|
86
100
|
# experimental (pre-release Python) environments while still
|
|
87
101
|
# showing the failing step in the logs
|
|
88
102
|
continue-on-error: ${{ matrix.experimental || false }}
|
|
89
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
|
|
90
114
|
|
|
91
115
|
windows:
|
|
92
116
|
name: tox (windows / py312)
|
|
@@ -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
|
|
@@ -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.
|
|
@@ -118,14 +118,20 @@ Ready to contribute? Here's how to set up `python-progressbar` for local develop
|
|
|
118
118
|
|
|
119
119
|
Now you can make your changes locally.
|
|
120
120
|
|
|
121
|
-
5.
|
|
122
|
-
|
|
121
|
+
5. Before committing, format the changed Python files, then check the
|
|
122
|
+
whole tree and run the tests, including other Python versions with tox::
|
|
123
123
|
|
|
124
|
-
$
|
|
124
|
+
$ uvx ruff@latest format path/to/changed.py
|
|
125
|
+
$ uvx ruff@latest check .
|
|
126
|
+
$ uvx ruff@latest format --check .
|
|
125
127
|
$ uv run pytest
|
|
126
128
|
$ uv run tox
|
|
127
129
|
|
|
128
|
-
|
|
130
|
+
Stage the formatted changes before committing. A checkout-local
|
|
131
|
+
pre-commit gate, when installed, checks the staged snapshot with current
|
|
132
|
+
Ruff and the configured pre-commit hooks, including the CI-pinned Ruff
|
|
133
|
+
version. It leaves partially staged files untouched. Configured fixes
|
|
134
|
+
run only in the disposable snapshot and cause the commit to be rejected.
|
|
129
135
|
|
|
130
136
|
6. Commit your changes and push your branch to GitHub with `git-flow-avh`_::
|
|
131
137
|
|
|
@@ -161,3 +167,16 @@ To run a subset of tests::
|
|
|
161
167
|
$ uv run pytest tests/some_test.py
|
|
162
168
|
|
|
163
169
|
.. _git-flow-avh: https://github.com/petervanderdoes/gitflow
|
|
170
|
+
|
|
171
|
+
Automatic formatting
|
|
172
|
+
--------------------
|
|
173
|
+
|
|
174
|
+
Pull requests apply Ruff fixes before the lint check. With the autofix.ci
|
|
175
|
+
app installed for this repository, those fixes are committed to the pull
|
|
176
|
+
request branch, including forks. Findings Ruff cannot fix still fail CI.
|
|
177
|
+
The CI lint job checks committed files on pushes. The separate autofix.ci
|
|
178
|
+
workflow also runs on pushes to develop and master and can commit fixes.
|
|
179
|
+
|
|
180
|
+
Apply the same fixes locally with::
|
|
181
|
+
|
|
182
|
+
uvx --with tox-uv tox -e ruff-fix
|