From 2e3fd3a867be334f2a51df34e5deaf955c47d26f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Brunner?= Date: Thu, 8 Jun 2023 09:11:38 +0200 Subject: [PATCH] Publish a pre-release version of the next major version --- ci/config.yaml | 6 ++++++ pyproject.toml | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/ci/config.yaml b/ci/config.yaml index 5d04624ae..ffeec9c38 100644 --- a/ci/config.yaml +++ b/ci/config.yaml @@ -16,3 +16,9 @@ checks: - .*\.html isort: false prettier: false + +publish: + pypi: + versions: + - version_tag + - version_branch diff --git a/pyproject.toml b/pyproject.toml index a03460b46..f0d25bad6 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -169,7 +169,7 @@ vcs = "git" pattern = "^(?P\\d+(\\.\\d+)*)" format-jinja = """ {%- if env.get("VERSION_TYPE") == "version_branch" -%} -{{serialize_pep440(bump_version(base, 1 if env.get("IS_MASTER") == "TRUE" else 2), dev=distance)}} +{{serialize_pep440(bump_version(base, 0 if env.get("IS_MASTER") == "TRUE" else 2), dev=distance)}} {%- elif distance == 0 -%} {{serialize_pep440(base)}} {%- else -%}