You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tooling.apache.org by sb...@apache.org on 2026/07/09 15:04:07 UTC
(tooling-releases-client) branch main updated: Do not require a revision number when announcing
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 44b0ac4 Do not require a revision number when announcing
44b0ac4 is described below
commit 44b0ac472fa5121491494d71690c0c5a07d6babc
Author: Sean B. Palmer <se...@miscoranda.com>
AuthorDate: Thu Jul 9 16:03:42 2026 +0100
Do not require a revision number when announcing
---
COMMANDS.md | 14 +++++++-------
pyproject.toml | 4 ++--
src/atrclient/client.py | 5 +++--
src/atrclient/models/api.py | 4 ++--
uv.lock | 4 ++--
5 files changed, 16 insertions(+), 15 deletions(-)
diff --git a/COMMANDS.md b/COMMANDS.md
index a54dfbd..8bb6eeb 100644
--- a/COMMANDS.md
+++ b/COMMANDS.md
@@ -35,19 +35,19 @@ Usage: atr COMMAND
## atr announce
```
-Usage: atr announce PROJECT VERSION REVISION MAILING-LIST [ARGS]
+Usage: atr announce --mailing-list STR [OPTIONS] PROJECT VERSION [ARGS]
Announce a release.
╭─ Arguments ──────────────────────────────────────────────────────────────────────────────────────────────────────────╮
-│ * PROJECT [required] │
-│ * VERSION [required] │
-│ * REVISION [required] │
+│ * PROJECT [required] │
+│ * VERSION [required] │
╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
╭─ Parameters ─────────────────────────────────────────────────────────────────────────────────────────────────────────╮
-│ * MAILING-LIST --mailing-list -m [required] │
-│ BODY --body -b │
-│ PATH-SUFFIX --path-suffix -p │
+│ REVISION --revision │
+│ * --mailing-list -m [required] │
+│ --body -b │
+│ --path-suffix -p │
╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
```
diff --git a/pyproject.toml b/pyproject.toml
index dbeee13..2c6e7fd 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -11,7 +11,7 @@ build-backend = "hatchling.build"
[project]
name = "apache-trusted-releases"
-version = "0.20260709.1448"
+version = "0.20260709.1503"
description = "ATR CLI and Python API"
readme = "README.md"
requires-python = ">=3.12"
@@ -87,4 +87,4 @@ filterwarnings = [
]
[tool.uv]
-exclude-newer = "2026-07-09T14:48:00Z"
+exclude-newer = "2026-07-09T15:03:00Z"
diff --git a/src/atrclient/client.py b/src/atrclient/client.py
index 6591435..e39b8b6 100755
--- a/src/atrclient/client.py
+++ b/src/atrclient/client.py
@@ -96,8 +96,9 @@ class ForceUnexpiredOpenPGPKey(pgpy.PGPKey):
def app_announce(
project: str,
version: str,
- revision: str,
/,
+ revision: str | None = None,
+ *,
mailing_list: Annotated[str, cyclopts.Parameter(alias="-m", name="--mailing-list")],
body: Annotated[str | None, cyclopts.Parameter(alias="-b", name="--body")] = None,
path_suffix: Annotated[str | None, cyclopts.Parameter(alias="-p", name="--path-suffix")] = None,
@@ -105,7 +106,7 @@ def app_announce(
announce_args = models.api.ReleaseAnnounceArgs(
project=models.safe.ProjectKey(project),
version=models.safe.VersionKey(version),
- revision=models.safe.RevisionNumber(revision),
+ revision=models.safe.RevisionNumber(revision) if revision else None,
email_to=mailing_list,
body=body or f"Release {project} {version} has been announced.",
path_suffix=models.safe.RelPath(path_suffix) if path_suffix else None,
diff --git a/src/atrclient/models/api.py b/src/atrclient/models/api.py
index 535acc1..9f412b8 100644
--- a/src/atrclient/models/api.py
+++ b/src/atrclient/models/api.py
@@ -624,7 +624,7 @@ class PublisherReleaseAnnounceArgs(schema.Strict):
publisher: str = schema.example("user")
jwt: str = schema.example("eyJhbGciOiJIUzI1[...]mMjLiuyu5CSpyHI=")
version: safe.VersionKey = schema.example("0.0.1")
- revision: safe.RevisionNumber = schema.example("00005")
+ revision: safe.RevisionNumber | None = schema.default_example(None, "00005")
email_to: str = schema.example("dev@example.apache.org")
body: str = schema.example("The Apache Example team is pleased to announce the release of Example 1.0.0...")
path_suffix: safe.OptionalRelPath = schema.example("example/1.0.0")
@@ -663,7 +663,7 @@ class PublisherVoteResolveResults(schema.Strict):
class ReleaseAnnounceArgs(schema.Strict):
project: safe.ProjectKey = schema.example("example")
version: safe.VersionKey = schema.example("1.0.0")
- revision: safe.RevisionNumber = schema.example("00005")
+ revision: safe.RevisionNumber | None = schema.default_example(None, "00005")
email_to: str = schema.example("dev@example.apache.org")
body: str = schema.example("The Apache Example team is pleased to announce the release of Example 1.0.0...")
path_suffix: safe.OptionalRelPath = schema.example("example/1.0.0")
diff --git a/uv.lock b/uv.lock
index f5a0270..cc45fd9 100644
--- a/uv.lock
+++ b/uv.lock
@@ -3,7 +3,7 @@ revision = 3
requires-python = ">=3.12"
[options]
-exclude-newer = "2026-07-09T14:48:00Z"
+exclude-newer = "2026-07-09T15:03:00Z"
[[package]]
name = "aiohappyeyeballs"
@@ -151,7 +151,7 @@ wheels = [
[[package]]
name = "apache-trusted-releases"
-version = "0.20260709.1448"
+version = "0.20260709.1503"
source = { editable = "." }
dependencies = [
{ name = "aiohttp" },
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@tooling.apache.org
For additional commands, e-mail: commits-help@tooling.apache.org