Skip to content

Commit 030b03b

Browse files
authored
Merge pull request #201 from per1234/refactor-poetry-install
Refactor `poetry:install` task
2 parents 96c633d + 753d0bb commit 030b03b

File tree

1 file changed

+10
-7
lines changed

1 file changed

+10
-7
lines changed

Taskfile.yml

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -451,15 +451,18 @@ tasks:
451451
task utility:normalize-path \
452452
RAW_PATH="$(which python)" \
453453
)"
454+
455+
poetry_constraint="$( \
456+
yq \
457+
--input-format toml \
458+
--output-format yaml \
459+
'.tool.poetry.group.pipx.dependencies.poetry' \
460+
<pyproject.toml
461+
)"
462+
454463
pipx install \
455464
--force \
456-
"poetry==$( \
457-
yq \
458-
--input-format toml \
459-
--output-format yaml \
460-
'.tool.poetry.group.pipx.dependencies.poetry' \
461-
< pyproject.toml
462-
)"
465+
"poetry==$poetry_constraint"
463466
464467
# Source: https://github.com/arduino/tooling-project-assets/blob/main/workflow-templates/assets/poetry-task/Taskfile.yml
465468
poetry:install-deps:

0 commit comments

Comments
 (0)