From e7fd38f01c90436c3e10f5884815499d37ae2f57 Mon Sep 17 00:00:00 2001 From: Mila Page Date: Wed, 20 Mar 2024 20:23:24 -0700 Subject: [PATCH] Add build to valid semver. --- setup.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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: