Files
Odoo-Build/images/odoo/bin/sync-python-project
T
Janik von Rotz 46156c7066 chore(deps): migrate from requirements.txt to pyproject.toml and uv lock
- 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
2025-10-31 13:44:13 +01:00

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