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

Install dependencies dynamically from core #108

Merged
merged 6 commits into from
Apr 10, 2024
Merged
Show file tree
Hide file tree
Changes from 3 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
12 changes: 12 additions & 0 deletions hassfest/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,10 +1,22 @@
FROM ghcr.io/home-assistant/home-assistant:beta

SHELL ["/bin/bash", "-o", "pipefail", "-c"]

COPY entrypoint.sh /entrypoint.sh
COPY requirements.txt .

RUN uv pip install -r requirements.txt

# Install requirements from core
RUN \
curl -LJO https://raw.githubusercontent.com/home-assistant/core/rc/requirements_test.txt \
&& uv pip install $(grep -e "^pipdeptree" -e "^tqdm" requirements_test.txt) \
&& rm requirements_test.txt \
\
curl -LJO https://raw.githubusercontent.com/home-assistant/core/rc/requirements_test_pre_commit.txt \
&& uv pip install $(grep -e "^ruff" requirements_test_pre_commit.txt) \
&& rm requirements_test_pre_commit.txt
ludeeus marked this conversation as resolved.
Show resolved Hide resolved

WORKDIR "/github/workspace"
ENTRYPOINT ["/entrypoint.sh"]

Expand Down
3 changes: 0 additions & 3 deletions hassfest/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1 @@
pipdeptree==2.16.1
stdlib-list==0.10.0
tqdm==4.66.2
ruff==0.3.4
Loading