From 60ac3ed02537628bb9264d18e16080e4a9ee5b54 Mon Sep 17 00:00:00 2001 From: Oliver Schwengers Date: Mon, 7 Feb 2022 11:43:22 +0100 Subject: [PATCH] revert prior fix and pin alive-progress to v1.6.2 --- bakta/db.py | 2 +- environment.yml | 2 +- setup.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/bakta/db.py b/bakta/db.py index 519724fc..b7aab8bf 100644 --- a/bakta/db.py +++ b/bakta/db.py @@ -123,7 +123,7 @@ def download(db_url, tarball_path): with alive_bar(total=total_length) as bar: for data in resp.iter_content(chunk_size=1024*1024): fh_out.write(data) - bar(len(data)/1024) + bar(incr=len(data)/1024) except IOError: sys.exit(f'ERROR: Could not download file from Zenodo! url={db_url}, path={tarball_path}') diff --git a/environment.yml b/environment.yml index 9f2c522f..5541f80a 100644 --- a/environment.yml +++ b/environment.yml @@ -7,7 +7,7 @@ dependencies: - biopython>=1.78 - xopen>=1.1.0 - requests>=2.25.1 - - alive-progress>=2.1.0 + - alive-progress==1.6.2 - trnascan-se>=2.0.6 - aragorn>=1.2.38 - infernal>=1.1.4 diff --git a/setup.py b/setup.py index a46db34d..5353fca4 100644 --- a/setup.py +++ b/setup.py @@ -29,7 +29,7 @@ 'biopython >= 1.78', 'xopen >= 1.1.0', 'requests >= 2.25.1', - 'alive-progress >= 2.1.0' + 'alive-progress == 1.6.2' ], entry_points={ 'console_scripts': [