diff --git a/README.md b/README.md index 7b54161..b71c1dc 100644 --- a/README.md +++ b/README.md @@ -38,7 +38,7 @@ To check whether the installation succeeded, run the following command and verif ```bash $ scfw --version -1.0.1 +1.0.2 ``` ### Post-installation steps diff --git a/scfw/__init__.py b/scfw/__init__.py index be32291..c5dcf9a 100644 --- a/scfw/__init__.py +++ b/scfw/__init__.py @@ -2,4 +2,4 @@ A supply-chain "firewall" for preventing the installation of vulnerable or malicious `pip` and `npm` packages. """ -__version__ = "1.0.1" +__version__ = "1.0.2" diff --git a/scfw/configure.py b/scfw/configure.py index abcc967..de86e9d 100644 --- a/scfw/configure.py +++ b/scfw/configure.py @@ -51,7 +51,8 @@ def run_configure(args: Namespace) -> int: answers = inquirer.prompt(_get_questions()) for file in [Path.home() / file for file in _CONFIG_FILES]: - _update_config_file(file, _format_answers(answers)) + if file.exists(): + _update_config_file(file, _format_answers(answers)) print(_EPILOGUE) diff --git a/tests/commands/test_pip_command.py b/tests/commands/test_pip_command.py index 4e94b87..ff15a76 100644 --- a/tests/commands/test_pip_command.py +++ b/tests/commands/test_pip_command.py @@ -51,7 +51,7 @@ def test_pip_command_would_install_exact(): ("docutils", "0.15.2"), ("jmespath", "0.10.0"), ("python-dateutil", "2.9.0.post0"), - ("six", "1.16.0"), + ("six", "1.17.0"), ("urllib3", "1.25.11") ] )