From b780ff7ce9594c935e49ade2c5a73f188ca6f722 Mon Sep 17 00:00:00 2001 From: Stijn de Gooijer Date: Sat, 27 Jul 2024 10:13:45 +0200 Subject: [PATCH] ci(python): Set `uv pip install` to verbose (#17901) --- .github/workflows/benchmark.yml | 2 +- .github/workflows/docs-global.yml | 3 +-- .github/workflows/lint-python.yml | 3 +-- .github/workflows/test-coverage.yml | 2 +- .github/workflows/test-python.yml | 2 +- Makefile | 9 +++++---- 6 files changed, 10 insertions(+), 11 deletions(-) diff --git a/.github/workflows/benchmark.yml b/.github/workflows/benchmark.yml index 6139428e6bc2..9094e5612578 100644 --- a/.github/workflows/benchmark.yml +++ b/.github/workflows/benchmark.yml @@ -48,7 +48,7 @@ jobs: - name: Install Python dependencies working-directory: py-polars - run: uv pip install --compile-bytecode -r requirements-dev.txt -r requirements-ci.txt + run: uv pip install --compile-bytecode -r requirements-dev.txt -r requirements-ci.txt --verbose - name: Set up Rust run: rustup show diff --git a/.github/workflows/docs-global.yml b/.github/workflows/docs-global.yml index a20c44ebf5b2..6a7e0e329346 100644 --- a/.github/workflows/docs-global.yml +++ b/.github/workflows/docs-global.yml @@ -69,8 +69,7 @@ jobs: echo "VIRTUAL_ENV=$GITHUB_WORKSPACE/.venv" >> $GITHUB_ENV - name: Install Python dependencies - run: | - uv pip install -r py-polars/requirements-dev.txt -r docs/requirements.txt + run: uv pip install -r py-polars/requirements-dev.txt -r docs/requirements.txt - name: Set up Rust run: rustup show diff --git a/.github/workflows/lint-python.yml b/.github/workflows/lint-python.yml index c206a945380e..5197645a8f23 100644 --- a/.github/workflows/lint-python.yml +++ b/.github/workflows/lint-python.yml @@ -58,8 +58,7 @@ jobs: - name: Install Python dependencies working-directory: py-polars - run: | - uv pip install -r requirements-dev.txt -r requirements-lint.txt + run: uv pip install -r requirements-dev.txt -r requirements-lint.txt # Allow untyped calls for older Python versions - name: Run mypy diff --git a/.github/workflows/test-coverage.yml b/.github/workflows/test-coverage.yml index 28d89107f2cc..ce642bbec306 100644 --- a/.github/workflows/test-coverage.yml +++ b/.github/workflows/test-coverage.yml @@ -103,7 +103,7 @@ jobs: - name: Install Python dependencies working-directory: py-polars - run: uv pip install --compile-bytecode -r requirements-dev.txt -r requirements-ci.txt + run: uv pip install --compile-bytecode -r requirements-dev.txt -r requirements-ci.txt --verbose - name: Set up Rust run: rustup component add llvm-tools-preview diff --git a/.github/workflows/test-python.yml b/.github/workflows/test-python.yml index 6c8659db8fab..ca717ef191f2 100644 --- a/.github/workflows/test-python.yml +++ b/.github/workflows/test-python.yml @@ -66,7 +66,7 @@ jobs: - name: Install Python dependencies run: | pip install uv - uv pip install --compile-bytecode -r requirements-dev.txt -r requirements-ci.txt + uv pip install --compile-bytecode -r requirements-dev.txt -r requirements-ci.txt --verbose - name: Set up Rust run: rustup show diff --git a/Makefile b/Makefile index 2cd38c395a8d..524e04eddc2c 100644 --- a/Makefile +++ b/Makefile @@ -21,10 +21,11 @@ FILTER_PIP_WARNINGS=| grep -v "don't match your environment"; test $${PIPESTATUS requirements: .venv ## Install/refresh Python project requirements @unset CONDA_PREFIX \ && $(VENV_BIN)/python -m pip install --upgrade uv \ - && $(VENV_BIN)/uv pip install --upgrade --compile-bytecode -r py-polars/requirements-dev.txt \ - && $(VENV_BIN)/uv pip install --upgrade -r py-polars/requirements-lint.txt \ - && $(VENV_BIN)/uv pip install --upgrade -r py-polars/docs/requirements-docs.txt \ - && $(VENV_BIN)/uv pip install --upgrade -r docs/requirements.txt + && $(VENV_BIN)/uv pip install --upgrade --compile-bytecode \ + -r py-polars/requirements-dev.txt \ + -r py-polars/requirements-lint.txt \ + -r py-polars/docs/requirements-docs.txt \ + -r docs/requirements.txt .PHONY: requirements-all requirements-all: .venv ## Install/refresh all Python requirements (including those needed for CI tests)