From f67e8bb2df12390f07842b77fe1383e861a7405d Mon Sep 17 00:00:00 2001 From: masklinn Date: Thu, 5 Dec 2024 18:55:43 +0100 Subject: [PATCH] Add hook to do postN releases Turns out I did a booboo which was predictable, and if we want to track the versioning of uap-core we can't just start diverging. post-releases provide a path forwards, but was not initially predicted. Special case the existing stable releases in the script, might do something smarter eventually if necessary but... --- ua-parser-builtins/hatch_build.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ua-parser-builtins/hatch_build.py b/ua-parser-builtins/hatch_build.py index e92e973..1eac776 100644 --- a/ua-parser-builtins/hatch_build.py +++ b/ua-parser-builtins/hatch_build.py @@ -23,6 +23,9 @@ def update(self, metadata: dict[str, Any]) -> None: } }, ) + if v in ("0.15.0", "0.16.0", "0.18.0"): + v = f"{v}.post1" + metadata["version"] = v