Skip to content

Commit 0a412f6

Browse files
authored
Release 1.2.2 (#104)
* 1.2.2 release * Fix version check to ignore patches.
1 parent f856b58 commit 0a412f6

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

Diff for: setup.py

+4-3
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,12 @@ def _dbt_clickhouse_version():
2626
description = '''The Clickhouse plugin for dbt (data build tool)'''
2727

2828
dbt_version = '1.2.1'
29+
dbt_minor = '.'.join(dbt_version.split('.')[0:2])
2930

30-
if not package_version.startswith(dbt_version):
31+
if not package_version.startswith(dbt_minor):
3132
raise ValueError(
3233
f'Invalid setup.py: package_version={package_version} must start with '
33-
f'dbt_version={dbt_version}'
34+
f'dbt_version={dbt_minor}'
3435
)
3536

3637

@@ -54,7 +55,7 @@ def _dbt_clickhouse_version():
5455
},
5556
install_requires=[
5657
f'dbt-core~={dbt_version}',
57-
'clickhouse-connect>=0.2.7',
58+
'clickhouse-connect>=0.2.10',
5859
'clickhouse-driver>=0.2.3',
5960
],
6061
python_requires=">=3.7",

0 commit comments

Comments
 (0)