Skip to content

Commit d592642

Browse files
authored
Prepare for (pre) release: v1.0.0a9 (#140)
* Reverted version matching regex check * Bumping version from 1.0.0a8 to 1.0.0a9
1 parent b30bfcb commit d592642

File tree

2 files changed

+4
-8
lines changed

2 files changed

+4
-8
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.0a8"
64+
version = "1.0.0a9"
6565

6666
[tool.poetry_bumpversion.file."src/pytest_celery/__init__.py"]
6767
search = '__version__ = "{current_version}"'

src/pytest_celery/__init__.py

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

77

8-
__version__ = "1.0.0a8"
8+
__version__ = "1.0.0a9"
99

1010

1111
import re
@@ -47,14 +47,10 @@
4747
),
4848
)
4949

50+
5051
# bumpversion can only search for {current_version}
5152
# so we have to parse the version here.
52-
match = re.match(r"(\d+)\.(\d+)\.(\d+)(.+)?", __version__)
53-
if match:
54-
_temp = match.groups()
55-
else:
56-
# Comments are not allowed in the same line as the version string.
57-
raise ValueError(f"The version string '{__version__}' does not match the expected pattern.")
53+
_temp = re.match(r"(\d+)\.(\d+).(\d+)(.+)?", __version__).groups() # type: ignore
5854
VERSION = version_info = version_info_t(int(_temp[0]), int(_temp[1]), int(_temp[2]), _temp[3] or "", "")
5955
del _temp
6056
del re

0 commit comments

Comments
 (0)