diff --git a/setup.py b/setup.py index 625876e26..8b59ff221 100644 --- a/setup.py +++ b/setup.py @@ -33,8 +33,9 @@ def _get_plugin_version_dict(): _version_path = os.path.join(this_directory, "dbt", "adapters", "snowflake", "__version__.py") _semver = r"""(?P\d+)\.(?P\d+)\.(?P\d+)""" _pre = r"""((?Pa|b|rc)(?P
\d+))?"""
+    _build = r"""(\+build[0-9]+)?"""
     _nightly = r"""(\.(?P[a-z0-9]+)?)?"""
-    _version_pattern = rf"""version\s*=\s*["']{_semver}{_pre}{_nightly}["']"""
+    _version_pattern = rf"""version\s*=\s*["']{_semver}{_pre}{_build}{_nightly}["']"""
     with open(_version_path) as f:
         match = re.search(_version_pattern, f.read().strip())
         if match is None: