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

sbp pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/tooling-releases-client.git


The following commit(s) were added to refs/heads/main by this push:
     new a018803  Use the updated type for adding a key
a018803 is described below

commit a0188039cc72bd7c7f6c2851e5943a5b0446265a
Author: Sean B. Palmer <[email protected]>
AuthorDate: Sun Jul 20 11:46:11 2025 +0100

    Use the updated type for adding a key
---
 pyproject.toml              | 4 ++--
 src/atrclient/client.py     | 3 +--
 src/atrclient/models/api.py | 2 +-
 uv.lock                     | 4 ++--
 4 files changed, 6 insertions(+), 7 deletions(-)

diff --git a/pyproject.toml b/pyproject.toml
index 6099c84..d0c7d6e 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -11,7 +11,7 @@ build-backend = "hatchling.build"
 
 [project]
 name            = "apache-trusted-releases"
-version         = "0.20250720.0846"
+version         = "0.20250720.1045"
 description     = "ATR CLI and Python API"
 readme          = "README.md"
 requires-python = ">=3.13"
@@ -72,4 +72,4 @@ select = [
 ]
 
 [tool.uv]
-exclude-newer = "2025-07-20T08:46:00Z"
+exclude-newer = "2025-07-20T10:45:00Z"
diff --git a/src/atrclient/client.py b/src/atrclient/client.py
index 18f7233..b273c4d 100755
--- a/src/atrclient/client.py
+++ b/src/atrclient/client.py
@@ -634,8 +634,7 @@ def app_keys_add(path: str, committees: str = "", /) -> 
None:
         show_error_and_exit("Please configure asf.uid before adding a key.")
     keys_add_args = models.api.KeysAddArgs(asfuid=asf_uid, key=key, 
committees=selected_committee_names)
     keys_add = api_keys_add(keys_add_args)
-    for fingerprint in keys_add.fingerprints:
-        print(fingerprint)
+    print(keys_add.fingerprint)
 
 
 @APP_KEYS.command(name="delete", help="Delete an OpenPGP key.")
diff --git a/src/atrclient/models/api.py b/src/atrclient/models/api.py
index 377f0ab..127baf4 100644
--- a/src/atrclient/models/api.py
+++ b/src/atrclient/models/api.py
@@ -122,7 +122,7 @@ class KeysAddArgs(schema.Strict):
 class KeysAddResults(schema.Strict):
     endpoint: Literal["/keys/add"] = schema.Field(alias="endpoint")
     success: str
-    fingerprints: list[str]
+    fingerprint: str
 
 
 class KeysCommitteeResults(schema.Strict):
diff --git a/uv.lock b/uv.lock
index 8922ef4..0aa7d80 100644
--- a/uv.lock
+++ b/uv.lock
@@ -2,7 +2,7 @@ version = 1
 requires-python = ">=3.13"
 
 [options]
-exclude-newer = "2025-07-20T08:46:00Z"
+exclude-newer = "2025-07-20T10:45:00Z"
 
 [[package]]
 name = "aiohappyeyeballs"
@@ -83,7 +83,7 @@ wheels = [
 
 [[package]]
 name = "apache-trusted-releases"
-version = "0.20250720.846"
+version = "0.20250720.1045"
 source = { editable = "." }
 dependencies = [
     { name = "aiohttp" },


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to