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

jedcunningham pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/airflow.git


The following commit(s) were added to refs/heads/main by this push:
     new a25a6bc8726 Resolve conflict with uv sync and update httpx, change 
name of the CLI name to airflowctl, remove print (#48041)
a25a6bc8726 is described below

commit a25a6bc8726144139f1909b4c1131282d554b2e8
Author: Bugra Ozturk <[email protected]>
AuthorDate: Fri Mar 21 05:11:08 2025 +0100

    Resolve conflict with uv sync and update httpx, change name of the CLI name 
to airflowctl, remove print (#48041)
---
 airflow-ctl/pyproject.toml                   | 2 +-
 airflow-ctl/src/airflowctl/api/client.py     | 3 +--
 airflow-ctl/src/airflowctl/ctl/cli_parser.py | 2 +-
 3 files changed, 3 insertions(+), 4 deletions(-)

diff --git a/airflow-ctl/pyproject.toml b/airflow-ctl/pyproject.toml
index 6c087baa63c..284a0794909 100644
--- a/airflow-ctl/pyproject.toml
+++ b/airflow-ctl/pyproject.toml
@@ -24,7 +24,7 @@ requires-python = ">=3.9, <3.13"
 dependencies = [
     # TODO there could be still missing deps such as airflow-core
     "argcomplete>=1.10",
-    "httpx>=0.25.0",
+    "httpx>=0.27.0",
     "keyring>=25.6.0",
     "lazy-object-proxy>=1.2.0",
     "methodtools>=0.4.7",
diff --git a/airflow-ctl/src/airflowctl/api/client.py 
b/airflow-ctl/src/airflowctl/api/client.py
index df5666fab79..6be8ab66473 100644
--- a/airflow-ctl/src/airflowctl/api/client.py
+++ b/airflow-ctl/src/airflowctl/api/client.py
@@ -145,12 +145,11 @@ class Client(httpx.Client):
 
     def __init__(self, *, base_url: str, token: str, **kwargs: Any):
         auth = BearerAuth(token)
-        print(f"token: {token}")
         kwargs["base_url"] = f"{base_url}/public"
         pyver = f"{'.'.join(map(str, sys.version_info[:3]))}"
         super().__init__(
             auth=auth,
-            headers={"user-agent": f"apache-airflow-cli/{version} 
(Python/{pyver})"},
+            headers={"user-agent": f"apache-airflow-ctl/{version} 
(Python/{pyver})"},
             event_hooks={"response": [raise_on_4xx_5xx], "request": 
[add_correlation_id]},
             **kwargs,
         )
diff --git a/airflow-ctl/src/airflowctl/ctl/cli_parser.py 
b/airflow-ctl/src/airflowctl/ctl/cli_parser.py
index 6fe65f9bad4..685d46322b4 100644
--- a/airflow-ctl/src/airflowctl/ctl/cli_parser.py
+++ b/airflow-ctl/src/airflowctl/ctl/cli_parser.py
@@ -101,7 +101,7 @@ class LazyRichHelpFormatter(RawTextRichHelpFormatter):
 @cache
 def get_parser(dag_parser: bool = False) -> argparse.ArgumentParser:
     """Create and returns command line argument parser."""
-    parser = DefaultHelpParser(prog="airflow", 
formatter_class=AirflowHelpFormatter)
+    parser = DefaultHelpParser(prog="airflowctl", 
formatter_class=AirflowHelpFormatter)
     subparsers = parser.add_subparsers(dest="subcommand", 
metavar="GROUP_OR_COMMAND")
     subparsers.required = True
 

Reply via email to