Skip to content

Commit

Permalink
bump to 1.2.0a1
Browse files Browse the repository at this point in the history
  • Loading branch information
codeforkjeff committed Aug 2, 2022
1 parent ef6c1db commit 10d032e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 11 deletions.
2 changes: 1 addition & 1 deletion dbt/adapters/sqlite/__version__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
version = '1.1.2'
version = '1.2.0a1'
14 changes: 4 additions & 10 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,9 @@ def _get_plugin_version_dict():
)
_semver = r'''(?P<major>\d+)\.(?P<minor>\d+)\.(?P<patch>\d+)'''

# not sure why this works in dbt-snowflake:
# it causes setuptools to populate prekind and pre with 'None' strings
# so we just don't parse it
_pre = r"""((?P<prekind>a|b|rc)(?P<pre>\d+))?"""
_version_pattern = fr"""version\s*=\s*["']{_semver}{_pre}["']"""

#_pre = r'''((?P<prekind>a|b|rc)(?P<pre>\d+))?'''
#_version_pattern = fr'''version\s*=\s*["']{_semver}{_pre}["']'''

_version_pattern = fr'''version\s*=\s*["']{_semver}["']'''
with open(_version_path) as f:
match = re.search(_version_pattern, f.read().strip())
if match is None:
Expand All @@ -32,8 +27,7 @@ def _get_plugin_version_dict():

def _get_plugin_version():
parts = _get_plugin_version_dict()
#return "{major}.{minor}.{patch}{prekind}{pre}".format(**parts)
return "{major}.{minor}.{patch}".format(**parts)
return "{major}.{minor}.{patch}{prekind}{pre}".format(**parts)


package_name = "dbt-sqlite"
Expand Down Expand Up @@ -63,7 +57,7 @@ def _get_plugin_version():
]
},
install_requires=[
"dbt-core>=1.1.0"
"dbt-core>=1.2.0"
],
classifiers=[
'Development Status :: 4 - Beta',
Expand Down

0 comments on commit 10d032e

Please sign in to comment.