From d36779aece707dfbf8bc975993a83dc300aa5203 Mon Sep 17 00:00:00 2001 From: Alex Pyrgiotis Date: Wed, 2 Apr 2025 12:11:03 +0300 Subject: [PATCH] Prefer `poetry sync` to `poetry install --sync` Use `poetry sync` instead of `poetry install --sync`, since the latter is deprecated and will be removed after June 2025, as seen in the following warning message: The `--sync` option is deprecated and slated for removal in the next minor release after June 2025, use the `poetry sync` command instead. --- RELEASE.md | 4 ++-- dodo.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/RELEASE.md b/RELEASE.md index 5df7288..18700bb 100644 --- a/RELEASE.md +++ b/RELEASE.md @@ -141,7 +141,7 @@ Here is what you need to do: poetry env remove --all # Install the dependencies - poetry install --sync + poetry sync ``` - [ ] Build the container image and the OCR language data @@ -223,7 +223,7 @@ The Windows release is performed in a Windows 11 virtual machine (as opposed to poetry env remove --all # Install the dependencies - poetry install --sync + poetry sync ``` - [ ] Copy the container image into the VM diff --git a/dodo.py b/dodo.py index bd2b3a1..1a7eda3 100644 --- a/dodo.py +++ b/dodo.py @@ -206,7 +206,7 @@ def task_build_image(): def task_poetry_install(): """Setup the Poetry environment""" - return {"actions": ["poetry install --sync"], "clean": ["poetry env remove --all"]} + return {"actions": ["poetry sync"], "clean": ["poetry env remove --all"]} def task_macos_build_dmg():