From 6180f188fb86fc4fc3a18cff7ea8b798cf7813d0 Mon Sep 17 00:00:00 2001 From: Casper da Costa-Luis Date: Mon, 24 May 2021 13:09:57 +0100 Subject: [PATCH 1/4] build: bot comment --- .github/workflows/comment-bot.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/comment-bot.yml b/.github/workflows/comment-bot.yml index 4451632e7..b44ee7ba7 100644 --- a/.github/workflows/comment-bot.yml +++ b/.github/workflows/comment-bot.yml @@ -29,6 +29,7 @@ jobs: post({ owner: context.repo.owner, repo: context.repo.repo, comment_id: context.payload.comment.id, content: "eyes"}) + github-token: ${{ secrets.GH_TOKEN }} - name: Tag Commit run: | git clone https://${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY} repo @@ -48,3 +49,4 @@ jobs: post({ owner: context.repo.owner, repo: context.repo.repo, comment_id: context.payload.comment.id, content: "rocket"}) + github-token: ${{ secrets.GH_TOKEN }} From 963137c123c6d5e191e937a19c71d7216146150a Mon Sep 17 00:00:00 2001 From: Jannis Leidel Date: Mon, 31 May 2021 22:06:25 +0200 Subject: [PATCH 2/4] Gracefully handle empty COLUMNS/LINES env vars on Linux. --- tqdm/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tqdm/utils.py b/tqdm/utils.py index aae87e454..646659909 100644 --- a/tqdm/utils.py +++ b/tqdm/utils.py @@ -285,7 +285,7 @@ def _screen_shape_linux(fp): # pragma: no cover except Exception: try: return [int(os.environ[i]) - 1 for i in ("COLUMNS", "LINES")] - except KeyError: + except (KeyError, ValueError): return None, None From f27f2901e377c81efa23cc0a1f97e40fe4a52dbd Mon Sep 17 00:00:00 2001 From: Casper da Costa-Luis Date: Sat, 5 Jun 2021 21:09:24 +0100 Subject: [PATCH 3/4] add merch links --- .meta/.readme.rst | 9 ++++++++- README.rst | 9 ++++++++- 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/.meta/.readme.rst b/.meta/.readme.rst index 7d91f4e24..47156937c 100644 --- a/.meta/.readme.rst +++ b/.meta/.readme.rst @@ -27,7 +27,7 @@ iterable with ``tqdm(iterable)``, and you're done! ``tqdm(range(N))``. |Screenshot| - |Video| |Slides| + |Video| |Slides| |Merch| It can also be executed as a module with pipes: @@ -1162,6 +1162,11 @@ The monitor thread may be disabled application-wide by setting ``tqdm.tqdm.monitor_interval = 0`` before instantiation of any ``tqdm`` bar. +Merch +----- + +You can buy `tqdm branded merch `__ now! + Contributions ------------- @@ -1220,6 +1225,8 @@ Citation information: |DOI| :target: https://tqdm.github.io/video .. |Slides| image:: https://img.tqdm.ml/slides.jpg :target: https://tqdm.github.io/PyData2019/slides.html +.. |Merch| image:: https://img.tqdm.ml/merch.jpg + :target: https://tqdm.github.io/merch .. |Build-Status| image:: https://img.shields.io/github/workflow/status/tqdm/tqdm/Test/master?logo=GitHub :target: https://github.com/tqdm/tqdm/actions?query=workflow%3ATest .. |Coverage-Status| image:: https://img.shields.io/coveralls/github/tqdm/tqdm/master?logo=coveralls diff --git a/README.rst b/README.rst index 6909cdd02..ae68ccffd 100644 --- a/README.rst +++ b/README.rst @@ -27,7 +27,7 @@ iterable with ``tqdm(iterable)``, and you're done! ``tqdm(range(N))``. |Screenshot| - |Video| |Slides| + |Video| |Slides| |Merch| It can also be executed as a module with pipes: @@ -1381,6 +1381,11 @@ The monitor thread may be disabled application-wide by setting ``tqdm.tqdm.monitor_interval = 0`` before instantiation of any ``tqdm`` bar. +Merch +----- + +You can buy `tqdm branded merch `__ now! + Contributions ------------- @@ -1439,6 +1444,8 @@ Citation information: |DOI| :target: https://tqdm.github.io/video .. |Slides| image:: https://img.tqdm.ml/slides.jpg :target: https://tqdm.github.io/PyData2019/slides.html +.. |Merch| image:: https://img.tqdm.ml/merch.jpg + :target: https://tqdm.github.io/merch .. |Build-Status| image:: https://img.shields.io/github/workflow/status/tqdm/tqdm/Test/master?logo=GitHub :target: https://github.com/tqdm/tqdm/actions?query=workflow%3ATest .. |Coverage-Status| image:: https://img.shields.io/coveralls/github/tqdm/tqdm/master?logo=coveralls From b7fb6aa2740797a613090ebdf5ea94bc4090f1b7 Mon Sep 17 00:00:00 2001 From: Ofek Lev Date: Sat, 12 Jun 2021 10:33:10 -0400 Subject: [PATCH 4/4] Fix typo (#1178) --- .meta/.readme.rst | 2 +- README.rst | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.meta/.readme.rst b/.meta/.readme.rst index 47156937c..dbcfd8bb8 100644 --- a/.meta/.readme.rst +++ b/.meta/.readme.rst @@ -1132,7 +1132,7 @@ Helper methods are available in ``tqdm.contrib.logging``. For example: Monitoring thread, intervals and miniters ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -``tqdm`` implements a few tricks to to increase efficiency and reduce overhead. +``tqdm`` implements a few tricks to increase efficiency and reduce overhead. - Avoid unnecessary frequent bar refreshing: ``mininterval`` defines how long to wait between each refresh. ``tqdm`` always gets updated in the background, diff --git a/README.rst b/README.rst index ae68ccffd..9534ef7b4 100644 --- a/README.rst +++ b/README.rst @@ -1351,7 +1351,7 @@ Helper methods are available in ``tqdm.contrib.logging``. For example: Monitoring thread, intervals and miniters ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -``tqdm`` implements a few tricks to to increase efficiency and reduce overhead. +``tqdm`` implements a few tricks to increase efficiency and reduce overhead. - Avoid unnecessary frequent bar refreshing: ``mininterval`` defines how long to wait between each refresh. ``tqdm`` always gets updated in the background,