Skip to content
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 .github/actions/install-pre-commit/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ inputs:
default: "3.10"
uv-version:
description: 'uv version to use'
default: "0.7.17" # Keep this comment to allow automatic replacement of uv version
default: "0.7.19" # 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
Expand Down
6 changes: 2 additions & 4 deletions .github/workflows/basic-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -284,25 +284,23 @@ jobs:
# For UV we are not failing the upgrade installers check if it is updated because
# it is upgraded very frequently, so we want to manually upgrade it rather than
# get notified about it - until it stabilizes in 1.* version
- name: "Run automated upgrade for uv (open to see if new version is updated)"
- name: "Run automated upgrade for uv (not failing - just informational)"
run: >
pre-commit run
--all-files --show-diff-on-failure --color always --verbose
--hook-stage manual update-installers-and-pre-commit || true
if: always()
env:
UPGRADE_UV: "true"
UPGRADE_PIP: "false"
UPGRADE_PRE_COMMIT: "false"
UPGRADE_NODE_LTS: "false"
- name: "Run automated upgrade for pip, pre-commit and node"
- name: "Run automated upgrade for pip, pre-commit and node (failing if needed)"
run: >
pre-commit run
--all-files --show-diff-on-failure --color always --verbose
--hook-stage manual update-installers-and-pre-commit
if: always()
env:
UPGRADE_UV: "false"
UPGRADE_PIP: "true"
UPGRADE_PRE_COMMIT: "true"
UPGRADE_NODE_LTS: "true"
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ci-amd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ jobs:
- name: Install pre-commit, uv, and pre-commit-uv
shell: bash
env:
UV_VERSION: "0.7.17" # Keep this comment to allow automatic replacement of uv version
UV_VERSION: "0.7.19" # 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: |
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ ARG PYTHON_BASE_IMAGE="python:3.10-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.17
ARG AIRFLOW_UV_VERSION=0.7.19
ARG AIRFLOW_USE_UV="false"
ARG UV_HTTP_TIMEOUT="300"
ARG AIRFLOW_IMAGE_REPOSITORY="https://github.com/apache/airflow"
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile.ci
Original file line number Diff line number Diff line change
Expand Up @@ -1407,7 +1407,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.17
ARG AIRFLOW_UV_VERSION=0.7.19
# TODO(potiuk): automate with upgrade check (possibly)
ARG AIRFLOW_PRE_COMMIT_VERSION="4.2.0"
ARG AIRFLOW_PRE_COMMIT_UV_VERSION="4.1.4"
Expand Down
2 changes: 1 addition & 1 deletion dev/breeze/doc/ci/02_images.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.17` | `uv` version used. |
| `AIRFLOW_UV_VERSION` | `0.7.19` | `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. |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -245,13 +245,13 @@ class VersionedFile(NamedTuple):


AIRFLOW_PIP_VERSION = "25.1.1"
AIRFLOW_UV_VERSION = "0.7.17"
AIRFLOW_UV_VERSION = "0.7.19"
AIRFLOW_USE_UV = False
# TODO(potiuk): automate upgrades of these versions (likely via requirements.txt file)
GITPYTHON_VERSION = "3.1.44"
RICH_VERSION = "13.9.4"
RICH_VERSION = "14.0.0"
PRE_COMMIT_VERSION = "4.2.0"
HATCH_VERSION = "1.14.0"
PRE_COMMIT_UV_VERSION = "4.1.4"
HATCH_VERSION = "1.14.1"
PYYAML_VERSION = "6.0.2"

# no need for pre-commit-uv. Those commands will only ever initialize the compile-www-assets
Expand All @@ -264,7 +264,7 @@ class VersionedFile(NamedTuple):
RUN --mount=type=cache,id=cache-airflow-build-dockerfile-installation,target=/root/.cache/ \
uv pip install --system ignore pip=={AIRFLOW_PIP_VERSION} hatch=={HATCH_VERSION} \
pyyaml=={PYYAML_VERSION} gitpython=={GITPYTHON_VERSION} rich=={RICH_VERSION} \
pre-commit=={PRE_COMMIT_VERSION}
pre-commit=={PRE_COMMIT_VERSION} pre-commit-uv=={PRE_COMMIT_UV_VERSION}
COPY . /opt/airflow
"""

Expand Down
2 changes: 1 addition & 1 deletion dev/breeze/src/airflow_breeze/global_constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@
ALLOWED_INSTALL_MYSQL_CLIENT_TYPES = ["mariadb", "mysql"]

PIP_VERSION = "25.1.1"
UV_VERSION = "0.7.17"
UV_VERSION = "0.7.19"

DEFAULT_UV_HTTP_TIMEOUT = 300
DEFAULT_WSL2_HTTP_TIMEOUT = 900
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -528,7 +528,7 @@ packages = []
"apache-airflow-providers-amazon[s3fs]",
]
"uv" = [
"uv>=0.7.17",
"uv>=0.7.19",
]


Expand Down
2 changes: 1 addition & 1 deletion scripts/ci/install_breeze.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ cd "$( dirname "${BASH_SOURCE[0]}" )/../../"
PYTHON_ARG=""

PIP_VERSION="25.1.1"
UV_VERSION="0.7.17"
UV_VERSION="0.7.19"
if [[ ${PYTHON_VERSION=} != "" ]]; then
PYTHON_ARG="--python=$(which python"${PYTHON_VERSION}") "
fi
Expand Down
56 changes: 56 additions & 0 deletions scripts/ci/pre_commit/update_installers_and_pre_commit.py
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,10 @@ def get_replacement(value: str, quoting: Quoting) -> str:
UPGRADE_SETUPTOOLS: bool = os.environ.get("UPGRADE_SETUPTOOLS", "true").lower() == "true"
UPGRADE_PRE_COMMIT: bool = os.environ.get("UPGRADE_PRE_COMMIT", "true").lower() == "true"
UPGRADE_NODE_LTS: bool = os.environ.get("UPGRADE_NODE_LTS", "true").lower() == "true"
UPGRADE_HATCH: bool = os.environ.get("UPGRADE_HATCH", "true").lower() == "true"
UPGRADE_PYYAML: bool = os.environ.get("UPGRADE_PYYAML", "true").lower() == "true"
UPGRADE_GITPYTHON: bool = os.environ.get("UPGRADE_GITPYTHON", "true").lower() == "true"
UPGRADE_RICH: bool = os.environ.get("UPGRADE_RICH", "true").lower() == "true"


def replace_version(pattern: re.Pattern[str], version: str, text: str, keep_total_length: bool = True) -> str:
Expand Down Expand Up @@ -206,6 +210,10 @@ def replacer(match):
setuptools_version = get_latest_pypi_version("setuptools")
pre_commit_version = get_latest_pypi_version("pre-commit")
pre_commit_uv_version = get_latest_pypi_version("pre-commit-uv")
hatch_version = get_latest_pypi_version("hatch")
pyyaml_version = get_latest_pypi_version("PyYAML")
gitpython_version = get_latest_pypi_version("GitPython")
rich_version = get_latest_pypi_version("rich")
node_lts_version = get_latest_lts_node_version()
for file, keep_length in FILES_TO_UPDATE:
console.print(f"[bright_blue]Updating {file}")
Expand Down Expand Up @@ -253,6 +261,54 @@ def replacer(match):
new_content,
keep_length,
)
if UPGRADE_HATCH:
console.print(f"[bright_blue]Latest hatch version: {hatch_version}")
new_content = re.sub(
r"(HATCH_VERSION = )(\"[0-9.]+\")",
f'HATCH_VERSION = "{hatch_version}"',
new_content,
)
new_content = re.sub(
r"(HATCH_VERSION=)(\"[0-9.]+\")",
f'HATCH_VERSION="{hatch_version}"',
new_content,
)
if UPGRADE_PYYAML:
console.print(f"[bright_blue]Latest PyYAML version: {pyyaml_version}")
new_content = re.sub(
r"(PYYAML_VERSION = )(\"[0-9.]+\")",
f'PYYAML_VERSION = "{pyyaml_version}"',
new_content,
)
new_content = re.sub(
r"(PYYAML_VERSION=)(\"[0-9.]+\")",
f'PYYAML_VERSION="{pyyaml_version}"',
new_content,
)
if UPGRADE_GITPYTHON:
console.print(f"[bright_blue]Latest GitPython version: {gitpython_version}")
new_content = re.sub(
r"(GITPYTHON_VERSION = )(\"[0-9.]+\")",
f'GITPYTHON_VERSION = "{gitpython_version}"',
new_content,
)
new_content = re.sub(
r"(GITPYTHON_VERSION=)(\"[0-9.]+\")",
f'GITPYTHON_VERSION="{gitpython_version}"',
new_content,
)
if UPGRADE_RICH:
console.print(f"[bright_blue]Latest rich version: {rich_version}")
new_content = re.sub(
r"(RICH_VERSION = )(\"[0-9.]+\")",
f'RICH_VERSION = "{rich_version}"',
new_content,
)
new_content = re.sub(
r"(RICH_VERSION=)(\"[0-9.]+\")",
f'RICH_VERSION="{rich_version}"',
new_content,
)
if new_content != file_content:
file.write_text(new_content)
console.print(f"[bright_blue]Updated {file}")
Expand Down
2 changes: 1 addition & 1 deletion scripts/tools/setup_breeze
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ COLOR_YELLOW=$'\e[33m'
COLOR_BLUE=$'\e[34m'
COLOR_RESET=$'\e[0m'

UV_VERSION="0.7.17"
UV_VERSION="0.7.19"

function manual_instructions() {
echo
Expand Down
Loading