Install poetry dependencies with --no-root (#27919) (#27920)

Backport #27919 by @silverwind

Poetry 1.7.0 or higher will print a warning otherwise, see discussions:

https://github.com/python-poetry/poetry/pull/8369
https://github.com/python-poetry/poetry/issues/1132

> --no-root Do not install the root package (the current project).

Co-authored-by: silverwind <me@silverwind.io>
This commit is contained in:
Giteabot 2023-11-06 10:14:46 +08:00 committed by GitHub
parent 2f56ab7999
commit 81d233d987
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -922,7 +922,7 @@ node_modules: package-lock.json
@touch node_modules
.venv: poetry.lock
poetry install
poetry install --no-root
@touch .venv
.PHONY: update