Skip to content

Commit

Permalink
Fix hatchling to 1.25.0 (apache#43858)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
gopidesupavan authored Nov 10, 2024
1 parent 6d85a04 commit 02217cc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/basic-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
"""

Expand Down

0 comments on commit 02217cc

Please sign in to comment.