From 24547380ec2c679eced0301b324b4f211578e0ad Mon Sep 17 00:00:00 2001 From: Mila Page Date: Thu, 21 Mar 2024 01:25:16 -0700 Subject: [PATCH] Modify range of acceptable semvers to include a build tag. --- setup.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 067ca41b1..48339e7c0 100644 --- a/setup.py +++ b/setup.py @@ -31,7 +31,8 @@ def _get_plugin_version_dict(): _version_path = os.path.join(this_directory, "dbt", "adapters", "spark", "__version__.py") _semver = r"""(?P\d+)\.(?P\d+)\.(?P\d+)""" _pre = r"""((?Pa|b|rc)(?P
\d+))?"""
-    _version_pattern = rf"""version\s*=\s*["']{_semver}{_pre}["']"""
+    _build = r"""(\+build[0-9]+)?"""
+    _version_pattern = rf"""version\s*=\s*["']{_semver}{_pre}{_build}["']"""
     with open(_version_path) as f:
         match = re.search(_version_pattern, f.read().strip())
         if match is None: