From 4626ca27cff03c93c7aa4062faed23922a6baa9d Mon Sep 17 00:00:00 2001 From: Jarek Potiuk Date: Sun, 20 Jul 2025 10:26:25 +0200 Subject: [PATCH] [v3-0-test] Upgdate to uv 0.8.0 (#53552) (cherry picked from commit b9cddf4740fd8134a29e714dc49b12f855ecc7e4) Co-authored-by: Jarek Potiuk --- .github/actions/install-pre-commit/action.yml | 2 +- .github/workflows/ci-amd.yml | 2 +- Dockerfile | 2 +- Dockerfile.ci | 2 +- dev/breeze/doc/ci/02_images.md | 2 +- .../src/airflow_breeze/commands/release_management_commands.py | 2 +- dev/breeze/src/airflow_breeze/global_constants.py | 2 +- pyproject.toml | 2 +- scripts/ci/install_breeze.sh | 2 +- scripts/tools/setup_breeze | 2 +- 10 files changed, 10 insertions(+), 10 deletions(-) diff --git a/.github/actions/install-pre-commit/action.yml b/.github/actions/install-pre-commit/action.yml index e56cf9c1132c6..b60597dd24076 100644 --- a/.github/actions/install-pre-commit/action.yml +++ b/.github/actions/install-pre-commit/action.yml @@ -24,7 +24,7 @@ inputs: default: "3.9" uv-version: description: 'uv version to use' - default: "0.7.21" # Keep this comment to allow automatic replacement of uv version + default: "0.8.0" # Keep this comment to allow automatic replacement of uv version pre-commit-version: description: 'pre-commit version to use' default: "4.2.0" # Keep this comment to allow automatic replacement of pre-commit version diff --git a/.github/workflows/ci-amd.yml b/.github/workflows/ci-amd.yml index 41f21dc3f7097..db1a051e651d4 100644 --- a/.github/workflows/ci-amd.yml +++ b/.github/workflows/ci-amd.yml @@ -186,7 +186,7 @@ jobs: - name: Install pre-commit, uv, and pre-commit-uv shell: bash env: - UV_VERSION: "0.7.21" # Keep this comment to allow automatic replacement of uv version + UV_VERSION: "0.8.0" # Keep this comment to allow automatic replacement of uv version PRE_COMMIT_VERSION: "4.2.0" # Keep this comment to allow automatic replacement of pre-commit version PRE_COMMIT_UV_VERSION: "4.1.4" # Keep this comment to allow automatic replacement of pre-commit-uv version run: | diff --git a/Dockerfile b/Dockerfile index 9c1efbc057493..6b5a9611ee7d4 100644 --- a/Dockerfile +++ b/Dockerfile @@ -57,7 +57,7 @@ ARG PYTHON_BASE_IMAGE="python:3.9-slim-bookworm" ARG AIRFLOW_PIP_VERSION=25.1.1 # ARG AIRFLOW_PIP_VERSION="git+https://github.com/pypa/pip.git@main" ARG AIRFLOW_SETUPTOOLS_VERSION=80.9.0 -ARG AIRFLOW_UV_VERSION=0.7.21 +ARG AIRFLOW_UV_VERSION=0.8.0 ARG AIRFLOW_USE_UV="false" ARG UV_HTTP_TIMEOUT="300" ARG AIRFLOW_IMAGE_REPOSITORY="https://github.com/apache/airflow" diff --git a/Dockerfile.ci b/Dockerfile.ci index 6c52152cae655..85c3220053401 100644 --- a/Dockerfile.ci +++ b/Dockerfile.ci @@ -1445,7 +1445,7 @@ COPY --from=scripts common.sh install_packaging_tools.sh install_additional_depe ARG AIRFLOW_PIP_VERSION=25.1.1 # ARG AIRFLOW_PIP_VERSION="git+https://github.com/pypa/pip.git@main" ARG AIRFLOW_SETUPTOOLS_VERSION=80.9.0 -ARG AIRFLOW_UV_VERSION=0.7.21 +ARG AIRFLOW_UV_VERSION=0.8.0 # TODO(potiuk): automate with upgrade check (possibly) ARG AIRFLOW_PRE_COMMIT_VERSION="4.2.0" ARG AIRFLOW_PRE_COMMIT_UV_VERSION="4.1.4" diff --git a/dev/breeze/doc/ci/02_images.md b/dev/breeze/doc/ci/02_images.md index b556ec69d5698..1c529ed87c619 100644 --- a/dev/breeze/doc/ci/02_images.md +++ b/dev/breeze/doc/ci/02_images.md @@ -443,7 +443,7 @@ can be used for CI images: | `ADDITIONAL_DEV_APT_DEPS` | | Additional apt dev dependencies installed in the first part of the image | | `ADDITIONAL_DEV_APT_ENV` | | Additional env variables defined when installing dev deps | | `AIRFLOW_PIP_VERSION` | `25.1.1` | `pip` version used. | -| `AIRFLOW_UV_VERSION` | `0.7.21` | `uv` version used. | +| `AIRFLOW_UV_VERSION` | `0.8.0` | `uv` version used. | | `AIRFLOW_PRE_COMMIT_VERSION` | `4.2.0` | `pre-commit` version used. | | `AIRFLOW_PRE_COMMIT_UV_VERSION` | `4.1.4` | `pre-commit-uv` version used. | | `AIRFLOW_USE_UV` | `true` | Whether to use UV for installation. | diff --git a/dev/breeze/src/airflow_breeze/commands/release_management_commands.py b/dev/breeze/src/airflow_breeze/commands/release_management_commands.py index b4aead3a9777e..ec41b658159c4 100644 --- a/dev/breeze/src/airflow_breeze/commands/release_management_commands.py +++ b/dev/breeze/src/airflow_breeze/commands/release_management_commands.py @@ -245,7 +245,7 @@ class VersionedFile(NamedTuple): AIRFLOW_PIP_VERSION = "25.1.1" -AIRFLOW_UV_VERSION = "0.7.21" +AIRFLOW_UV_VERSION = "0.8.0" AIRFLOW_USE_UV = False GITPYTHON_VERSION = "3.1.44" RICH_VERSION = "14.0.0" diff --git a/dev/breeze/src/airflow_breeze/global_constants.py b/dev/breeze/src/airflow_breeze/global_constants.py index 761d0d54b0442..5bab931c8c23d 100644 --- a/dev/breeze/src/airflow_breeze/global_constants.py +++ b/dev/breeze/src/airflow_breeze/global_constants.py @@ -199,7 +199,7 @@ ALLOWED_INSTALL_MYSQL_CLIENT_TYPES = ["mariadb", "mysql"] PIP_VERSION = "25.1.1" -UV_VERSION = "0.7.21" +UV_VERSION = "0.8.0" DEFAULT_UV_HTTP_TIMEOUT = 300 DEFAULT_WSL2_HTTP_TIMEOUT = 900 diff --git a/pyproject.toml b/pyproject.toml index c6a84b6be144e..fd1e7f445c4d2 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -518,7 +518,7 @@ packages = [] "apache-airflow-providers-amazon[s3fs]", ] "uv" = [ - "uv>=0.7.21", + "uv>=0.8.0", ] diff --git a/scripts/ci/install_breeze.sh b/scripts/ci/install_breeze.sh index c26fcca65a3c0..92023598b10cf 100755 --- a/scripts/ci/install_breeze.sh +++ b/scripts/ci/install_breeze.sh @@ -22,7 +22,7 @@ cd "$( dirname "${BASH_SOURCE[0]}" )/../../" PYTHON_ARG="" PIP_VERSION="25.1.1" -UV_VERSION="0.7.21" +UV_VERSION="0.8.0" if [[ ${PYTHON_VERSION=} != "" ]]; then PYTHON_ARG="--python=$(which python"${PYTHON_VERSION}") " fi diff --git a/scripts/tools/setup_breeze b/scripts/tools/setup_breeze index 33d5553a63f0e..5dd542677f5b8 100755 --- a/scripts/tools/setup_breeze +++ b/scripts/tools/setup_breeze @@ -27,7 +27,7 @@ COLOR_YELLOW=$'\e[33m' COLOR_BLUE=$'\e[34m' COLOR_RESET=$'\e[0m' -UV_VERSION="0.7.21" +UV_VERSION="0.8.0" function manual_instructions() { echo