Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.0a5"
version = "1.0.0a6"

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

Expand Down
8 changes: 6 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.0a5" # pragma: no cover
__version__ = "1.0.0a6" # pragma: no cover


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

# bumpversion can only search for {current_version}
# so we have to parse the version here.
_temp = re.match(r"(\d+)\.(\d+).(\d+)(.+)?", __version__).groups() # type: ignore
match = re.match(r"(\d+)\.(\d+)\.(\d+)(.+)?", __version__)
if match:
_temp = match.groups()
else:
raise ValueError(f"The version string '{__version__}' does not match the expected pattern.")
VERSION = version_info = version_info_t(int(_temp[0]), int(_temp[1]), int(_temp[2]), _temp[3] or "", "")
del _temp
del re