From c8ce4ce5aaac33cb4ab8acae4ead3e671b317b44 Mon Sep 17 00:00:00 2001 From: link2xt Date: Fri, 24 Feb 2023 13:32:05 +0000 Subject: [PATCH] Switch to "vX.Y.Z" tagging scheme Previously we used tags like "1.109.0" and "py-1.109.0". Since Python bindings are always released at the same time as the core, it is easier to use a single tag for them. "v" prefix is added to make matching by "v*" easier in CI and scripts. --- CHANGELOG.md | 1 + python/pyproject.toml | 4 ++-- scripts/concourse/docs_wheels.yml | 2 +- scripts/set_core_version.py | 6 ++---- 4 files changed, 6 insertions(+), 7 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 0213cb803..890baf64d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,6 +11,7 @@ - Remove `Sql.get_conn()` interface in favor of `.call()` and `.transaction()`. #4055 - Updated provider database. - Disable DKIM-Checks again #4076 +- Switch from "X.Y.Z" and "py-X.Y.Z" to "vX.Y.Z" tags. #4089 ### Fixes - Start SQL transactions with IMMEDIATE behaviour rather than default DEFERRED one. #4063 diff --git a/python/pyproject.toml b/python/pyproject.toml index 227fb73d2..ce8dfaf5b 100644 --- a/python/pyproject.toml +++ b/python/pyproject.toml @@ -44,8 +44,8 @@ deltachat = [ [tool.setuptools_scm] root = ".." -tag_regex = '^(?Ppy-)?(?P[^\+]+)(?P.*)?$' -git_describe_command = "git describe --dirty --tags --long --match py-*.*" +tag_regex = '^(?Pv)?(?P[^\+]+)(?P.*)?$' +git_describe_command = "git describe --dirty --tags --long --match v*.*" [tool.black] line-length = 120 diff --git a/scripts/concourse/docs_wheels.yml b/scripts/concourse/docs_wheels.yml index bd2074d4b..efd57c561 100644 --- a/scripts/concourse/docs_wheels.yml +++ b/scripts/concourse/docs_wheels.yml @@ -12,7 +12,7 @@ resources: source: branch: master uri: https://github.com/deltachat/deltachat-core-rust.git - tag_filter: "py-*" + tag_filter: "v*" jobs: - name: doxygen diff --git a/scripts/set_core_version.py b/scripts/set_core_version.py index f3f29bbac..84444f8ef 100755 --- a/scripts/set_core_version.py +++ b/scripts/set_core_version.py @@ -115,10 +115,8 @@ def main(): print("after commit, on master make sure to: ") print("") - print(f" git tag -a {newversion}") - print(f" git push origin {newversion}") - print(f" git tag -a py-{newversion}") - print(f" git push origin py-{newversion}") + print(f" git tag -a v{newversion}") + print(f" git push origin v{newversion}") print("")