Skip to content

Commit

Permalink
Added support to alpha, beta, RC etc. marks in the version string (#138)
Browse files Browse the repository at this point in the history
* Added support to alpha, beta, RC etc. marks in the version string

* Bumping version from 1.0.0a6 to 1.0.0a7
  • Loading branch information
Nusnus authored Jan 2, 2024
1 parent 49d3847 commit 7f1114c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ description = "Pytest plugin for Celery"
homepage = "https://github.com/celery/pytest-celery"
license = "BSD"
name = "pytest-celery"
version = "1.0.0a6"
version = "1.0.0a7"

[tool.poetry_bumpversion.file."src/pytest_celery/__init__.py"]

Expand Down
4 changes: 2 additions & 2 deletions src/pytest_celery/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
# flake8: noqa


__version__ = "1.0.0a6" # pragma: no cover
__version__ = "1.0.0a7" # pragma: no cover


import re
Expand Down Expand Up @@ -49,7 +49,7 @@

# bumpversion can only search for {current_version}
# so we have to parse the version here.
match = re.match(r"(\d+)\.(\d+)\.(\d+)(.+)?", __version__)
match = re.match(r"(\d+)\.(\d+)\.(\d+)([a-zA-Z]+[0-9]*)?", __version__)
if match:
_temp = match.groups()
else:
Expand Down

0 comments on commit 7f1114c

Please sign in to comment.