mirror of
https://github.com/enpaul/tox-poetry-installer.git
synced 2024-12-05 01:40:44 +00:00
hooks: remove obsolete install_project_deps ternary
This commit is contained in:
parent
6991f29b4d
commit
fe95ff5ca1
@ -140,19 +140,13 @@ def tox_on_install(
|
|||||||
f"Identified {len(env_deps)} environment dependencies to install to env"
|
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
|
# extras are not set in a testenv if skip_install=true
|
||||||
try:
|
try:
|
||||||
extras = tox_env.conf["extras"]
|
extras = tox_env.conf["extras"]
|
||||||
except KeyError:
|
except KeyError:
|
||||||
extras = []
|
extras = []
|
||||||
|
|
||||||
if install_project_deps:
|
if tox_env.conf["install_project_deps"]:
|
||||||
project_deps = utilities.find_project_deps(
|
project_deps = utilities.find_project_deps(
|
||||||
packages, virtualenv, poetry, extras
|
packages, virtualenv, poetry, extras
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user