Skip to content

Commit

Permalink
Int: fix regex matching pattern in pyproject.toml (#406)
Browse files Browse the repository at this point in the history
# 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
`<feat/fix/chore/imp[rovement]/int[ernal]/docs>[!]:`
- [x] The PR is linked to a JIRA ticket (if there's no suitable ticket,
check the box).
  • Loading branch information
SebastianMorawiec authored May 13, 2024
1 parent 2e059f4 commit 1a7edd5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion projects/orquestra-sdk/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ packages = ["src/orquestra"]

[tool.hatch.version]
source = "vcs"
tag-pattern = "^(?P<prefix>orquestra-sdk-)(?P<version>[vV]?\\d+\\.\\d+\\.\\d+)(?P<suffix>.*)?$"
tag-pattern = "^(?P<prefix>orquestra-sdk-)(?P<version>[vV]?\\d+(?:\\.\\d+){0,2}[^\\+]*)(?:\\+.*)?$"

[tool.hatch.version.raw-options]
root = "../.."
Expand Down

0 comments on commit 1a7edd5

Please sign in to comment.