You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by po...@apache.org on 2026/04/21 23:36:51 UTC

(airflow) branch v3-2-test updated: [v3-2-test] Cap airflow-ctl httpx dependency below 1.0 (#65607) (#65631)

This is an automated email from the ASF dual-hosted git repository.

potiuk pushed a commit to branch v3-2-test
in repository https://gitbox.apache.org/repos/asf/airflow.git


The following commit(s) were added to refs/heads/v3-2-test by this push:
     new 843fe7f89c9 [v3-2-test] Cap airflow-ctl httpx dependency below 1.0 (#65607) (#65631)
843fe7f89c9 is described below

commit 843fe7f89c9bfcece8e21cc5b9d07e30466bcdcb
Author: github-actions[bot] <41...@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 <ja...@potiuk.com>
---
 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",