From 3066380b2b481441b5e17f5da9073db4067d1f49 Mon Sep 17 00:00:00 2001 From: Spencer McIntyre Date: Mon, 20 Jan 2025 12:24:21 -0500 Subject: [PATCH] Bump the version to 5.0.0-alpha --- lib/rule_engine/__init__.py | 2 +- setup.py | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/lib/rule_engine/__init__.py b/lib/rule_engine/__init__.py index 9060f76..b6e9468 100644 --- a/lib/rule_engine/__init__.py +++ b/lib/rule_engine/__init__.py @@ -30,7 +30,7 @@ # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. # -__version__ = '4.5.1' +__version__ = '5.0.0-alpha' from .engine import resolve_attribute from .engine import resolve_item diff --git a/setup.py b/setup.py index da100b3..58980f4 100755 --- a/setup.py +++ b/setup.py @@ -51,7 +51,11 @@ long_description = None with open(os.path.join(base_directory, 'lib', 'rule_engine', '__init__.py')) as file_h: - match = re.search(r'^__version__\s*=\s*([\'"])(?P\d+(\.\d+)*)\1$', file_h.read(), flags=re.MULTILINE) + match = re.search( + r'^__version__\s*=\s*([\'"])(?P\d+(\.\d+)*(-[a-zA-Z\d]+(\.[1-9][0-9]*)?)?)\1$', + file_h.read(), + flags=re.MULTILINE + ) if match is None: raise RuntimeError('Unable to find the version information') version = match.group('version')