Skip to content

Commit

Permalink
Bump version: 0.1.4 → 0.1.5
Browse files Browse the repository at this point in the history
- Loguru v0.5.3 → v0.6.0: Patches a security vulnerability as referenced
                        in https://nvd.nist.gov/vuln/detail/CVE-2022-0329
  • Loading branch information
arzkar committed Jan 29, 2022
1 parent 85d8341 commit efe8490
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion .bumpversion.cfg
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[bumpversion]
current_version = 0.1.4
current_version = 0.1.5
commit = True
tag = False
parse = ^
Expand Down
2 changes: 1 addition & 1 deletion ao3_cli/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ def run_cli(infile: str, url: str, list_url: str, _format: str, get_urls: str,
fic.exit_status = show_urls_from_page(fic)

if version:
click.echo("Version: 0.1.4")
click.echo("Version: 0.1.5")
sys.exit(0)

sys.exit(fic.exit_status)
10 changes: 5 additions & 5 deletions ao3_cli/utils/processing.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,24 +59,24 @@ def save_data(fic, out_dir: str, file_name: str, download_url: str,
debug: bool, force: bool, exit_status: int) -> int:

file_name = sanitize_filename(file_name)
ebook_file = out_dir+file_name
ebook_file = os.path.join(out_dir, file_name)

if os.path.exists(out_dir+file_name) and force is False:
if os.path.exists(ebook_file) and force is False:

exit_status = 1
if debug:
logger.error(
f"{out_dir+file_name} already exists. Skipping download. Use --force flag to overwrite.")
f"{ebook_file} already exists. Skipping download. Use --force flag to overwrite.")

else:
tqdm.write(
Fore.RED +
f"{out_dir+file_name} already exists. Skipping download. Use --force flag to overwrite.")
f"{ebook_file} already exists. Skipping download. Use --force flag to overwrite.")

else:
if force and debug:
logger.warning(
f"--force flag was passed. Overwriting {out_dir+file_name}")
f"--force flag was passed. Overwriting {ebook_file}")

fic.get_fic_data(download_url)

Expand Down
2 changes: 1 addition & 1 deletion requirements_dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ importlib-metadata==4.0.1
iniconfig==1.1.1
jeepney==0.6.0
keyring==23.0.1
loguru==0.5.3
loguru==0.6.0
mccabe==0.6.1
packaging==20.9
pip-autoremove==0.9.1
Expand Down
2 changes: 1 addition & 1 deletion requirements_prod.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ click==7.1.2
rich==10.3.0
colorama==0.4.4
idna==2.10
loguru==0.5.3
loguru==0.6.0
requests==2.25.1
soupsieve==2.2.1
tqdm==4.60.0
Expand Down
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
description="A CLI to download from archiveofourown.org",
long_description=long_description,
long_description_content_type="text/markdown",
version='0.1.4',
version='0.1.5',
license='MIT',
url="https://github.com/arzkar/ao3-cli/",
packages=find_packages(include=['ao3_cli', 'ao3_cli.*']),
Expand All @@ -19,7 +19,7 @@
'click>=7.1.2',
'rich>=10.3.0',
'requests>=2.25.1',
'loguru>=0.5.3',
'loguru>=0.6.0',
'tqdm>=4.60.0',
'BeautifulSoup4>=4.9.3',
'colorama>=0.4.4'
Expand Down
2 changes: 1 addition & 1 deletion tests/test_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,4 +48,4 @@ def test_cli_version():

assert not result.exception
assert result.exit_code == 0
assert result.output.strip() == 'Version: 0.1.4'
assert result.output.strip() == 'Version: 0.1.5'

0 comments on commit efe8490

Please sign in to comment.