Skip to content

Commit

Permalink
Only set uv index
Browse files Browse the repository at this point in the history
  • Loading branch information
edenhaus authored Mar 11, 2024
1 parent 1937b14 commit 159611c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 13 deletions.
3 changes: 2 additions & 1 deletion alpine/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ ENV \
S6_BEHAVIOUR_IF_STAGE2_FAILS=2 \
S6_CMD_WAIT_FOR_SERVICES_MAXTIME=0 \
S6_CMD_WAIT_FOR_SERVICES=1 \
S6_SERVICES_READYTIME=50
S6_SERVICES_READYTIME=50 \
UV_EXTRA_INDEX_URL="https://wheels.home-assistant.io/musllinux-index/"

# Set shell
SHELL ["/bin/ash", "-o", "pipefail", "-c"]
Expand Down
13 changes: 2 additions & 11 deletions python/3.12/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,10 @@ ARG \
PYTHON_VERSION \
PIP_VERSION \
GPG_KEY \
QEMU_CPU \
UV_VERSION
QEMU_CPU

# ensure local python is preferred over distribution python
# add cargo to path to run rust tools like uv
# set uv index url
ENV \
PATH="/usr/local/bin:$PATH:/root/.cargo/bin" \
UV_EXTRA_INDEX_URL="https://wheels.home-assistant.io/musllinux-index/"
ENV PATH /usr/local/bin:$PATH

# Set shell
SHELL ["/bin/ash", "-o", "pipefail", "-c"]
Expand Down Expand Up @@ -134,7 +129,3 @@ RUN set -ex; \
-type d -a \( -name test -o -name tests \) \
\) -exec rm -rf '{}' +; \
rm -f get-pip.py

# install uv
RUN set -ex; \
curl -LsSf https://github.com/astral-sh/uv/releases/download/${UV_VERSION}/uv-installer.sh | sh
1 change: 0 additions & 1 deletion python/3.12/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ cosign:
args:
PYTHON_VERSION: 3.12.2
PIP_VERSION: 24.0
UV_VERSION: 0.1.17
GPG_KEY: 7169605F62C751356D054A26A821E680E5FA6305
labels:
io.hass.base.name: python
Expand Down

0 comments on commit 159611c

Please sign in to comment.