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: