File tree Expand file tree Collapse file tree 2 files changed +5
-11
lines changed Expand file tree Collapse file tree 2 files changed +5
-11
lines changed Original file line number Diff line number Diff line change 1- version = '1.1.2 '
1+ version = '1.2.0a1 '
Original file line number Diff line number Diff line change @@ -15,14 +15,9 @@ def _get_plugin_version_dict():
1515 )
1616 _semver = r'''(?P<major>\d+)\.(?P<minor>\d+)\.(?P<patch>\d+)'''
1717
18- # not sure why this works in dbt-snowflake:
19- # it causes setuptools to populate prekind and pre with 'None' strings
20- # so we just don't parse it
18+ _pre = r"""((?P<prekind>a|b|rc)(?P<pre>\d+))?"""
19+ _version_pattern = fr"""version\s*=\s*["']{ _semver } { _pre } ["']"""
2120
22- #_pre = r'''((?P<prekind>a|b|rc)(?P<pre>\d+))?'''
23- #_version_pattern = fr'''version\s*=\s*["']{_semver}{_pre}["']'''
24-
25- _version_pattern = fr'''version\s*=\s*["']{ _semver } ["']'''
2621 with open (_version_path ) as f :
2722 match = re .search (_version_pattern , f .read ().strip ())
2823 if match is None :
@@ -32,8 +27,7 @@ def _get_plugin_version_dict():
3227
3328def _get_plugin_version ():
3429 parts = _get_plugin_version_dict ()
35- #return "{major}.{minor}.{patch}{prekind}{pre}".format(**parts)
36- return "{major}.{minor}.{patch}" .format (** parts )
30+ return "{major}.{minor}.{patch}{prekind}{pre}" .format (** parts )
3731
3832
3933package_name = "dbt-sqlite"
@@ -63,7 +57,7 @@ def _get_plugin_version():
6357 ]
6458 },
6559 install_requires = [
66- "dbt-core>=1.1 .0"
60+ "dbt-core>=1.2 .0"
6761 ],
6862 classifiers = [
6963 'Development Status :: 4 - Beta' ,
You can’t perform that action at this time.
0 commit comments