Skip to content

Commit 7f1114c

Browse files
authored
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
1 parent 49d3847 commit 7f1114c

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ description = "Pytest plugin for Celery"
6161
homepage = "https://github.com/celery/pytest-celery"
6262
license = "BSD"
6363
name = "pytest-celery"
64-
version = "1.0.0a6"
64+
version = "1.0.0a7"
6565

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

src/pytest_celery/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
# flake8: noqa
66

77

8-
__version__ = "1.0.0a6" # pragma: no cover
8+
__version__ = "1.0.0a7" # pragma: no cover
99

1010

1111
import re
@@ -49,7 +49,7 @@
4949

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

0 commit comments

Comments
 (0)