- Remove `requirements.txt` in favor of `pyproject.toml` dependencies - Add `uv.lock` file for dependency resolution - Update `task` script to use `uv sync --active` instead of `uv pip install -r requirements.txt` - Replace `install-python-packages` script with `sync-python-project` in Odoo image - Modify Python package installation logic in Odoo container to use `uv sync` with `pyproject.toml` - Adjust test cases in `task` script to validate new Python project syncing - Update documentation to reflect changes in Python dependency management
11 lines
217 B
Bash
Executable File
11 lines
217 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -e
|
|
|
|
local_path="${LOCAL_PATH:="/var/lib/odoo"}"
|
|
|
|
if [[ -f "$local_path/pyproject.toml" ]]; then
|
|
log-entrypoint "Run uv sync in $local_path ..."
|
|
cd "$local_path"
|
|
uv sync --active
|
|
fi
|