Skip to content

Commit

Permalink
bump hatchling to 1.26.1 (#43863)
Browse files Browse the repository at this point in the history
  • Loading branch information
gopidesupavan authored Nov 10, 2024
1 parent 02217cc commit cf3f9c7
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 10 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==1.9.7
pipx install hatch
- name: Run tests
run: hatch run run-coverage
env:
Expand Down
6 changes: 3 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -477,21 +477,21 @@ repos:
files: ^docs/apache-airflow/extra-packages-ref\.rst$|^hatch_build.py
pass_filenames: false
entry: ./scripts/ci/pre_commit/check_extra_packages_ref.py
additional_dependencies: ['rich>=12.4.4', 'hatchling==1.25.0', 'tabulate']
additional_dependencies: ['rich>=12.4.4', 'hatchling==1.26.1', 'tabulate']
- id: check-hatch-build-order
name: Check order of dependencies in hatch_build.py
language: python
files: ^hatch_build.py$
pass_filenames: false
entry: ./scripts/ci/pre_commit/check_order_hatch_build.py
additional_dependencies: ['rich>=12.4.4', 'hatchling==1.25.0']
additional_dependencies: ['rich>=12.4.4', 'hatchling==1.26.1']
- id: update-extras
name: Update extras in documentation
entry: ./scripts/ci/pre_commit/insert_extras.py
language: python
files: ^contributing-docs/12_airflow_dependencies_and_extras.rst$|^INSTALL$|^providers/src/airflow/providers/.*/provider\.yaml$|^Dockerfile.*
pass_filenames: false
additional_dependencies: ['rich>=12.4.4', 'hatchling==1.25.0']
additional_dependencies: ['rich>=12.4.4', 'hatchling==1.26.1']
- id: check-extras-order
name: Check order of extras in Dockerfile
entry: ./scripts/ci/pre_commit/check_order_dockerfile_extras.py
Expand Down
2 changes: 1 addition & 1 deletion clients/python/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
# under the License.

[build-system]
requires = ["hatchling==1.25.0"]
requires = ["hatchling==1.26.1"]
build-backend = "hatchling.build"

[project]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -240,14 +240,12 @@ 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} hatchling=={HATCHLING_VERSION}
gitpython=={GITPYTHON_VERSION} rich=={RICH_VERSION} pre-commit=={PRE_COMMIT_VERSION}
COPY . /opt/airflow
"""

Expand Down
2 changes: 1 addition & 1 deletion docker_tests/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ pytest-xdist
# Requests 3 if it will be released, will be heavily breaking.
requests>=2.27.0,<3
python-on-whales>=0.70.0
hatchling==1.25.0
hatchling==1.26.1
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
requires = [
"GitPython==3.1.43",
"gitdb==4.0.11",
"hatchling==1.25.0",
"hatchling==1.26.1",
"packaging==24.2",
"pathspec==0.12.1",
"pluggy==1.5.0",
Expand Down

0 comments on commit cf3f9c7

Please sign in to comment.