From 02217ccf5c6a8a38446ad6145bcaccd615712c8f Mon Sep 17 00:00:00 2001 From: GPK Date: Sun, 10 Nov 2024 12:14:51 +0000 Subject: [PATCH] Fix hatchling to 1.25.0 (#43858) * set hatchling to 1.25.0 * add hatchling as devel dep * restrict hatchling 1.26.0 installing in openapi test * set hatch version to 1.9.7 in basic-tests --- .github/workflows/basic-tests.yml | 2 +- .../airflow_breeze/commands/release_management_commands.py | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/basic-tests.yml b/.github/workflows/basic-tests.yml index bf7e8ab7bf79b..53be23a029efb 100644 --- a/.github/workflows/basic-tests.yml +++ b/.github/workflows/basic-tests.yml @@ -189,7 +189,7 @@ jobs: run: | python -m pip install --upgrade pipx pipx ensurepath - pipx install hatch --force + pipx install hatch==1.9.7 - name: Run tests run: hatch run run-coverage env: 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 1fa57a3d74442..1d13ad39a23f6 100644 --- a/dev/breeze/src/airflow_breeze/commands/release_management_commands.py +++ b/dev/breeze/src/airflow_breeze/commands/release_management_commands.py @@ -240,12 +240,14 @@ class VersionedFile(NamedTuple): PRE_COMMIT_VERSION = "4.0.1" HATCH_VERSION = "1.13.0" PYYAML_VERSION = "6.0.2" +# hatchling recent version broke: https://github.com/pypa/hatch/issues/1793 +HATCHLING_VERSION = "1.25.0" AIRFLOW_BUILD_DOCKERFILE = f""" FROM python:{DEFAULT_PYTHON_MAJOR_MINOR_VERSION}-slim-{ALLOWED_DEBIAN_VERSIONS[0]} RUN apt-get update && apt-get install -y --no-install-recommends git RUN pip install --root-user-action ignore pip=={AIRFLOW_PIP_VERSION} hatch=={HATCH_VERSION} pyyaml=={PYYAML_VERSION}\ - gitpython=={GITPYTHON_VERSION} rich=={RICH_VERSION} pre-commit=={PRE_COMMIT_VERSION} + gitpython=={GITPYTHON_VERSION} rich=={RICH_VERSION} pre-commit=={PRE_COMMIT_VERSION} hatchling=={HATCHLING_VERSION} COPY . /opt/airflow """