mirror of
https://github.com/enpaul/tox-poetry-installer.git
synced 2024-12-05 01:40:44 +00:00
Compare commits
3 Commits
2b8936267e
...
9efcea762e
Author | SHA1 | Date | |
---|---|---|---|
|
9efcea762e | ||
|
fe95ff5ca1 | ||
|
6991f29b4d |
@ -93,8 +93,9 @@ def tox_on_install(
|
||||
try:
|
||||
poetry = utilities.check_preconditions(tox_env)
|
||||
except exceptions.SkipEnvironment as err:
|
||||
if isinstance(err, exceptions.PoetryNotInstalledError) and (
|
||||
tox_env.core["require_poetry"] or tox_env.conf["require_poetry"]
|
||||
if (
|
||||
isinstance(err, exceptions.PoetryNotInstalledError)
|
||||
and tox_env.conf["require_poetry"]
|
||||
):
|
||||
logger.error(str(err))
|
||||
raise err
|
||||
@ -140,19 +141,13 @@ def tox_on_install(
|
||||
f"Identified {len(env_deps)} environment dependencies to install to env"
|
||||
)
|
||||
|
||||
install_project_deps = (
|
||||
tox_env.conf["install_project_deps"]
|
||||
if tox_env.conf["install_project_deps"] is not None
|
||||
else (not tox_env.conf["skip_install"] and not tox_env.core["no_package"])
|
||||
)
|
||||
|
||||
# extras are not set in a testenv if skip_install=true
|
||||
try:
|
||||
extras = tox_env.conf["extras"]
|
||||
except KeyError:
|
||||
extras = []
|
||||
|
||||
if install_project_deps:
|
||||
if tox_env.conf["install_project_deps"]:
|
||||
project_deps = utilities.find_project_deps(
|
||||
packages, virtualenv, poetry, extras
|
||||
)
|
||||
@ -166,7 +161,6 @@ def tox_on_install(
|
||||
logger.error(str(err))
|
||||
raise err
|
||||
except Exception as err:
|
||||
# tox_env.status = "InternalError"
|
||||
logger.error(f"Internal plugin error: {err}")
|
||||
raise err
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user