This is an automated email from the ASF dual-hosted git repository.
potiuk pushed a commit to branch v2-11-test
in repository https://gitbox.apache.org/repos/asf/airflow.git
The following commit(s) were added to refs/heads/v2-11-test by this push:
new 34fb41e8674 Temporary pin to workaround hatch virtualenv >= 21
compatibility (#62566)
34fb41e8674 is described below
commit 34fb41e867486448e49909d0ec9025805cd9b5df
Author: Jarek Potiuk <[email protected]>
AuthorDate: Fri Feb 27 16:06:08 2026 +0100
Temporary pin to workaround hatch virtualenv >= 21 compatibility (#62566)
---
dev/breeze/README.md | 2 +-
dev/breeze/pyproject.toml | 3 ++-
.../commands/release_management_commands.py | 3 ++-
hatch_build.py | 2 +-
pyproject.toml | 17 +++++++++++------
5 files changed, 17 insertions(+), 10 deletions(-)
diff --git a/dev/breeze/README.md b/dev/breeze/README.md
index 973369be89a..5446e087a1b 100644
--- a/dev/breeze/README.md
+++ b/dev/breeze/README.md
@@ -128,6 +128,6 @@ PLEASE DO NOT MODIFY THE HASH BELOW! IT IS AUTOMATICALLY
UPDATED BY PRE-COMMIT.
---------------------------------------------------------------------------------------------------------
-Package config hash:
940a55b4de537e8dbc1e0b7c10aa2f5bdbb267caf47b92189d14723f79cf8650856204a693c6c436db55ebd08ddb671c545acd891292f963bf4ee5614a14f662
+Package config hash:
05d02d507f75f5dacea7774487482ac2d66130d89da112db0bd1c581a509da38082dfeda6aea41e8d204a82919c4987dc0fa3daa2b82ce1981c354ff112254a4
---------------------------------------------------------------------------------------------------------
diff --git a/dev/breeze/pyproject.toml b/dev/breeze/pyproject.toml
index 3004765559d..8650bcd0db6 100644
--- a/dev/breeze/pyproject.toml
+++ b/dev/breeze/pyproject.toml
@@ -76,7 +76,8 @@ dependencies = [
"twine>=4.0.2",
"tqdm>=4.67.1",
"boto3>=1.34.90",
- "semver>=3.0.4"
+ "semver>=3.0.4",
+ "virtualenv<21" # Temporary pin for
https://github.com/pypa/hatch/issues/2193
]
[project.scripts]
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 9a5a4a4d088..1af1d301028 100644
--- a/dev/breeze/src/airflow_breeze/commands/release_management_commands.py
+++ b/dev/breeze/src/airflow_breeze/commands/release_management_commands.py
@@ -248,7 +248,8 @@ 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} prek=={PREK_VERSION}
+ gitpython=={GITPYTHON_VERSION} rich=={RICH_VERSION} prek=={PREK_VERSION} \
+ "virtualenv<21" # Temporary pin for https://github.com/pypa/hatch/issues/2193
COPY . /opt/airflow
"""
diff --git a/hatch_build.py b/hatch_build.py
index f3d879a4589..d7c63848fa0 100644
--- a/hatch_build.py
+++ b/hatch_build.py
@@ -150,7 +150,7 @@ CORE_EXTRAS: dict[str, list[str]] = {
"uv>=0.1.32",
],
"virtualenv": [
- "virtualenv",
+ "virtualenv<21", # Temporary pin for
https://github.com/pypa/hatch/issues/2193
],
}
diff --git a/pyproject.toml b/pyproject.toml
index 53d7a2892f7..68d7bf0621f 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -22,15 +22,20 @@
# The dependencies can be automatically upgraded by running:
# pre-commit run --hook-stage manual update-build-dependencies --all-files
requires = [
- "GitPython==3.1.45",
+ "distlib==0.4.0",
+ "filelock==3.24.3",
"gitdb==4.0.12",
- "hatchling==1.27.0",
- "packaging==25.0",
- "pathspec==0.12.1",
+ "GitPython==3.1.46",
+ "hatchling==1.29.0",
+ "packaging==26.0",
+ "pathspec==1.0.4",
+ "platformdirs==4.9.2",
"pluggy==1.6.0",
"smmap==5.0.2",
- "tomli==2.2.1; python_version < '3.11'",
- "trove-classifiers==2025.9.9.12",
+ "tomli==2.4.0; python_version < '3.11'",
+ "trove-classifiers==2026.1.14.14",
+ "typing-extensions==4.15.0; python_version < '3.11'",
+ "virtualenv==20.39.1",
]
build-backend = "hatchling.build"