From 3e2dc3609380a51706cb00783dd0e803fb2146b5 Mon Sep 17 00:00:00 2001 From: Arbaaz Laskar Date: Thu, 12 May 2022 01:06:25 +0530 Subject: [PATCH] =?UTF-8?q?Bump=20version:=200.7.0=20=E2=86=92=200.7.1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Changed the `FetchData` class parameters from positional argument to keyword arguments --- .bumpversion.cfg | 2 +- .gitignore | 7 ++++--- fichub_cli/__init__.py | 2 +- fichub_cli/cli.py | 14 ++++++++------ setup.py | 2 +- tests/test_cli.py | 2 +- 6 files changed, 16 insertions(+), 13 deletions(-) diff --git a/.bumpversion.cfg b/.bumpversion.cfg index 697cac9..460cc3a 100644 --- a/.bumpversion.cfg +++ b/.bumpversion.cfg @@ -1,5 +1,5 @@ [bumpversion] -current_version = 0.7.0 +current_version = 0.7.1 commit = True tag = False parse = ^ diff --git a/.gitignore b/.gitignore index adaf01b..0bb44e1 100644 --- a/.gitignore +++ b/.gitignore @@ -141,6 +141,7 @@ dmypy.json # Pyre type checker .pyre/ -# extras -urls.* -urls +# project-extras +*.txt +*.sqlite +*.json diff --git a/fichub_cli/__init__.py b/fichub_cli/__init__.py index 49e0fc1..a5f830a 100644 --- a/fichub_cli/__init__.py +++ b/fichub_cli/__init__.py @@ -1 +1 @@ -__version__ = "0.7.0" +__version__ = "0.7.1" diff --git a/fichub_cli/cli.py b/fichub_cli/cli.py index 80a24ef..bf7447b 100644 --- a/fichub_cli/cli.py +++ b/fichub_cli/cli.py @@ -124,18 +124,20 @@ def default( format_type = get_format_type(format) if infile: - fic = FetchData(format_type, out_dir, force, debug, changelog, - automated, verbose) + fic = FetchData(format_type=format_type, out_dir=out_dir, force=force, + debug=debug, changelog=changelog, + automated=automated, verbose=verbose) fic.get_fic_with_infile(infile) elif list_url: - fic = FetchData(format_type, out_dir, force, debug, changelog, - automated, verbose) + fic = FetchData(format_type=format_type, out_dir=out_dir, force=force, + debug=debug, changelog=changelog, + automated=automated, verbose=verbose) fic.get_fic_with_list(list_url) elif url: - fic = FetchData(format_type, out_dir, force, - debug, automated, verbose) + fic = FetchData(format_type=format_type, out_dir=out_dir, force=force, + debug=debug, automated=automated, verbose=verbose) fic.get_fic_with_url(url) if version: diff --git a/setup.py b/setup.py index 13d1982..92f58e0 100644 --- a/setup.py +++ b/setup.py @@ -10,7 +10,7 @@ description="A CLI for the fichub.net API", long_description=long_description, long_description_content_type="text/markdown", - version="0.7.0", + version="0.7.1", license='Apache License', url="https://github.com/FicHub/fichub-cli", packages=find_packages(include=['fichub_cli', 'fichub_cli.*']), diff --git a/tests/test_cli.py b/tests/test_cli.py index d916317..c6d293f 100644 --- a/tests/test_cli.py +++ b/tests/test_cli.py @@ -61,4 +61,4 @@ def test_cli_version(): assert not result.exception assert result.exit_code == 0 - assert result.output.strip() == 'fichub-cli: v0.7.0' + assert result.output.strip() == 'fichub-cli: v0.7.1'