Compare commits

..

3 Commits

Author SHA1 Message Date
dependabot[bot]
109da83683
Merge 0f6fabb48c9e963a0b4aafa546934460b0e14a97 into ad5827d33fcdb448b156edbd492c482df90c2930 2025-02-18 20:28:49 +01:00
Robert Resch
ad5827d33f
Bump uv to 0.6.1 (#5641)
* Bump uv to 0.6.0

* Bump uv to 0.6.1
2025-02-18 19:26:36 +01:00
Jan Čermák
249464e928
Generate Python bytecode for site-packages during build (#5640)
Since transition from pip to uv in #5152, Supervisor container doesn't
contain bytecode for site-packages anymore, and because our AppArmor
profile denies mkdir operations, the compiled *.pyc files are never
created. Enable uv --compile option to opt for the same behavior as pip
had, to fix of the AA errors and the potential penalty of compilation on
every import.
2025-02-18 18:44:37 +01:00

View File

@ -28,15 +28,15 @@ RUN \
\
&& curl -Lso /usr/bin/cosign "https://github.com/home-assistant/cosign/releases/download/${COSIGN_VERSION}/cosign_${BUILD_ARCH}" \
&& chmod a+x /usr/bin/cosign \
&& pip3 install uv==0.2.21
&& pip3 install uv==0.6.1
# Install requirements
COPY requirements.txt .
RUN \
if [ "${BUILD_ARCH}" = "i386" ]; then \
linux32 uv pip install --no-build -r requirements.txt; \
linux32 uv pip install --compile-bytecode --no-build -r requirements.txt; \
else \
uv pip install --no-build -r requirements.txt; \
uv pip install --compile-bytecode --no-build -r requirements.txt; \
fi \
&& rm -f requirements.txt