progressbar2 4.6.0__tar.gz → 4.7.1__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.
Files changed (449) hide show
  1. progressbar2-4.7.1/.github/FUNDING.yml +4 -0
  2. progressbar2-4.7.1/.github/dependabot.yml +29 -0
  3. progressbar2-4.7.1/.github/workflows/autofix.yml +36 -0
  4. {progressbar2-4.6.0 → progressbar2-4.7.1}/.github/workflows/codeql.yml +3 -3
  5. {progressbar2-4.6.0 → progressbar2-4.7.1}/.github/workflows/docs.yml +4 -4
  6. {progressbar2-4.6.0 → progressbar2-4.7.1}/.github/workflows/main.yml +31 -7
  7. progressbar2-4.7.1/.github/workflows/release.yml +109 -0
  8. progressbar2-4.7.1/.github/workflows/sign.yml +217 -0
  9. {progressbar2-4.6.0 → progressbar2-4.7.1}/.github/workflows/stale.yml +1 -1
  10. {progressbar2-4.6.0 → progressbar2-4.7.1}/.gitignore +8 -0
  11. {progressbar2-4.6.0 → progressbar2-4.7.1}/.pre-commit-config.yaml +2 -0
  12. progressbar2-4.7.1/CHANGES.rst +126 -0
  13. {progressbar2-4.6.0 → progressbar2-4.7.1}/CONTRIBUTING.rst +23 -4
  14. {progressbar2-4.6.0 → progressbar2-4.7.1}/MANIFEST.in +1 -1
  15. progressbar2-4.7.1/PKG-INFO +513 -0
  16. progressbar2-4.7.1/README.md +420 -0
  17. progressbar2-4.7.1/SECURITY.md +18 -0
  18. {progressbar2-4.6.0 → progressbar2-4.7.1}/benchmarks/bench.py +33 -1
  19. progressbar2-4.7.1/benchmarks/chart.png +0 -0
  20. {progressbar2-4.6.0 → progressbar2-4.7.1}/benchmarks/report.md +24 -21
  21. {progressbar2-4.6.0 → progressbar2-4.7.1}/benchmarks/report.py +21 -19
  22. {progressbar2-4.6.0 → progressbar2-4.7.1}/benchmarks/requirements.txt +3 -2
  23. progressbar2-4.7.1/benchmarks/results.json +117 -0
  24. {progressbar2-4.6.0 → progressbar2-4.7.1}/docs/_ext/demo.py +23 -2
  25. progressbar2-4.7.1/docs/_ext/page_assets.py +38 -0
  26. progressbar2-4.7.1/docs/_static/brand.css +41 -0
  27. progressbar2-4.7.1/docs/_static/demos/homepage-quickstart.svg +41 -0
  28. progressbar2-4.7.1/docs/_static/demos/howto-colors.svg +41 -0
  29. progressbar2-4.7.1/docs/_static/demos/howto-custom-widget.svg +41 -0
  30. progressbar2-4.7.1/docs/_static/demos/howto-dynamic-messages.svg +41 -0
  31. progressbar2-4.7.1/docs/_static/demos/howto-file-transfer.svg +41 -0
  32. progressbar2-4.7.1/docs/_static/demos/howto-iterable-wrapper.svg +41 -0
  33. progressbar2-4.7.1/docs/_static/demos/howto-logging-integration.svg +41 -0
  34. progressbar2-4.7.1/docs/_static/demos/howto-multibar-line-offset.svg +41 -0
  35. progressbar2-4.7.1/docs/_static/demos/howto-multibar.svg +41 -0
  36. progressbar2-4.7.1/docs/_static/demos/howto-non-tty.svg +41 -0
  37. progressbar2-4.7.1/docs/_static/demos/howto-parallel-execution.svg +41 -0
  38. progressbar2-4.7.1/docs/_static/demos/howto-prefix-suffix.svg +41 -0
  39. progressbar2-4.7.1/docs/_static/demos/howto-redirect-stdout.svg +41 -0
  40. progressbar2-4.7.1/docs/_static/demos/howto-tqdm-style.svg +41 -0
  41. progressbar2-4.7.1/docs/_static/demos/howto-unknown-length.svg +41 -0
  42. progressbar2-4.7.1/docs/_static/demos/readme-cli.svg +41 -0
  43. progressbar2-4.7.1/docs/_static/demos/readme-colors.svg +41 -0
  44. progressbar2-4.7.1/docs/_static/demos/readme-hero.svg +41 -0
  45. progressbar2-4.7.1/docs/_static/demos/readme-multibar.svg +41 -0
  46. progressbar2-4.7.1/docs/_static/demos/readme-parallel.svg +41 -0
  47. progressbar2-4.7.1/docs/_static/demos/readme-race.svg +41 -0
  48. progressbar2-4.7.1/docs/_static/demos/readme-unknown-length.svg +41 -0
  49. progressbar2-4.7.1/docs/_static/demos/tutorial-step1.svg +41 -0
  50. progressbar2-4.7.1/docs/_static/demos/tutorial-step2.svg +41 -0
  51. progressbar2-4.7.1/docs/_static/demos/tutorial-step3.svg +41 -0
  52. progressbar2-4.7.1/docs/_static/demos/tutorial-step4.svg +41 -0
  53. progressbar2-4.7.1/docs/_static/demos/tutorial-step5.svg +41 -0
  54. progressbar2-4.7.1/docs/_static/demos/widgets-absolute-eta.svg +41 -0
  55. progressbar2-4.7.1/docs/_static/demos/widgets-adaptive-eta.svg +41 -0
  56. progressbar2-4.7.1/docs/_static/demos/widgets-adaptive-transfer-speed.svg +41 -0
  57. progressbar2-4.7.1/docs/_static/demos/widgets-animated-marker.svg +41 -0
  58. progressbar2-4.7.1/docs/_static/demos/widgets-bar.svg +41 -0
  59. progressbar2-4.7.1/docs/_static/demos/widgets-bouncing-bar.svg +41 -0
  60. progressbar2-4.7.1/docs/_static/demos/widgets-counter.svg +41 -0
  61. progressbar2-4.7.1/docs/_static/demos/widgets-current-time.svg +41 -0
  62. progressbar2-4.7.1/docs/_static/demos/widgets-data-size.svg +41 -0
  63. progressbar2-4.7.1/docs/_static/demos/widgets-dynamic-message.svg +41 -0
  64. progressbar2-4.7.1/docs/_static/demos/widgets-eta.svg +41 -0
  65. progressbar2-4.7.1/docs/_static/demos/widgets-file-transfer-speed.svg +41 -0
  66. progressbar2-4.7.1/docs/_static/demos/widgets-format-custom-text.svg +41 -0
  67. progressbar2-4.7.1/docs/_static/demos/widgets-format-label-bar.svg +41 -0
  68. progressbar2-4.7.1/docs/_static/demos/widgets-format-label.svg +41 -0
  69. progressbar2-4.7.1/docs/_static/demos/widgets-granular-bar.svg +41 -0
  70. progressbar2-4.7.1/docs/_static/demos/widgets-job-status-bar.svg +41 -0
  71. progressbar2-4.7.1/docs/_static/demos/widgets-multi-progress-bar.svg +41 -0
  72. progressbar2-4.7.1/docs/_static/demos/widgets-multi-range-bar.svg +41 -0
  73. progressbar2-4.7.1/docs/_static/demos/widgets-percentage-label-bar.svg +41 -0
  74. progressbar2-4.7.1/docs/_static/demos/widgets-percentage.svg +41 -0
  75. progressbar2-4.7.1/docs/_static/demos/widgets-postfix.svg +41 -0
  76. progressbar2-4.7.1/docs/_static/demos/widgets-reverse-bar.svg +41 -0
  77. progressbar2-4.7.1/docs/_static/demos/widgets-rotating-marker.svg +41 -0
  78. progressbar2-4.7.1/docs/_static/demos/widgets-simple-progress.svg +41 -0
  79. progressbar2-4.7.1/docs/_static/demos/widgets-smoothing-eta.svg +41 -0
  80. progressbar2-4.7.1/docs/_static/demos/widgets-timer.svg +41 -0
  81. progressbar2-4.7.1/docs/_static/demos/widgets-unit-progress.svg +41 -0
  82. progressbar2-4.7.1/docs/_static/demos/widgets-variable.svg +41 -0
  83. progressbar2-4.7.1/docs/_static/guide-cards.css +23 -0
  84. progressbar2-4.7.1/docs/_static/home.css +124 -0
  85. {progressbar2-4.6.0 → progressbar2-4.7.1}/docs/_static/livecode/livecode.css +30 -0
  86. {progressbar2-4.6.0 → progressbar2-4.7.1}/docs/_static/livecode/livecode.js +103 -11
  87. {progressbar2-4.6.0 → progressbar2-4.7.1}/docs/_static/livecode/worker.js +16 -3
  88. progressbar2-4.7.1/docs/_static/section-pages.css +67 -0
  89. progressbar2-4.7.1/docs/_static/showcase.js +119 -0
  90. progressbar2-4.7.1/docs/_static/vendor/LICENSE-addon-fit.txt +19 -0
  91. {progressbar2-4.6.0 → progressbar2-4.7.1}/docs/_static/vendor/README.md +11 -0
  92. progressbar2-4.7.1/docs/_static/vendor/addon-fit.js +2 -0
  93. progressbar2-4.7.1/docs/_static/vendor/addon-fit.js.map +1 -0
  94. progressbar2-4.7.1/docs/_templates/page.html +50 -0
  95. {progressbar2-4.6.0 → progressbar2-4.7.1}/docs/conf.py +39 -1
  96. {progressbar2-4.6.0 → progressbar2-4.7.1}/docs/examples/_registry.py +66 -12
  97. progressbar2-4.7.1/docs/examples/homepage/__init__.py +1 -0
  98. progressbar2-4.7.1/docs/examples/homepage/quickstart.py +14 -0
  99. {progressbar2-4.6.0 → progressbar2-4.7.1}/docs/examples/howto/colors.py +7 -12
  100. progressbar2-4.7.1/docs/examples/howto/custom_widget.py +48 -0
  101. progressbar2-4.7.1/docs/examples/howto/dynamic_messages.py +44 -0
  102. {progressbar2-4.6.0 → progressbar2-4.7.1}/docs/examples/howto/file_transfer.py +0 -2
  103. {progressbar2-4.6.0 → progressbar2-4.7.1}/docs/examples/howto/iterable_wrapper.py +1 -3
  104. {progressbar2-4.6.0 → progressbar2-4.7.1}/docs/examples/howto/logging_integration.py +0 -2
  105. {progressbar2-4.6.0 → progressbar2-4.7.1}/docs/examples/howto/multibar.py +0 -2
  106. {progressbar2-4.6.0 → progressbar2-4.7.1}/docs/examples/howto/multibar_line_offset.py +15 -5
  107. {progressbar2-4.6.0 → progressbar2-4.7.1}/docs/examples/howto/non_tty.py +0 -2
  108. progressbar2-4.7.1/docs/examples/howto/parallel_execution.py +57 -0
  109. progressbar2-4.7.1/docs/examples/howto/prefix_suffix.py +44 -0
  110. {progressbar2-4.6.0 → progressbar2-4.7.1}/docs/examples/howto/redirect_stdout.py +0 -2
  111. {progressbar2-4.6.0 → progressbar2-4.7.1}/docs/examples/howto/tqdm_style.py +0 -2
  112. {progressbar2-4.6.0 → progressbar2-4.7.1}/docs/examples/howto/unknown_length.py +0 -2
  113. progressbar2-4.7.1/docs/examples/readme/cli.py +47 -0
  114. progressbar2-4.7.1/docs/examples/readme/colors.py +68 -0
  115. {progressbar2-4.6.0 → progressbar2-4.7.1}/docs/examples/readme/hero.py +0 -2
  116. {progressbar2-4.6.0 → progressbar2-4.7.1}/docs/examples/readme/multibar.py +0 -2
  117. progressbar2-4.7.1/docs/examples/readme/parallel.py +49 -0
  118. {progressbar2-4.6.0 → progressbar2-4.7.1}/docs/examples/readme/unknown_length.py +0 -2
  119. progressbar2-4.7.1/docs/examples/tutorial/step1.py +14 -0
  120. {progressbar2-4.6.0 → progressbar2-4.7.1}/docs/examples/tutorial/step2.py +1 -3
  121. {progressbar2-4.6.0 → progressbar2-4.7.1}/docs/examples/tutorial/step3.py +0 -2
  122. {progressbar2-4.6.0 → progressbar2-4.7.1}/docs/examples/tutorial/step4.py +0 -2
  123. {progressbar2-4.6.0 → progressbar2-4.7.1}/docs/examples/tutorial/step5.py +0 -2
  124. {progressbar2-4.6.0 → progressbar2-4.7.1}/docs/examples/widgets/absolute_eta.py +0 -2
  125. {progressbar2-4.6.0 → progressbar2-4.7.1}/docs/examples/widgets/adaptive_eta.py +0 -2
  126. {progressbar2-4.6.0 → progressbar2-4.7.1}/docs/examples/widgets/adaptive_transfer_speed.py +0 -2
  127. {progressbar2-4.6.0 → progressbar2-4.7.1}/docs/examples/widgets/animated_marker.py +0 -2
  128. {progressbar2-4.6.0 → progressbar2-4.7.1}/docs/examples/widgets/bar.py +0 -2
  129. {progressbar2-4.6.0 → progressbar2-4.7.1}/docs/examples/widgets/bouncing_bar.py +0 -2
  130. {progressbar2-4.6.0 → progressbar2-4.7.1}/docs/examples/widgets/counter.py +0 -2
  131. {progressbar2-4.6.0 → progressbar2-4.7.1}/docs/examples/widgets/current_time.py +0 -2
  132. {progressbar2-4.6.0 → progressbar2-4.7.1}/docs/examples/widgets/data_size.py +0 -2
  133. {progressbar2-4.6.0 → progressbar2-4.7.1}/docs/examples/widgets/dynamic_message.py +0 -2
  134. {progressbar2-4.6.0 → progressbar2-4.7.1}/docs/examples/widgets/eta.py +0 -2
  135. {progressbar2-4.6.0 → progressbar2-4.7.1}/docs/examples/widgets/file_transfer_speed.py +0 -2
  136. {progressbar2-4.6.0 → progressbar2-4.7.1}/docs/examples/widgets/format_custom_text.py +0 -2
  137. {progressbar2-4.6.0 → progressbar2-4.7.1}/docs/examples/widgets/format_label.py +0 -2
  138. {progressbar2-4.6.0 → progressbar2-4.7.1}/docs/examples/widgets/format_label_bar.py +0 -2
  139. {progressbar2-4.6.0 → progressbar2-4.7.1}/docs/examples/widgets/granular_bar.py +0 -2
  140. {progressbar2-4.6.0 → progressbar2-4.7.1}/docs/examples/widgets/job_status_bar.py +0 -2
  141. {progressbar2-4.6.0 → progressbar2-4.7.1}/docs/examples/widgets/multi_progress_bar.py +0 -2
  142. {progressbar2-4.6.0 → progressbar2-4.7.1}/docs/examples/widgets/multi_range_bar.py +0 -2
  143. {progressbar2-4.6.0 → progressbar2-4.7.1}/docs/examples/widgets/percentage.py +0 -2
  144. {progressbar2-4.6.0 → progressbar2-4.7.1}/docs/examples/widgets/percentage_label_bar.py +0 -2
  145. {progressbar2-4.6.0 → progressbar2-4.7.1}/docs/examples/widgets/postfix.py +0 -2
  146. {progressbar2-4.6.0 → progressbar2-4.7.1}/docs/examples/widgets/reverse_bar.py +0 -2
  147. {progressbar2-4.6.0 → progressbar2-4.7.1}/docs/examples/widgets/rotating_marker.py +0 -2
  148. {progressbar2-4.6.0 → progressbar2-4.7.1}/docs/examples/widgets/simple_progress.py +0 -2
  149. {progressbar2-4.6.0 → progressbar2-4.7.1}/docs/examples/widgets/smoothing_eta.py +0 -2
  150. {progressbar2-4.6.0 → progressbar2-4.7.1}/docs/examples/widgets/timer.py +0 -2
  151. {progressbar2-4.6.0 → progressbar2-4.7.1}/docs/examples/widgets/unit_progress.py +0 -2
  152. {progressbar2-4.6.0 → progressbar2-4.7.1}/docs/examples/widgets/variable.py +0 -2
  153. progressbar2-4.7.1/docs/explanation/index.rst +74 -0
  154. {progressbar2-4.6.0 → progressbar2-4.7.1}/docs/explanation/performance-and-the-fast-path.rst +5 -0
  155. progressbar2-4.7.1/docs/howto/colors.rst +32 -0
  156. {progressbar2-4.6.0 → progressbar2-4.7.1}/docs/howto/custom-widget.rst +6 -2
  157. progressbar2-4.7.1/docs/howto/dynamic-messages.rst +23 -0
  158. progressbar2-4.7.1/docs/howto/index.rst +259 -0
  159. {progressbar2-4.6.0 → progressbar2-4.7.1}/docs/howto/iterable-wrapper.rst +3 -0
  160. progressbar2-4.7.1/docs/howto/parallel-execution.rst +244 -0
  161. {progressbar2-4.6.0 → progressbar2-4.7.1}/docs/howto/prefix-suffix.rst +6 -0
  162. {progressbar2-4.6.0 → progressbar2-4.7.1}/docs/howto/tqdm-style.rst +3 -2
  163. progressbar2-4.7.1/docs/index.rst +128 -0
  164. progressbar2-4.7.1/docs/installation.rst +99 -0
  165. {progressbar2-4.6.0 → progressbar2-4.7.1}/docs/reference/cli.rst +14 -1
  166. progressbar2-4.7.1/docs/reference/index.rst +100 -0
  167. progressbar2-4.7.1/docs/reference/parallel.rst +118 -0
  168. progressbar2-4.7.1/docs/requirements.txt +2 -0
  169. progressbar2-4.7.1/docs/sponsor.rst +19 -0
  170. progressbar2-4.7.1/docs/tutorial/index.rst +104 -0
  171. {progressbar2-4.6.0 → progressbar2-4.7.1}/docs/tutorial/step1.rst +3 -0
  172. {progressbar2-4.6.0 → progressbar2-4.7.1}/docs/tutorial/step2.rst +4 -0
  173. {progressbar2-4.6.0 → progressbar2-4.7.1}/docs/widgets/animated-marker.rst +6 -1
  174. {progressbar2-4.6.0 → progressbar2-4.7.1}/examples.py +1 -3
  175. {progressbar2-4.6.0 → progressbar2-4.7.1}/progressbar/__about__.py +2 -2
  176. {progressbar2-4.6.0 → progressbar2-4.7.1}/progressbar/__init__.py +55 -1
  177. {progressbar2-4.6.0 → progressbar2-4.7.1}/progressbar/__main__.py +288 -87
  178. progressbar2-4.7.1/progressbar/_identity.py +79 -0
  179. progressbar2-4.7.1/progressbar/_parallel/__init__.py +57 -0
  180. progressbar2-4.7.1/progressbar/_parallel/_async.py +452 -0
  181. progressbar2-4.7.1/progressbar/_parallel/_common.py +212 -0
  182. progressbar2-4.7.1/progressbar/_parallel/_decorator.py +138 -0
  183. progressbar2-4.7.1/progressbar/_parallel/_display.py +370 -0
  184. progressbar2-4.7.1/progressbar/_parallel/_shell.py +210 -0
  185. progressbar2-4.7.1/progressbar/_parallel/_sync.py +825 -0
  186. {progressbar2-4.6.0 → progressbar2-4.7.1}/progressbar/bar.py +188 -30
  187. {progressbar2-4.6.0 → progressbar2-4.7.1}/progressbar/env.py +6 -5
  188. {progressbar2-4.6.0 → progressbar2-4.7.1}/progressbar/fast.py +29 -1
  189. {progressbar2-4.6.0 → progressbar2-4.7.1}/progressbar/multi.py +235 -49
  190. {progressbar2-4.6.0 → progressbar2-4.7.1}/progressbar/terminal/base.py +363 -36
  191. {progressbar2-4.6.0 → progressbar2-4.7.1}/progressbar/terminal/colors.py +11 -1
  192. {progressbar2-4.6.0 → progressbar2-4.7.1}/progressbar/utils.py +564 -105
  193. {progressbar2-4.6.0 → progressbar2-4.7.1}/progressbar/widgets.py +228 -47
  194. progressbar2-4.7.1/progressbar2.egg-info/PKG-INFO +513 -0
  195. {progressbar2-4.6.0 → progressbar2-4.7.1}/progressbar2.egg-info/SOURCES.txt +63 -1
  196. {progressbar2-4.6.0 → progressbar2-4.7.1}/progressbar2.egg-info/entry_points.txt +1 -0
  197. {progressbar2-4.6.0 → progressbar2-4.7.1}/progressbar2.egg-info/requires.txt +5 -1
  198. {progressbar2-4.6.0 → progressbar2-4.7.1}/pyproject.toml +13 -2
  199. {progressbar2-4.6.0 → progressbar2-4.7.1}/pytest.ini +7 -0
  200. {progressbar2-4.6.0 → progressbar2-4.7.1}/ruff.toml +5 -2
  201. {progressbar2-4.6.0 → progressbar2-4.7.1}/scripts/build_docs_wheels.py +12 -1
  202. {progressbar2-4.6.0 → progressbar2-4.7.1}/scripts/render_demos.py +90 -27
  203. progressbar2-4.7.1/scripts/render_race.py +193 -0
  204. {progressbar2-4.6.0 → progressbar2-4.7.1}/tests/api_surface_snapshot.json +22 -7
  205. {progressbar2-4.6.0 → progressbar2-4.7.1}/tests/console/test_console.py +63 -6
  206. progressbar2-4.7.1/tests/console/test_example_colours.py +105 -0
  207. progressbar2-4.7.1/tests/console/test_homepage.py +350 -0
  208. progressbar2-4.7.1/tests/console/test_showcase_assets.py +40 -0
  209. {progressbar2-4.6.0 → progressbar2-4.7.1}/tests/test_color.py +73 -2
  210. progressbar2-4.7.1/tests/test_color_fast_path.py +422 -0
  211. {progressbar2-4.6.0 → progressbar2-4.7.1}/tests/test_data_transfer_bar.py +20 -0
  212. progressbar2-4.7.1/tests/test_demo_animations.py +40 -0
  213. progressbar2-4.7.1/tests/test_deprecation_warnings.py +95 -0
  214. progressbar2-4.7.1/tests/test_docs_wheel_urls.py +27 -0
  215. {progressbar2-4.6.0 → progressbar2-4.7.1}/tests/test_env_detection.py +34 -0
  216. {progressbar2-4.6.0 → progressbar2-4.7.1}/tests/test_fast_default.py +126 -0
  217. progressbar2-4.7.1/tests/test_format_security.py +451 -0
  218. {progressbar2-4.6.0 → progressbar2-4.7.1}/tests/test_init_exports.py +28 -9
  219. progressbar2-4.7.1/tests/test_multibar.py +1346 -0
  220. progressbar2-4.7.1/tests/test_parallel_aliases.py +110 -0
  221. progressbar2-4.7.1/tests/test_parallel_async.py +402 -0
  222. progressbar2-4.7.1/tests/test_parallel_common.py +156 -0
  223. progressbar2-4.7.1/tests/test_parallel_decorator.py +86 -0
  224. progressbar2-4.7.1/tests/test_parallel_display.py +194 -0
  225. progressbar2-4.7.1/tests/test_parallel_display_security.py +78 -0
  226. progressbar2-4.7.1/tests/test_parallel_errors.py +126 -0
  227. progressbar2-4.7.1/tests/test_parallel_imap.py +129 -0
  228. progressbar2-4.7.1/tests/test_parallel_map.py +157 -0
  229. progressbar2-4.7.1/tests/test_parallel_pool.py +113 -0
  230. progressbar2-4.7.1/tests/test_parallel_process.py +229 -0
  231. progressbar2-4.7.1/tests/test_parallel_shell.py +168 -0
  232. {progressbar2-4.6.0 → progressbar2-4.7.1}/tests/test_perf_budget.py +72 -0
  233. {progressbar2-4.6.0 → progressbar2-4.7.1}/tests/test_progressbar.py +149 -35
  234. progressbar2-4.7.1/tests/test_progressbar_command.py +704 -0
  235. {progressbar2-4.6.0 → progressbar2-4.7.1}/tests/test_readme_demos.py +269 -50
  236. progressbar2-4.7.1/tests/test_render_race.py +118 -0
  237. progressbar2-4.7.1/tests/test_stream_security.py +1573 -0
  238. progressbar2-4.7.1/tests/test_widget_default_colours.py +152 -0
  239. {progressbar2-4.6.0 → progressbar2-4.7.1}/tests/test_widgets.py +3 -2
  240. {progressbar2-4.6.0 → progressbar2-4.7.1}/tox.ini +35 -4
  241. {progressbar2-4.6.0 → progressbar2-4.7.1}/uv.lock +21 -11
  242. progressbar2-4.6.0/.github/FUNDING.yml +0 -1
  243. progressbar2-4.6.0/CHANGES.rst +0 -11
  244. progressbar2-4.6.0/PKG-INFO +0 -272
  245. progressbar2-4.6.0/README.rst +0 -185
  246. progressbar2-4.6.0/benchmarks/chart.png +0 -0
  247. progressbar2-4.6.0/benchmarks/results.json +0 -107
  248. progressbar2-4.6.0/docs/_static/demos/howto-colors.svg +0 -60
  249. progressbar2-4.6.0/docs/_static/demos/howto-custom-widget.svg +0 -60
  250. progressbar2-4.6.0/docs/_static/demos/howto-dynamic-messages.svg +0 -60
  251. progressbar2-4.6.0/docs/_static/demos/howto-file-transfer.svg +0 -60
  252. progressbar2-4.6.0/docs/_static/demos/howto-iterable-wrapper.svg +0 -60
  253. progressbar2-4.6.0/docs/_static/demos/howto-logging-integration.svg +0 -60
  254. progressbar2-4.6.0/docs/_static/demos/howto-multibar-line-offset.svg +0 -60
  255. progressbar2-4.6.0/docs/_static/demos/howto-multibar.svg +0 -60
  256. progressbar2-4.6.0/docs/_static/demos/howto-non-tty.svg +0 -60
  257. progressbar2-4.6.0/docs/_static/demos/howto-prefix-suffix.svg +0 -60
  258. progressbar2-4.6.0/docs/_static/demos/howto-redirect-stdout.svg +0 -60
  259. progressbar2-4.6.0/docs/_static/demos/howto-tqdm-style.svg +0 -60
  260. progressbar2-4.6.0/docs/_static/demos/howto-unknown-length.svg +0 -60
  261. progressbar2-4.6.0/docs/_static/demos/readme-hero.svg +0 -60
  262. progressbar2-4.6.0/docs/_static/demos/readme-multibar.svg +0 -60
  263. progressbar2-4.6.0/docs/_static/demos/readme-unknown-length.svg +0 -60
  264. progressbar2-4.6.0/docs/_static/demos/tutorial-step1.svg +0 -60
  265. progressbar2-4.6.0/docs/_static/demos/tutorial-step2.svg +0 -60
  266. progressbar2-4.6.0/docs/_static/demos/tutorial-step3.svg +0 -60
  267. progressbar2-4.6.0/docs/_static/demos/tutorial-step4.svg +0 -60
  268. progressbar2-4.6.0/docs/_static/demos/tutorial-step5.svg +0 -60
  269. progressbar2-4.6.0/docs/_static/demos/widgets-absolute-eta.svg +0 -60
  270. progressbar2-4.6.0/docs/_static/demos/widgets-adaptive-eta.svg +0 -60
  271. progressbar2-4.6.0/docs/_static/demos/widgets-adaptive-transfer-speed.svg +0 -60
  272. progressbar2-4.6.0/docs/_static/demos/widgets-animated-marker.svg +0 -60
  273. progressbar2-4.6.0/docs/_static/demos/widgets-bar.svg +0 -60
  274. progressbar2-4.6.0/docs/_static/demos/widgets-bouncing-bar.svg +0 -60
  275. progressbar2-4.6.0/docs/_static/demos/widgets-counter.svg +0 -60
  276. progressbar2-4.6.0/docs/_static/demos/widgets-current-time.svg +0 -60
  277. progressbar2-4.6.0/docs/_static/demos/widgets-data-size.svg +0 -60
  278. progressbar2-4.6.0/docs/_static/demos/widgets-dynamic-message.svg +0 -60
  279. progressbar2-4.6.0/docs/_static/demos/widgets-eta.svg +0 -60
  280. progressbar2-4.6.0/docs/_static/demos/widgets-file-transfer-speed.svg +0 -60
  281. progressbar2-4.6.0/docs/_static/demos/widgets-format-custom-text.svg +0 -60
  282. progressbar2-4.6.0/docs/_static/demos/widgets-format-label-bar.svg +0 -60
  283. progressbar2-4.6.0/docs/_static/demos/widgets-format-label.svg +0 -60
  284. progressbar2-4.6.0/docs/_static/demos/widgets-granular-bar.svg +0 -60
  285. progressbar2-4.6.0/docs/_static/demos/widgets-job-status-bar.svg +0 -60
  286. progressbar2-4.6.0/docs/_static/demos/widgets-multi-progress-bar.svg +0 -60
  287. progressbar2-4.6.0/docs/_static/demos/widgets-multi-range-bar.svg +0 -60
  288. progressbar2-4.6.0/docs/_static/demos/widgets-percentage-label-bar.svg +0 -60
  289. progressbar2-4.6.0/docs/_static/demos/widgets-percentage.svg +0 -60
  290. progressbar2-4.6.0/docs/_static/demos/widgets-postfix.svg +0 -60
  291. progressbar2-4.6.0/docs/_static/demos/widgets-reverse-bar.svg +0 -60
  292. progressbar2-4.6.0/docs/_static/demos/widgets-rotating-marker.svg +0 -60
  293. progressbar2-4.6.0/docs/_static/demos/widgets-simple-progress.svg +0 -60
  294. progressbar2-4.6.0/docs/_static/demos/widgets-smoothing-eta.svg +0 -60
  295. progressbar2-4.6.0/docs/_static/demos/widgets-timer.svg +0 -60
  296. progressbar2-4.6.0/docs/_static/demos/widgets-unit-progress.svg +0 -60
  297. progressbar2-4.6.0/docs/_static/demos/widgets-variable.svg +0 -60
  298. progressbar2-4.6.0/docs/examples/howto/custom_widget.py +0 -49
  299. progressbar2-4.6.0/docs/examples/howto/dynamic_messages.py +0 -39
  300. progressbar2-4.6.0/docs/examples/howto/prefix_suffix.py +0 -32
  301. progressbar2-4.6.0/docs/examples/tutorial/step1.py +0 -21
  302. progressbar2-4.6.0/docs/explanation/index.rst +0 -13
  303. progressbar2-4.6.0/docs/howto/colors.rst +0 -27
  304. progressbar2-4.6.0/docs/howto/dynamic-messages.rst +0 -20
  305. progressbar2-4.6.0/docs/howto/index.rst +0 -23
  306. progressbar2-4.6.0/docs/index.rst +0 -54
  307. progressbar2-4.6.0/docs/installation.rst +0 -32
  308. progressbar2-4.6.0/docs/reference/index.rst +0 -13
  309. progressbar2-4.6.0/docs/requirements.txt +0 -2
  310. progressbar2-4.6.0/docs/tutorial/index.rst +0 -15
  311. progressbar2-4.6.0/progressbar2.egg-info/PKG-INFO +0 -272
  312. progressbar2-4.6.0/tests/test_multibar.py +0 -579
  313. progressbar2-4.6.0/tests/test_progressbar_command.py +0 -290
  314. {progressbar2-4.6.0 → progressbar2-4.7.1}/.github/ISSUE_TEMPLATE.md +0 -0
  315. {progressbar2-4.6.0 → progressbar2-4.7.1}/.github/ci-reporter.yml +0 -0
  316. {progressbar2-4.6.0 → progressbar2-4.7.1}/.npmrc +0 -0
  317. {progressbar2-4.6.0 → progressbar2-4.7.1}/.readthedocs.yaml +0 -0
  318. {progressbar2-4.6.0 → progressbar2-4.7.1}/AGENTS.md +0 -0
  319. {progressbar2-4.6.0 → progressbar2-4.7.1}/LICENSE +0 -0
  320. {progressbar2-4.6.0 → progressbar2-4.7.1}/docs/.gitignore +0 -0
  321. {progressbar2-4.6.0 → progressbar2-4.7.1}/docs/Makefile +0 -0
  322. {progressbar2-4.6.0 → progressbar2-4.7.1}/docs/_ext/__init__.py +0 -0
  323. {progressbar2-4.6.0 → progressbar2-4.7.1}/docs/_static/vendor/LICENSE-xterm.txt +0 -0
  324. {progressbar2-4.6.0 → progressbar2-4.7.1}/docs/_static/vendor/xterm.css +0 -0
  325. {progressbar2-4.6.0 → progressbar2-4.7.1}/docs/_static/vendor/xterm.js +0 -0
  326. {progressbar2-4.6.0 → progressbar2-4.7.1}/docs/contributing.rst +0 -0
  327. {progressbar2-4.6.0 → progressbar2-4.7.1}/docs/examples/__init__.py +0 -0
  328. {progressbar2-4.6.0 → progressbar2-4.7.1}/docs/examples/_loader.py +0 -0
  329. {progressbar2-4.6.0 → progressbar2-4.7.1}/docs/examples/howto/__init__.py +0 -0
  330. {progressbar2-4.6.0 → progressbar2-4.7.1}/docs/examples/readme/__init__.py +0 -0
  331. {progressbar2-4.6.0 → progressbar2-4.7.1}/docs/examples/tutorial/__init__.py +0 -0
  332. {progressbar2-4.6.0 → progressbar2-4.7.1}/docs/examples/widgets/__init__.py +0 -0
  333. {progressbar2-4.6.0 → progressbar2-4.7.1}/docs/examples.rst +0 -0
  334. {progressbar2-4.6.0 → progressbar2-4.7.1}/docs/explanation/backwards-compatibility.rst +0 -0
  335. {progressbar2-4.6.0 → progressbar2-4.7.1}/docs/explanation/rendering-and-the-update-gate.rst +0 -0
  336. {progressbar2-4.6.0 → progressbar2-4.7.1}/docs/explanation/terminal-detection.rst +0 -0
  337. {progressbar2-4.6.0 → progressbar2-4.7.1}/docs/history.rst +0 -0
  338. {progressbar2-4.6.0 → progressbar2-4.7.1}/docs/howto/file-transfer.rst +0 -0
  339. {progressbar2-4.6.0 → progressbar2-4.7.1}/docs/howto/logging-integration.rst +0 -0
  340. {progressbar2-4.6.0 → progressbar2-4.7.1}/docs/howto/multibar-line-offset.rst +0 -0
  341. {progressbar2-4.6.0 → progressbar2-4.7.1}/docs/howto/multibar.rst +0 -0
  342. {progressbar2-4.6.0 → progressbar2-4.7.1}/docs/howto/non-tty.rst +0 -0
  343. {progressbar2-4.6.0 → progressbar2-4.7.1}/docs/howto/redirect-stdout.rst +0 -0
  344. {progressbar2-4.6.0 → progressbar2-4.7.1}/docs/howto/unknown-length.rst +0 -0
  345. {progressbar2-4.6.0 → progressbar2-4.7.1}/docs/major-version-backlog.md +0 -0
  346. {progressbar2-4.6.0 → progressbar2-4.7.1}/docs/make.bat +0 -0
  347. {progressbar2-4.6.0 → progressbar2-4.7.1}/docs/progressbar.algorithms.rst +0 -0
  348. {progressbar2-4.6.0 → progressbar2-4.7.1}/docs/progressbar.bar.rst +0 -0
  349. {progressbar2-4.6.0 → progressbar2-4.7.1}/docs/progressbar.base.rst +0 -0
  350. {progressbar2-4.6.0 → progressbar2-4.7.1}/docs/progressbar.env.rst +0 -0
  351. {progressbar2-4.6.0 → progressbar2-4.7.1}/docs/progressbar.fast.rst +0 -0
  352. {progressbar2-4.6.0 → progressbar2-4.7.1}/docs/progressbar.multi.rst +0 -0
  353. {progressbar2-4.6.0 → progressbar2-4.7.1}/docs/progressbar.rst +0 -0
  354. {progressbar2-4.6.0 → progressbar2-4.7.1}/docs/progressbar.shortcuts.rst +0 -0
  355. {progressbar2-4.6.0 → progressbar2-4.7.1}/docs/progressbar.terminal.base.rst +0 -0
  356. {progressbar2-4.6.0 → progressbar2-4.7.1}/docs/progressbar.terminal.colors.rst +0 -0
  357. {progressbar2-4.6.0 → progressbar2-4.7.1}/docs/progressbar.terminal.rst +0 -0
  358. {progressbar2-4.6.0 → progressbar2-4.7.1}/docs/progressbar.terminal.stream.rst +0 -0
  359. {progressbar2-4.6.0 → progressbar2-4.7.1}/docs/progressbar.utils.rst +0 -0
  360. {progressbar2-4.6.0 → progressbar2-4.7.1}/docs/progressbar.widgets.rst +0 -0
  361. {progressbar2-4.6.0 → progressbar2-4.7.1}/docs/reference/multibar.rst +0 -0
  362. {progressbar2-4.6.0 → progressbar2-4.7.1}/docs/reference/progressbar.rst +0 -0
  363. {progressbar2-4.6.0 → progressbar2-4.7.1}/docs/tutorial/step3.rst +0 -0
  364. {progressbar2-4.6.0 → progressbar2-4.7.1}/docs/tutorial/step4.rst +0 -0
  365. {progressbar2-4.6.0 → progressbar2-4.7.1}/docs/tutorial/step5.rst +0 -0
  366. {progressbar2-4.6.0 → progressbar2-4.7.1}/docs/usage.rst +0 -0
  367. {progressbar2-4.6.0 → progressbar2-4.7.1}/docs/widgets/absolute-eta.rst +0 -0
  368. {progressbar2-4.6.0 → progressbar2-4.7.1}/docs/widgets/adaptive-eta.rst +0 -0
  369. {progressbar2-4.6.0 → progressbar2-4.7.1}/docs/widgets/adaptive-transfer-speed.rst +0 -0
  370. {progressbar2-4.6.0 → progressbar2-4.7.1}/docs/widgets/bar.rst +0 -0
  371. {progressbar2-4.6.0 → progressbar2-4.7.1}/docs/widgets/bouncing-bar.rst +0 -0
  372. {progressbar2-4.6.0 → progressbar2-4.7.1}/docs/widgets/counter.rst +0 -0
  373. {progressbar2-4.6.0 → progressbar2-4.7.1}/docs/widgets/current-time.rst +0 -0
  374. {progressbar2-4.6.0 → progressbar2-4.7.1}/docs/widgets/data-size.rst +0 -0
  375. {progressbar2-4.6.0 → progressbar2-4.7.1}/docs/widgets/dynamic-message.rst +0 -0
  376. {progressbar2-4.6.0 → progressbar2-4.7.1}/docs/widgets/eta.rst +0 -0
  377. {progressbar2-4.6.0 → progressbar2-4.7.1}/docs/widgets/file-transfer-speed.rst +0 -0
  378. {progressbar2-4.6.0 → progressbar2-4.7.1}/docs/widgets/format-custom-text.rst +0 -0
  379. {progressbar2-4.6.0 → progressbar2-4.7.1}/docs/widgets/format-label-bar.rst +0 -0
  380. {progressbar2-4.6.0 → progressbar2-4.7.1}/docs/widgets/format-label.rst +0 -0
  381. {progressbar2-4.6.0 → progressbar2-4.7.1}/docs/widgets/granular-bar.rst +0 -0
  382. {progressbar2-4.6.0 → progressbar2-4.7.1}/docs/widgets/index.rst +0 -0
  383. {progressbar2-4.6.0 → progressbar2-4.7.1}/docs/widgets/job-status-bar.rst +0 -0
  384. {progressbar2-4.6.0 → progressbar2-4.7.1}/docs/widgets/multi-progress-bar.rst +0 -0
  385. {progressbar2-4.6.0 → progressbar2-4.7.1}/docs/widgets/multi-range-bar.rst +0 -0
  386. {progressbar2-4.6.0 → progressbar2-4.7.1}/docs/widgets/percentage-label-bar.rst +0 -0
  387. {progressbar2-4.6.0 → progressbar2-4.7.1}/docs/widgets/percentage.rst +0 -0
  388. {progressbar2-4.6.0 → progressbar2-4.7.1}/docs/widgets/postfix.rst +0 -0
  389. {progressbar2-4.6.0 → progressbar2-4.7.1}/docs/widgets/reverse-bar.rst +0 -0
  390. {progressbar2-4.6.0 → progressbar2-4.7.1}/docs/widgets/rotating-marker.rst +0 -0
  391. {progressbar2-4.6.0 → progressbar2-4.7.1}/docs/widgets/simple-progress.rst +0 -0
  392. {progressbar2-4.6.0 → progressbar2-4.7.1}/docs/widgets/smoothing-eta.rst +0 -0
  393. {progressbar2-4.6.0 → progressbar2-4.7.1}/docs/widgets/timer.rst +0 -0
  394. {progressbar2-4.6.0 → progressbar2-4.7.1}/docs/widgets/unit-progress.rst +0 -0
  395. {progressbar2-4.6.0 → progressbar2-4.7.1}/docs/widgets/variable.rst +0 -0
  396. {progressbar2-4.6.0 → progressbar2-4.7.1}/progressbar/algorithms.py +0 -0
  397. {progressbar2-4.6.0 → progressbar2-4.7.1}/progressbar/base.py +0 -0
  398. {progressbar2-4.6.0 → progressbar2-4.7.1}/progressbar/py.typed +0 -0
  399. {progressbar2-4.6.0 → progressbar2-4.7.1}/progressbar/shortcuts.py +0 -0
  400. {progressbar2-4.6.0 → progressbar2-4.7.1}/progressbar/terminal/__init__.py +0 -0
  401. {progressbar2-4.6.0 → progressbar2-4.7.1}/progressbar/terminal/os_specific/__init__.py +0 -0
  402. {progressbar2-4.6.0 → progressbar2-4.7.1}/progressbar/terminal/os_specific/posix.py +0 -0
  403. {progressbar2-4.6.0 → progressbar2-4.7.1}/progressbar/terminal/os_specific/windows.py +0 -0
  404. {progressbar2-4.6.0 → progressbar2-4.7.1}/progressbar/terminal/stream.py +0 -0
  405. {progressbar2-4.6.0 → progressbar2-4.7.1}/progressbar2.egg-info/dependency_links.txt +0 -0
  406. {progressbar2-4.6.0 → progressbar2-4.7.1}/progressbar2.egg-info/top_level.txt +0 -0
  407. {progressbar2-4.6.0 → progressbar2-4.7.1}/scripts/__init__.py +0 -0
  408. {progressbar2-4.6.0 → progressbar2-4.7.1}/setup.cfg +0 -0
  409. {progressbar2-4.6.0 → progressbar2-4.7.1}/tests/conftest.py +0 -0
  410. {progressbar2-4.6.0 → progressbar2-4.7.1}/tests/console/__init__.py +0 -0
  411. {progressbar2-4.6.0 → progressbar2-4.7.1}/tests/original_examples.py +0 -0
  412. {progressbar2-4.6.0 → progressbar2-4.7.1}/tests/requirements.txt +0 -0
  413. {progressbar2-4.6.0 → progressbar2-4.7.1}/tests/test_algorithms.py +0 -0
  414. {progressbar2-4.6.0 → progressbar2-4.7.1}/tests/test_api_surface.py +0 -0
  415. {progressbar2-4.6.0 → progressbar2-4.7.1}/tests/test_backwards_compatibility.py +0 -0
  416. {progressbar2-4.6.0 → progressbar2-4.7.1}/tests/test_custom_widgets.py +0 -0
  417. {progressbar2-4.6.0 → progressbar2-4.7.1}/tests/test_data.py +0 -0
  418. {progressbar2-4.6.0 → progressbar2-4.7.1}/tests/test_dill_pickle.py +0 -0
  419. {progressbar2-4.6.0 → progressbar2-4.7.1}/tests/test_docs_examples.py +0 -0
  420. {progressbar2-4.6.0 → progressbar2-4.7.1}/tests/test_empty.py +0 -0
  421. {progressbar2-4.6.0 → progressbar2-4.7.1}/tests/test_end.py +0 -0
  422. {progressbar2-4.6.0 → progressbar2-4.7.1}/tests/test_failure.py +0 -0
  423. {progressbar2-4.6.0 → progressbar2-4.7.1}/tests/test_fastpath.py +0 -0
  424. {progressbar2-4.6.0 → progressbar2-4.7.1}/tests/test_flush.py +0 -0
  425. {progressbar2-4.6.0 → progressbar2-4.7.1}/tests/test_iterators.py +0 -0
  426. {progressbar2-4.6.0 → progressbar2-4.7.1}/tests/test_job_status.py +0 -0
  427. {progressbar2-4.6.0 → progressbar2-4.7.1}/tests/test_large_values.py +0 -0
  428. {progressbar2-4.6.0 → progressbar2-4.7.1}/tests/test_misc.py +0 -0
  429. {progressbar2-4.6.0 → progressbar2-4.7.1}/tests/test_monitor_progress.py +0 -0
  430. {progressbar2-4.6.0 → progressbar2-4.7.1}/tests/test_native_accelerator.py +0 -0
  431. {progressbar2-4.6.0 → progressbar2-4.7.1}/tests/test_needs_update.py +0 -0
  432. {progressbar2-4.6.0 → progressbar2-4.7.1}/tests/test_os_specific.py +0 -0
  433. {progressbar2-4.6.0 → progressbar2-4.7.1}/tests/test_os_specific_posix.py +0 -0
  434. {progressbar2-4.6.0 → progressbar2-4.7.1}/tests/test_samples.py +0 -0
  435. {progressbar2-4.6.0 → progressbar2-4.7.1}/tests/test_speed.py +0 -0
  436. {progressbar2-4.6.0 → progressbar2-4.7.1}/tests/test_stream.py +0 -0
  437. {progressbar2-4.6.0 → progressbar2-4.7.1}/tests/test_subclass_compat.py +0 -0
  438. {progressbar2-4.6.0 → progressbar2-4.7.1}/tests/test_terminal.py +0 -0
  439. {progressbar2-4.6.0 → progressbar2-4.7.1}/tests/test_timed.py +0 -0
  440. {progressbar2-4.6.0 → progressbar2-4.7.1}/tests/test_timer.py +0 -0
  441. {progressbar2-4.6.0 → progressbar2-4.7.1}/tests/test_unicode.py +0 -0
  442. {progressbar2-4.6.0 → progressbar2-4.7.1}/tests/test_unknown_length.py +0 -0
  443. {progressbar2-4.6.0 → progressbar2-4.7.1}/tests/test_update_guard.py +0 -0
  444. {progressbar2-4.6.0 → progressbar2-4.7.1}/tests/test_utils.py +0 -0
  445. {progressbar2-4.6.0 → progressbar2-4.7.1}/tests/test_windows.py +0 -0
  446. {progressbar2-4.6.0 → progressbar2-4.7.1}/tests/test_with.py +0 -0
  447. {progressbar2-4.6.0 → progressbar2-4.7.1}/tests/test_wrappingio.py +0 -0
  448. {progressbar2-4.6.0 → progressbar2-4.7.1}/tools/README.md +0 -0
  449. {progressbar2-4.6.0 → progressbar2-4.7.1}/tools/generate_colors.py +0 -0
@@ -0,0 +1,4 @@
1
+ github: wolph
2
+ ko_fi: wolph_gh
3
+ thanks_dev: u/gh/wolph
4
+ tidelift: pypi/progressbar2
@@ -0,0 +1,29 @@
1
+ version: 2
2
+ updates:
3
+ - package-ecosystem: github-actions
4
+ directory: /
5
+ target-branch: develop
6
+ labels:
7
+ - "meta: CI"
8
+ schedule:
9
+ interval: monthly
10
+ cooldown:
11
+ default-days: 14
12
+ groups:
13
+ actions:
14
+ patterns:
15
+ - "*"
16
+
17
+ - package-ecosystem: pip
18
+ directory: /
19
+ target-branch: develop
20
+ labels:
21
+ - "meta: deps"
22
+ schedule:
23
+ interval: monthly
24
+ cooldown:
25
+ default-days: 14
26
+ groups:
27
+ python:
28
+ patterns:
29
+ - "*"
@@ -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
 
@@ -24,7 +24,7 @@ jobs:
24
24
 
25
25
  steps:
26
26
  - name: Checkout
27
- uses: actions/checkout@v6
27
+ uses: actions/checkout@v7
28
28
 
29
29
  - name: Initialize CodeQL
30
30
  uses: github/codeql-action/init@v3
@@ -2,7 +2,7 @@ name: docs console
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
 
@@ -22,9 +22,9 @@ jobs:
22
22
  # minutes leaves headroom without letting a genuine hang run forever.
23
23
  timeout-minutes: 20
24
24
  steps:
25
- - uses: actions/checkout@v6
25
+ - uses: actions/checkout@v7
26
26
  - name: Set up Python 3.13
27
- uses: actions/setup-python@v6
27
+ uses: actions/setup-python@v7
28
28
  with:
29
29
  python-version: '3.13'
30
30
  - name: Install dependencies
@@ -38,7 +38,7 @@ jobs:
38
38
  run: python -m pytest tests/console -v --no-cov
39
39
  - name: Upload the built docs
40
40
  if: always()
41
- uses: actions/upload-artifact@v4
41
+ uses: actions/upload-artifact@v7
42
42
  with:
43
43
  name: docs-html
44
44
  path: docs/_build/html
@@ -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
 
@@ -19,9 +19,9 @@ jobs:
19
19
  runs-on: ubuntu-latest
20
20
  timeout-minutes: 10
21
21
  steps:
22
- - uses: actions/checkout@v6
22
+ - uses: actions/checkout@v7
23
23
  - name: Set up Python 3.13
24
- uses: actions/setup-python@v6
24
+ uses: actions/setup-python@v7
25
25
  with:
26
26
  python-version: '3.13'
27
27
  - name: Install dependencies
@@ -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,27 +72,45 @@ 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'
72
80
  tox-env: codespell
73
81
 
74
82
  steps:
75
- - uses: actions/checkout@v6
83
+ - uses: actions/checkout@v7
76
84
  - name: Set up Python ${{ matrix.python-version }}
77
- uses: actions/setup-python@v6
85
+ uses: actions/setup-python@v7
78
86
  with:
79
87
  python-version: ${{ matrix.python-version }}
80
88
  allow-prereleases: true
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)
@@ -98,9 +122,9 @@ jobs:
98
122
  # pytest's fd-level capture.
99
123
  PYTHONUTF8: '1'
100
124
  steps:
101
- - uses: actions/checkout@v6
125
+ - uses: actions/checkout@v7
102
126
  - name: Set up Python 3.12
103
- uses: actions/setup-python@v6
127
+ uses: actions/setup-python@v7
104
128
  with:
105
129
  python-version: '3.12'
106
130
  - name: Install dependencies
@@ -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@v7
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@v7
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@v8
105
+ with:
106
+ name: dist
107
+ path: dist/
108
+ - name: Publish via Trusted Publishing
109
+ uses: pypa/gh-action-pypi-publish@7245906fb61fa33a13554f9d5fb856fe61758086 # v1.14.3
@@ -0,0 +1,217 @@
1
+ # Signs the PyPI files of a GitHub release with Sigstore, using the identity
2
+ # of this workflow run. Copy this file unchanged to .github/workflows/sign.yml.
3
+ # `ppt sign` dispatches it and finds the run by its run-name.
4
+ name: Sign release
5
+
6
+ run-name: Sign ${{ inputs.tag }} ${{ inputs.request_id }}
7
+
8
+ on:
9
+ workflow_dispatch:
10
+ inputs:
11
+ tag:
12
+ description: Release tag to sign, for example v1.2.3
13
+ required: true
14
+ type: string
15
+ package:
16
+ description: Name of the package on PyPI
17
+ required: true
18
+ type: string
19
+ version:
20
+ description: Version on PyPI, when it differs from the tag without its leading v
21
+ required: false
22
+ default: ''
23
+ type: string
24
+ request_id:
25
+ description: Only used by ppt to find this run
26
+ required: false
27
+ default: ''
28
+ type: string
29
+
30
+ permissions: {}
31
+
32
+ concurrency:
33
+ group: sign-${{ inputs.tag }}
34
+ cancel-in-progress: false
35
+
36
+ jobs:
37
+ sign:
38
+ name: Sign the PyPI files of the release
39
+ runs-on: ubuntu-latest
40
+ timeout-minutes: 30
41
+ permissions:
42
+ contents: write # upload the bundles and missing files to the release
43
+ id-token: write # the OIDC token Sigstore signs with
44
+ env:
45
+ GH_REPO: ${{ github.repository }}
46
+ TAG: ${{ inputs.tag }}
47
+ PACKAGE: ${{ inputs.package }}
48
+ PYPI_VERSION: ${{ inputs.version }}
49
+ steps:
50
+ - name: Validate inputs
51
+ run: |
52
+ if ! [[ "$TAG" =~ ^v?[0-9][0-9A-Za-z._+!-]*$ ]]; then
53
+ echo "Invalid tag input" >&2
54
+ exit 1
55
+ fi
56
+ if ! [[ "$PACKAGE" =~ ^[A-Za-z0-9][A-Za-z0-9._-]*$ ]]; then
57
+ echo "Invalid package input" >&2
58
+ exit 1
59
+ fi
60
+ if [ -n "$PYPI_VERSION" ] && ! [[ "$PYPI_VERSION" =~ ^v?[0-9][0-9A-Za-z._+!-]*$ ]]; then
61
+ echo "Invalid version input" >&2
62
+ exit 1
63
+ fi
64
+
65
+ - name: Read the release
66
+ env:
67
+ GH_TOKEN: ${{ github.token }}
68
+ run: gh release view "$TAG" --json assets > assets.json
69
+
70
+ - name: Download the files already on the release
71
+ env:
72
+ GH_TOKEN: ${{ github.token }}
73
+ run: |
74
+ mkdir existing
75
+ count="$(python3 -I -c '
76
+ import json
77
+ import sys
78
+ with open(sys.argv[1], encoding="utf-8") as handle:
79
+ names = [a["name"] for a in json.load(handle)["assets"]]
80
+ suffixes = (".whl", ".tar.gz", ".zip")
81
+ print(sum(1 for name in names if name.endswith(suffixes)))
82
+ ' assets.json)"
83
+ if [ "$count" -eq 0 ]; then
84
+ echo "No distribution files on the release yet"
85
+ else
86
+ gh release download "$TAG" -D existing -p '*.whl' -p '*.tar.gz' -p '*.zip'
87
+ fi
88
+
89
+ - name: Plan
90
+ id: plan
91
+ env:
92
+ EXISTING_DIR: existing
93
+ DIST_DIR: dist
94
+ ASSETS_JSON: assets.json
95
+ run: |
96
+ python3 -I - <<'PYEOF'
97
+ # ppt-plan-begin
98
+ import hashlib
99
+ import json
100
+ import os
101
+ import re
102
+ import sys
103
+ import urllib.request
104
+ from pathlib import Path
105
+ from typing import NoReturn
106
+
107
+ TAG: str = os.environ['TAG']
108
+ PACKAGE: str = os.environ['PACKAGE']
109
+ # The version input when ppt passes one, else the tag without its v.
110
+ VERSION: str = os.environ.get('PYPI_VERSION') or (
111
+ TAG[1:] if TAG.startswith('v') else TAG
112
+ )
113
+ URL_TEMPLATE: str = os.environ.get(
114
+ 'PYPI_JSON_URL', 'https://pypi.org/pypi/{package}/{version}/json'
115
+ )
116
+ # Only files PyPI serves itself are fetched. Tests point it at file://.
117
+ FILES_PREFIX: str = os.environ.get(
118
+ 'PYPI_FILES_PREFIX', 'https://files.pythonhosted.org/'
119
+ )
120
+ EXISTING_DIR: Path = Path(os.environ['EXISTING_DIR'])
121
+ DIST_DIR: Path = Path(os.environ['DIST_DIR'])
122
+
123
+
124
+ def fail(message: str) -> NoReturn:
125
+ print(message, file=sys.stderr)
126
+ raise SystemExit(1)
127
+
128
+
129
+ def sha256_of(data: bytes) -> str:
130
+ return hashlib.sha256(data).hexdigest()
131
+
132
+
133
+ def fetch(url: str) -> bytes:
134
+ with urllib.request.urlopen(url, timeout=120) as response:
135
+ data: bytes = response.read()
136
+ return data
137
+
138
+
139
+ def main() -> None:
140
+ json_url: str = URL_TEMPLATE.format(package=PACKAGE, version=VERSION)
141
+ info: dict = json.loads(fetch(json_url))
142
+ files: list[dict] = info.get('urls') or []
143
+ if not files:
144
+ fail(f'PyPI lists no files for {PACKAGE} {VERSION}')
145
+ with open(os.environ['ASSETS_JSON'], encoding='utf-8') as handle:
146
+ assets: set[str] = {a['name'] for a in json.load(handle)['assets']}
147
+ DIST_DIR.mkdir(parents=True, exist_ok=True)
148
+ to_sign: list[str] = []
149
+ to_upload: list[str] = []
150
+ for entry in files:
151
+ name: str = entry['filename']
152
+ if not re.fullmatch(r'[A-Za-z0-9][A-Za-z0-9._+!-]*', name):
153
+ fail(f'Refusing unsafe file name {name!r}')
154
+ expected: str = entry['digests']['sha256']
155
+ url: str = entry['url']
156
+ if not url.startswith(FILES_PREFIX):
157
+ fail(f'Refusing {name}: its URL does not start with {FILES_PREFIX}')
158
+ data: bytes = fetch(url)
159
+ if sha256_of(data) != expected:
160
+ fail(f'Downloaded {name} does not match the PyPI sha256')
161
+ (DIST_DIR / name).write_bytes(data)
162
+ if name in assets:
163
+ existing: Path = EXISTING_DIR / name
164
+ if not existing.is_file():
165
+ fail(f'Release asset {name} could not be downloaded')
166
+ if sha256_of(existing.read_bytes()) != expected:
167
+ fail(f'Release asset {name} differs from the PyPI file')
168
+ else:
169
+ to_upload.append(name)
170
+ if f'{name}.sigstore.json' not in assets:
171
+ to_sign.append(name)
172
+ with open(os.environ['GITHUB_OUTPUT'], 'a', encoding='utf-8') as out:
173
+ out.write(f'to_sign={" ".join(to_sign)}\n')
174
+ out.write(f'to_upload={" ".join(to_upload)}\n')
175
+
176
+
177
+ main()
178
+ # ppt-plan-end
179
+ PYEOF
180
+
181
+ - name: List files to sign
182
+ id: paths
183
+ env:
184
+ TO_SIGN: ${{ steps.plan.outputs.to_sign }}
185
+ run: |
186
+ paths=""
187
+ for name in $TO_SIGN; do
188
+ paths="$paths dist/$name"
189
+ done
190
+ echo "sign_inputs=${paths# }" >> "$GITHUB_OUTPUT"
191
+
192
+ - name: Sign with Sigstore
193
+ if: steps.plan.outputs.to_sign != ''
194
+ uses: sigstore/gh-action-sigstore-python@790bc6befb9d733738f18d8f895854b453640ec9 # v3.5.0
195
+ with:
196
+ inputs: ${{ steps.paths.outputs.sign_inputs }}
197
+ upload-signing-artifacts: false
198
+ release-signing-artifacts: false
199
+
200
+ - name: Upload to the release
201
+ env:
202
+ GH_TOKEN: ${{ github.token }}
203
+ TO_SIGN: ${{ steps.plan.outputs.to_sign }}
204
+ TO_UPLOAD: ${{ steps.plan.outputs.to_upload }}
205
+ run: |
206
+ files=()
207
+ for name in $TO_UPLOAD; do
208
+ files+=("dist/$name")
209
+ done
210
+ for name in $TO_SIGN; do
211
+ files+=("dist/$name.sigstore.json")
212
+ done
213
+ if [ "${#files[@]}" -eq 0 ]; then
214
+ echo "Nothing to upload"
215
+ exit 0
216
+ fi
217
+ gh release upload "$TAG" "${files[@]}"
@@ -12,7 +12,7 @@ jobs:
12
12
  issues: write
13
13
  pull-requests: write
14
14
  steps:
15
- - uses: actions/stale@v8
15
+ - uses: actions/stale@v11
16
16
  with:
17
17
  days-before-issue-stale: 30
18
18
  exempt-issue-labels: in-progress,help-wanted,pinned,security,enhancement
@@ -48,3 +48,11 @@ docs/_build/
48
48
 
49
49
  # Built at docs build time for the in-browser console
50
50
  docs/_static/wheels/
51
+
52
+ # Local secrets and environments
53
+ .env
54
+ .env.*
55
+ .venv/
56
+ *.pem
57
+ *.key
58
+ .pypirc
@@ -5,6 +5,8 @@ repos:
5
5
  rev: v6.0.0
6
6
  hooks:
7
7
  - id: end-of-file-fixer
8
+ # Preserve the upstream bytes copied by the vendor update command.
9
+ exclude: '^docs/_static/vendor/xterm\.js$'
8
10
  - id: trailing-whitespace
9
11
  - id: check-yaml
10
12
  - id: check-added-large-files