Skip to content

Commit 054c3ba

Browse files
committed
Add editable install script
1 parent 2ab8a83 commit 054c3ba

File tree

3 files changed

+21
-1
lines changed

3 files changed

+21
-1
lines changed

Dockerfile

+2
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ RUN apt-get update -qq \
1919

2020
ENV PIPX_BIN_DIR=/usr/local/bin
2121

22+
COPY --from=ghcr.io/astral-sh/uv:latest /uv /uvx /usr/local/bin/
23+
2224
# Install wkhtml
2325
RUN case $(lsb_release -c -s) in \
2426
focal) WKHTML_DEB_URL=https://github.com/wkhtmltopdf/wkhtmltopdf/releases/download/0.12.5/wkhtmltox_0.12.5-1.focal_amd64.deb ;; \

bin/oca_install_addons

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ set -ex
44
# show pip config
55
pip config list
66

7-
oca_install_addons__deps_and_addons_path
7+
oca_install_addons__editable
88

99
# show what we have installed
1010
pip freeze

bin/oca_install_addons__editable

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
#!/bin/bash
2+
3+
#
4+
# Install addons to test in editable mode. This will install all python dependencies
5+
# from PyPI, including OCA addons from other repos.
6+
#
7+
8+
set -ex
9+
10+
oca_list_addons_to_test_as_url_reqs --editable >> test-requirements.txt
11+
12+
cat test-requirements.txt
13+
14+
# Disable git versioning strategies for better performance, as we
15+
# are not interested in git post versions here.
16+
env SETUPTOOLS_ODOO_POST_VERSION_STRATEGY_OVERRIDE=none \
17+
WHOOL_POST_VERSION_STRATEGY_OVERRIDE=none \
18+
uv pip install -r test-requirements.txt

0 commit comments

Comments
 (0)