Skip to content

Commit

Permalink
Add editable install script
Browse files Browse the repository at this point in the history
  • Loading branch information
sbidoul committed Nov 16, 2024
1 parent 2ab8a83 commit 39be9f4
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 1 deletion.
2 changes: 2 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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 ;; \
Expand Down
2 changes: 1 addition & 1 deletion bin/oca_install_addons
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ set -ex
# show pip config
pip config list

oca_install_addons__deps_and_addons_path
oca_install_addons__${OCA_INSTALL_ADDONS_MODE:-deps_and_addons_path}

# show what we have installed
pip freeze
Expand Down
18 changes: 18 additions & 0 deletions bin/oca_install_addons__editable
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 39be9f4

Please sign in to comment.