erplibre/script/poetry
Mathieu Benoit 2a5e83b5c7 [FIX] poetry update: stop on a missing pyproject.toml, offer the switch
The root pyproject.toml and poetry.lock are unversioned symlinks to the
active version's files in requirement/, created by the version switch.
Without them the script died on a FileNotFoundError traceback. It now
names the fix, make switch_odoo_XX for the active Odoo version; on a
terminal it offers to run it and restarts with the same arguments.
Checked: an existing file passes, a missing one exits 1 off a terminal
and on a declined prompt. The accepted path, which runs the switch, is
not tested.

--- FR ---

[FIX] poetry update : arrêt sur pyproject.toml absent, switch proposé

pyproject.toml et poetry.lock à la racine sont des liens non versionnés
vers les fichiers de la version active dans requirement/, créés par le
switch de version. Sans eux, le script mourait sur un FileNotFoundError.
Il nomme désormais le remède, make switch_odoo_XX pour la version Odoo
active ; dans un terminal, il propose de le lancer et se relance avec
les mêmes arguments. Vérifié : un fichier présent passe, un absent sort
en 1 hors terminal et sur un refus. L'acceptation, qui lance le switch,
n'est pas testée.

Assisted-by: Claude Opus 5.5
2026-09-25 02:54:33 -04:00
..
iscompatible.py [FIX] poetry iscompatible: crash when semversion has alpha char 2025-10-31 01:33:29 -04:00
poetry_add_build_dependency.sh [ADD] poetry: pin a dependency per architecture 2026-08-16 06:11:44 -04:00
poetry_update.py [FIX] poetry update: stop on a missing pyproject.toml, offer the switch 2026-09-25 02:54:33 -04:00