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 f540940 Rename the tasks API interface f540940 is described below commit f540940116185aaf611dae513caea4926d9c5f7d Author: Sean B. Palmer <s...@miscoranda.com> AuthorDate: Tue Jul 29 15:14:20 2025 +0100 Rename the tasks API interface --- pyproject.toml | 4 ++-- src/atrclient/models/api.py | 10 +++++----- uv.lock | 4 ++-- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 6831840..82eec0a 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -11,7 +11,7 @@ build-backend = "hatchling.build" [project] name = "apache-trusted-releases" -version = "0.20250729.1358" +version = "0.20250729.1413" description = "ATR CLI and Python API" readme = "README.md" requires-python = ">=3.13" @@ -79,4 +79,4 @@ filterwarnings = [ ] [tool.uv] -exclude-newer = "2025-07-29T13:58:00Z" +exclude-newer = "2025-07-29T14:13:00Z" diff --git a/src/atrclient/models/api.py b/src/atrclient/models/api.py index 8a0b0a9..e50de9c 100644 --- a/src/atrclient/models/api.py +++ b/src/atrclient/models/api.py @@ -318,14 +318,14 @@ class SshKeysListResults(schema.Strict): @dataclasses.dataclass -class TasksQuery: +class TasksListQuery: limit: int = 20 offset: int = 0 status: str | None = None -class TasksResults(schema.Strict): - endpoint: Literal["/tasks"] = schema.Field(alias="endpoint") +class TasksListResults(schema.Strict): + endpoint: Literal["/tasks/list"] = schema.Field(alias="endpoint") data: Sequence[sql.Task] count: int @@ -402,7 +402,7 @@ Results = Annotated[ | SshKeyAddResults | SshKeyDeleteResults | SshKeysListResults - | TasksResults + | TasksListResults | UsersListResults | VoteResolveResults | VoteStartResults @@ -451,7 +451,7 @@ validate_signature_provenance = validator(SignatureProvenanceResults) validate_ssh_key_add = validator(SshKeyAddResults) validate_ssh_key_delete = validator(SshKeyDeleteResults) validate_ssh_keys_list = validator(SshKeysListResults) -validate_tasks = validator(TasksResults) +validate_tasks_list = validator(TasksListResults) validate_users_list = validator(UsersListResults) validate_vote_resolve = validator(VoteResolveResults) validate_vote_start = validator(VoteStartResults) diff --git a/uv.lock b/uv.lock index 8ecf92a..20c713f 100644 --- a/uv.lock +++ b/uv.lock @@ -2,7 +2,7 @@ version = 1 requires-python = ">=3.13" [options] -exclude-newer = "2025-07-29T13:58:00Z" +exclude-newer = "2025-07-29T14:13:00Z" [[package]] name = "aiohappyeyeballs" @@ -83,7 +83,7 @@ wheels = [ [[package]] name = "apache-trusted-releases" -version = "0.20250729.1358" +version = "0.20250729.1413" source = { editable = "." } dependencies = [ { name = "aiohttp" }, --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@tooling.apache.org For additional commands, e-mail: commits-h...@tooling.apache.org