From f67e8bb2df12390f07842b77fe1383e861a7405d Mon Sep 17 00:00:00 2001 From: masklinn Date: Thu, 5 Dec 2024 18:55:43 +0100 Subject: [PATCH 1/2] 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 From 5dfc556bf5bcdf6f46171f93739ef6391c02d2dc Mon Sep 17 00:00:00 2001 From: masklinn Date: Wed, 4 Dec 2024 20:47:41 +0100 Subject: [PATCH 2/2] Remove dependency from ua-parser-builtins It's not super useful, and apparently it causes issues for some tools / workflows (TBF I was surprised pip was fine with it). Fixes #246 --- ua-parser-builtins/pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ua-parser-builtins/pyproject.toml b/ua-parser-builtins/pyproject.toml index db0da38..a9c6d3e 100644 --- a/ua-parser-builtins/pyproject.toml +++ b/ua-parser-builtins/pyproject.toml @@ -6,7 +6,7 @@ build-backend = "hatchling.build" name = "ua-parser-builtins" description = "Precompiled rules for User Agent Parser" readme = "README.md" -dependencies = ["ua-parser"] +dependencies = [] requires-python = ">=3.9" license = {text = "Apache 2.0"} urls = {repository = "https://github.com/ua-parser/uap-python"}