Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add editable install script #62

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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