mirror of
https://github.com/enpaul/tox-poetry-installer.git
synced 2025-01-15 08:43:29 +00:00
Fix support for non-single extra dependency installation
This commit is contained in:
parent
653622fd35
commit
e8d3f4fcac
@ -233,7 +233,7 @@ def _install_env_dependencies(
|
|||||||
raise err
|
raise err
|
||||||
|
|
||||||
reporter.verbosity1(
|
reporter.verbosity1(
|
||||||
f"{_REPORTER_PREFIX} identified {len(dependencies)} total dependencies from {len(venv.envconfig.deps)} env dependencies"
|
f"{_REPORTER_PREFIX} identified {len(dependencies)} total dependencies from {len(env_deps.locked_deps)} locked env dependencies"
|
||||||
)
|
)
|
||||||
|
|
||||||
reporter.verbosity1(
|
reporter.verbosity1(
|
||||||
@ -262,13 +262,16 @@ def _install_project_dependencies(
|
|||||||
f"{_REPORTER_PREFIX} performing installation of project dependencies"
|
f"{_REPORTER_PREFIX} performing installation of project dependencies"
|
||||||
)
|
)
|
||||||
|
|
||||||
base_dependencies = [
|
base_dependencies: List[PoetryPackage] = [
|
||||||
packages[item.name] for item in poetry.package.requires if not item.is_optional
|
packages[item.name]
|
||||||
|
for item in poetry.package.requires
|
||||||
|
if not item.is_optional()
|
||||||
]
|
]
|
||||||
|
|
||||||
|
extra_dependencies: List[PoetryPackage] = []
|
||||||
for extra in venv.envconfig.extras:
|
for extra in venv.envconfig.extras:
|
||||||
try:
|
try:
|
||||||
extra_dependencies = [
|
extra_dependencies += [
|
||||||
packages[item.name] for item in poetry.package.extras[extra]
|
packages[item.name] for item in poetry.package.extras[extra]
|
||||||
]
|
]
|
||||||
except KeyError:
|
except KeyError:
|
||||||
|
Loading…
Reference in New Issue
Block a user