Skip to content

Commit 0ed778e

Browse files
committed
bump version, merge pull request #1130 from tqdm/devel
2 parents b9507b3 + 47e303c commit 0ed778e

File tree

14 files changed

+82
-41
lines changed

14 files changed

+82
-41
lines changed

.github/FUNDING.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
github: casperdcl
22
custom: https://caspersci.uk.to/donate
3+
tidelift: pypi/tqdm

.github/ISSUE_TEMPLATE/config.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
blank_issues_enabled: false
22
contact_links:
3-
- name: "FAQs and Known Issues"
3+
- name: FAQs and Known Issues
44
url: https://github.com/tqdm/tqdm/#faq-and-known-issues
5-
about: "Frequently asked questions and known issues"
5+
about: Frequently asked questions and known issues
66
- name: "StackOverflow#tqdm"
77
url: https://stackoverflow.com/questions/tagged/tqdm
88
about: "Stack Overflow questions tagged #tqdm"

.github/SECURITY.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# Security Policy
2+
3+
## Supported Versions
4+
5+
| Version | Supported |
6+
| ----------- | ------------------ |
7+
| >= 4.11.2 | :white_check_mark: |
8+
| < 4.11.2 | :x: |
9+
10+
## Security contact information
11+
12+
To report a security vulnerability, please use the
13+
[Tidelift security contact](https://tidelift.com/security).
14+
Tidelift will coordinate the fix and disclosure.

CONTRIBUTING.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -131,13 +131,12 @@ sanity-checking.
131131

132132
The tqdm repository managers should:
133133

134-
- follow the [Semantic Versioning](https://semver.org/) convention
134+
- follow the [Semantic Versioning](https://semver.org) convention
135135
- take care of this (instead of users) to avoid PR conflicts
136136
solely due to the version file bumping
137137

138138
Note: tools can be used to automate this process, such as
139-
[bumpversion](https://github.com/peritus/bumpversion) or
140-
[python-semanticversion](https://github.com/rbarrois/python-semanticversion/).
139+
[python-semanticversion](https://github.com/rbarrois/python-semanticversion).
141140

142141

143142
## Checking setup.py

README.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -462,6 +462,8 @@ Parameters
462462
The fallback is 20.
463463
* colour : str, optional
464464
Bar colour (e.g. 'green', '#00ff00').
465+
* delay : float, optional
466+
Don't display until [default: 0] seconds have elapsed.
465467

466468
Extra CLI Options
467469
~~~~~~~~~~~~~~~~~

benchmarks/benchmarks.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ def __init__(self, length):
2222
def run(self, cls):
2323
pbar = cls(self.iterable)
2424
t0 = self.time()
25-
[0 for _ in pbar]
25+
[0 for _ in pbar] # pylint: disable=pointless-statement
2626
t1 = self.time()
2727
return t1 - t0
2828

examples/7zx.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,11 +77,11 @@ def main():
7777
unit="B", unit_scale=True) as tall:
7878
for fn, fcomp in zips.items():
7979
md, sd = pty.openpty()
80-
ex = subprocess.Popen(
80+
ex = subprocess.Popen( # nosec
8181
cmd7zx + [fn],
8282
bufsize=1,
8383
stdout=md, # subprocess.PIPE,
84-
stderr=subprocess.STDOUT) # nosec
84+
stderr=subprocess.STDOUT)
8585
os.close(sd)
8686
with io.open(md, mode="rU", buffering=1) as m:
8787
with tqdm(total=sum(fcomp.values()), disable=len(zips) < 2,

examples/include_no_requirements.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,5 @@ def tqdm(*args, **kwargs):
77
if args:
88
return args[0]
99
return kwargs.get('iterable', None)
10+
11+
__all__ = ['tqdm']

tests/tests_main.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,9 @@ def test_pipes():
3636
"""Test command line pipes"""
3737
ls_out = subprocess.check_output(['ls']) # nosec
3838
ls = subprocess.Popen(['ls'], stdout=subprocess.PIPE) # nosec
39-
res = subprocess.Popen(
39+
res = subprocess.Popen( # nosec
4040
[sys.executable, '-c', 'from tqdm.cli import main; main()'],
41-
stdin=ls.stdout, stdout=subprocess.PIPE, stderr=subprocess.PIPE) # nosec
41+
stdin=ls.stdout, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
4242
out, err = res.communicate()
4343
assert ls.poll() == 0
4444

@@ -61,7 +61,7 @@ def test_main_import():
6161
sys.argv = ['', '--desc', 'Test CLI import',
6262
'--ascii', 'True', '--unit_scale', 'True']
6363
try:
64-
import tqdm.__main__ # NOQA
64+
import tqdm.__main__ # NOQA, pylint: disable=unused-variable
6565
finally:
6666
sys.stdin, sys.argv = _SYS
6767

tests/tests_tqdm.py

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -622,6 +622,21 @@ def test_max_interval():
622622
t2.close()
623623

624624

625+
def test_delay():
626+
"""Test delay"""
627+
timer = DiscreteTimer()
628+
with closing(StringIO()) as our_file:
629+
t = tqdm(total=2, file=our_file, leave=True, delay=3)
630+
cpu_timify(t, timer)
631+
timer.sleep(2)
632+
t.update(1)
633+
assert not our_file.getvalue()
634+
timer.sleep(2)
635+
t.update(1)
636+
assert our_file.getvalue()
637+
t.close()
638+
639+
625640
def test_min_iters():
626641
"""Test miniters"""
627642
with closing(StringIO()) as our_file:

0 commit comments

Comments
 (0)