Repository navigation
Conversation
odx dev writes the addons path (project addons, packages in develop mode, aggregated repositories, groups) to a file and to odoo.conf, and installs addons with their own pyproject.toml in editable mode with uv. odx dev <package> [--branch] clones the locked commit from the cache into .src/<package> with upstream and mirror remotes and points the package's uv source at it; odx dev --restore puts pyproject.toml back byte for byte, from the state in .odx/develop.toml. odx verify reports packages in develop mode. Test runs through just keep uv's cache in target/.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Phase 6, first part:
odx dev.Workspace mode (
odx dev [--no-editable] [--venv] [--print-addons-path] [--dry-run])[tool.odx.dev] addons_path_file(default.odx/addons-path);addons_pathset in the[options]section ofodoo_conf.pyproject.toml(project addons, selected aggregated addons) installed withuv pip install --python <venv> -e …(PEP 660); skipped with a warning when the venv is missing.Package mode (
odx dev <package> [--branch],odx dev --restore [<package>])dev_dir(default.src), remotesupstreamandmirror; detached at the locked commit or on the given branch.[tool.uv.sources]entry →{ path, editable = true }(in place); a direct reference in a group → the plain requirement (extras and markers kept)..odx/develop.tomlbeforepyproject.tomlchanges;--restoreputs it back byte for byte (tested), the clone stays.odx verifyreports packages in develop mode (instead of "no longer configured").New helpers in odx-config (
replace_requirement,direct_references,uv_source_entry,set_uv_source_entry), logic in odx-dev (set_addons_path,enter/leave,DevelopState). odx-dev joins the published crates.The justfile exports
UV_CACHE_DIR=target/uv-cache, so tests that run uv do not grow the user's uv cache.