This is an automated email from the ASF dual-hosted git repository.
vatsrahul1001 pushed a commit to branch v3-2-test
in repository https://gitbox.apache.org/repos/asf/airflow.git
commit 9fc7155d8ee8aa135b6977a6abdcb7be79cef47a
Author: github-actions[bot]
<41898282+github-actions[bot]@users.noreply.github.com>
AuthorDate: Wed Apr 22 01:36:44 2026 +0200
[v3-2-test] Cap airflow-ctl httpx dependency below 1.0 (#65607) (#65631)
httpx 1.0 (currently 1.0.dev3 on PyPI) is a ground-up API rewrite:
the entire exception hierarchy (HTTPStatusError, RequestError,
ConnectError, ReadError, TimeoutException, ...) was removed and
client/transport/auth interfaces were redesigned. airflow-ctl today
uses httpx.HTTPStatusError, httpx.ConnectError, AsyncClient, and
Response.raise_for_status() throughout api/client.py and
api/operations.py, so pre-release httpx 1.x breaks import-time
(ModuleNotFoundError / AttributeError) and the tool fails to start.
Cap to <1.0 so users who pass --pre / --prerelease=allow do not
accidentally pull the rewrite. The full migration to httpx 1.x is
tracked at https://github.com/apache/airflow/issues/65609 and the
cap carries a comment pointing at that URL so the link survives
after this PR merges.
(cherry picked from commit e16871edab909bc7d682b823ce63f837fa06bb4a)
Co-authored-by: Jarek Potiuk <[email protected]>
---
airflow-ctl/pyproject.toml | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/airflow-ctl/pyproject.toml b/airflow-ctl/pyproject.toml
index 9bd59aaa7ec..476216f10bb 100644
--- a/airflow-ctl/pyproject.toml
+++ b/airflow-ctl/pyproject.toml
@@ -29,7 +29,9 @@ requires-python = ">=3.10,!=3.15"
dependencies = [
# TODO there could be still missing deps such as airflow-core
"argcomplete>=1.10",
- "httpx>=0.27.0",
+ # Remove the <1.0 cap after migrating to httpx 1.x (ground-up API rewrite
— no HTTPStatusError etc.);
+ # tracked at https://github.com/apache/airflow/issues/65609
+ "httpx>=0.27.0,<1.0",
"keyring>=25.7.0",
"lazy-object-proxy>=1.2.0",
"methodtools>=0.4.7",