odoo/upgrade-util#479

Created by Yajo

Blocked

label
moduon:fix-editable-install
head
e284404abb1e45aaf2f14a692e5e70f70949fff3
odoo/upgrade-util
master #479 missing r+

[FIX] pyproject: allow editable installs

Editable installs failed because hatchling's dev-mode path rewrite ("src" -> "odoo/upgrade") is unsupported by the editables library, raising a ValueError (pfmoore/editables#20).

Expose the upgrade scripts at their real location by adding a symlink odoo/upgrade pointing to src, and set dev-mode-dirs = ["."] so the repo root is added to the path in dev mode. sources is left untouched, so regular wheels keep building unchanged.

Fixes #190

Assisted-by: OpenCode + DeepSeek v4 Flash

Notice that a nicer fix would be to rename src into odoo/upgrade, because I don't know how Windows will handle symlinks; but this is the MVP.