diff --git a/Dockerfile b/Dockerfile index 557181f..92b6c58 100644 --- a/Dockerfile +++ b/Dockerfile @@ -19,6 +19,8 @@ RUN apt-get update -qq \ ENV PIPX_BIN_DIR=/usr/local/bin +COPY --from=ghcr.io/astral-sh/uv:latest /uv /uvx /usr/local/bin/ + # Install wkhtml RUN case $(lsb_release -c -s) in \ focal) WKHTML_DEB_URL=https://github.com/wkhtmltopdf/wkhtmltopdf/releases/download/0.12.5/wkhtmltox_0.12.5-1.focal_amd64.deb ;; \ diff --git a/bin/oca_install_addons b/bin/oca_install_addons index 8be911e..2bd95ef 100755 --- a/bin/oca_install_addons +++ b/bin/oca_install_addons @@ -4,7 +4,7 @@ set -ex # show pip config pip config list -oca_install_addons__deps_and_addons_path +oca_install_addons__editable # show what we have installed pip freeze diff --git a/bin/oca_install_addons__editable b/bin/oca_install_addons__editable new file mode 100755 index 0000000..92a047c --- /dev/null +++ b/bin/oca_install_addons__editable @@ -0,0 +1,18 @@ +#!/bin/bash + +# +# Install addons to test in editable mode. This will install all python dependencies +# from PyPI, including OCA addons from other repos. +# + +set -ex + +oca_list_addons_to_test_as_url_reqs --editable >> test-requirements.txt + +cat test-requirements.txt + +# Disable git versioning strategies for better performance, as we +# are not interested in git post versions here. +env SETUPTOOLS_ODOO_POST_VERSION_STRATEGY_OVERRIDE=none \ + WHOOL_POST_VERSION_STRATEGY_OVERRIDE=none \ + uv pip install -r test-requirements.txt