From 1a7edd5e4344d927333cd6d5306158f33c6814f9 Mon Sep 17 00:00:00 2001 From: SebastianMorawiec <108305907+SebastianMorawiec@users.noreply.github.com> Date: Mon, 13 May 2024 16:09:22 +0200 Subject: [PATCH] Int: fix regex matching pattern in pyproject.toml (#406) # The problem Regex of version matching didnt catch pre-release tag versions # This PR's solution Correct regex expression # Checklist _Check that this PR satisfies the following items:_ - [x] Tests have been added for new features/changed behavior (if no new features have been added, check the box). - [x] The [changelog file](CHANGELOG.md) has been updated with a user-readable description of the changes (if the change isn't visible to the user in any way, check the box). - [x] The PR's title is prefixed with `[!]:` - [x] The PR is linked to a JIRA ticket (if there's no suitable ticket, check the box). --- projects/orquestra-sdk/pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/projects/orquestra-sdk/pyproject.toml b/projects/orquestra-sdk/pyproject.toml index 4f453a110..a0b00df31 100644 --- a/projects/orquestra-sdk/pyproject.toml +++ b/projects/orquestra-sdk/pyproject.toml @@ -135,7 +135,7 @@ packages = ["src/orquestra"] [tool.hatch.version] source = "vcs" -tag-pattern = "^(?Porquestra-sdk-)(?P[vV]?\\d+\\.\\d+\\.\\d+)(?P.*)?$" +tag-pattern = "^(?Porquestra-sdk-)(?P[vV]?\\d+(?:\\.\\d+){0,2}[^\\+]*)(?:\\+.*)?$" [tool.hatch.version.raw-options] root = "../.."