This is an automated email from the ASF dual-hosted git repository.
eladkal pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/airflow.git
The following commit(s) were added to refs/heads/main by this push:
new 02217ccf5c6 Fix hatchling to 1.25.0 (#43858)
02217ccf5c6 is described below
commit 02217ccf5c6a8a38446ad6145bcaccd615712c8f
Author: GPK <[email protected]>
AuthorDate: Sun Nov 10 12:14:51 2024 +0000
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 +-
dev/breeze/src/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 bf7e8ab7bf7..53be23a029e 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 1fa57a3d744..1d13ad39a23 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 @@ NODE_VERSION = "22.2.0"
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
"""