From 7f1114cb809d57374a6388f6d95f7e6953041dc7 Mon Sep 17 00:00:00 2001 From: Tomer Nosrati Date: Tue, 2 Jan 2024 23:55:34 +0200 Subject: [PATCH] Added support to alpha, beta, RC etc. marks in the version string (#138) * Added support to alpha, beta, RC etc. marks in the version string * Bumping version from 1.0.0a6 to 1.0.0a7 --- pyproject.toml | 2 +- src/pytest_celery/__init__.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 0eb16cfe..6f9986a0 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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"] diff --git a/src/pytest_celery/__init__.py b/src/pytest_celery/__init__.py index bc42b132..0e9a8dd1 100644 --- a/src/pytest_celery/__init__.py +++ b/src/pytest_celery/__init__.py @@ -5,7 +5,7 @@ # flake8: noqa -__version__ = "1.0.0a6" # pragma: no cover +__version__ = "1.0.0a7" # pragma: no cover import re @@ -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: