From c9f1f41163586463d740814ceee46df9183efce4 Mon Sep 17 00:00:00 2001 From: Ethan Paul <24588726+enpaul@users.noreply.github.com> Date: Sun, 27 Sep 2020 15:15:23 -0400 Subject: [PATCH] Fix installing package deps when skipdist is true --- tox_poetry_installer.py | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/tox_poetry_installer.py b/tox_poetry_installer.py index 85eb456..36c6829 100644 --- a/tox_poetry_installer.py +++ b/tox_poetry_installer.py @@ -276,9 +276,14 @@ def tox_testenv_install_deps(venv: ToxVirtualEnv, action: ToxAction): # Handle the installation of the package dependencies from the lockfile if the package is # being installed to this venv; otherwise skip installing the package dependencies - if not venv.envconfig.skip_install: + if not venv.envconfig.skip_install and not venv.envconfig.config.skipsdist: _install_package_dependencies(venv, poetry) else: - reporter.verbosity1( - f"{_REPORTER_PREFIX} env specifies 'skip_install = true', skipping installation of project package" - ) + if venv.envconfig.skip_install: + reporter.verbosity1( + f"{_REPORTER_PREFIX} env specifies 'skip_install = true', skipping installation of project package" + ) + elif venv.envconfig.config.skipsdist: + reporter.verbosity1( + f"{_REPORTER_PREFIX} config specifies 'skipsdist = true', skipping installation of project package" + )