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

Replace pip by uv #106

Merged
merged 9 commits into from
Apr 10, 2024
Merged
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: 1 addition & 1 deletion hassfest/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ FROM ghcr.io/home-assistant/home-assistant:beta
COPY entrypoint.sh /entrypoint.sh
COPY requirements.txt .

RUN pip3 install -r requirements.txt
RUN uv pip install -r requirements.txt

WORKDIR "/github/workspace"
ENTRYPOINT ["/entrypoint.sh"]
Expand Down
4 changes: 2 additions & 2 deletions hassfest/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
pipdeptree==2.15.1
pipdeptree==2.16.1
stdlib-list==0.10.0
tqdm==4.66.2
ruff==0.2.1
ruff==0.3.4
4 changes: 3 additions & 1 deletion helpers/verify-version/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,10 @@ runs:
INPUTS_IGNORE_MASTER: ${{ inputs.ignore-master }}
ACTION_PATH: ${{ github.action_path }}
REF: ${{ github.event_name == 'release' && github.event.release.tag_name || github.ref }}
UV_SYSTEM_PYTHON: "true"
run: |
pip install tomli
pip install uv
uv pip install tomli
setup_version="$(python3 $ACTION_PATH/../read_version.py)"
branch_version=$(echo "$REF" | awk -F"/" '{print $NF}' )

Expand Down
6 changes: 4 additions & 2 deletions helpers/version/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ runs:
INPUTS_TYPE: ${{ inputs.type }}
EVENT_NAME: ${{ github.event_name }}
REF: ${{ github.event_name == 'release' && github.event.release.tag_name || github.ref }}
UV_SYSTEM_PYTHON: "true"
run: |
version=$(echo "$REF" | awk -F"/" '{print $NF}' )

Expand Down Expand Up @@ -67,8 +68,9 @@ runs:
version="${{ github.sha }}"

elif [[ "${version}" == "dev" && "$INPUTS_TYPE" == "core" ]]; then
python3 -m pip install packaging tomli
python3 -m pip install .
python3 -m pip install uv
uv pip install packaging tomli
uv pip install .
python3 script/version_bump.py nightly
version="$(python3 ${{ github.action_path }}/../read_version.py)"
fi
Expand Down