File tree Expand file tree Collapse file tree 11 files changed +36
-33
lines changed Expand file tree Collapse file tree 11 files changed +36
-33
lines changed Original file line number Diff line number Diff line change @@ -16,12 +16,12 @@ jobs:
16
16
17
17
steps :
18
18
- name : Checkout
19
- uses : actions/checkout@v3
19
+ uses : actions/checkout@v4
20
20
21
- - name : Setup Python 3.9
22
- uses : actions/setup-python@v4
21
+ - name : Setup Python 3.11
22
+ uses : actions/setup-python@v5
23
23
with :
24
- python-version : 3.9
24
+ python-version : 3.11
25
25
26
26
- name : Upgrade Setuptools
27
27
run : pip install --upgrade setuptools wheel
Original file line number Diff line number Diff line change @@ -16,12 +16,12 @@ jobs:
16
16
17
17
steps :
18
18
- name : Checkout
19
- uses : actions/checkout@v3
19
+ uses : actions/checkout@v4
20
20
21
21
- name : Setup Python
22
- uses : actions/setup-python@v4
22
+ uses : actions/setup-python@v5
23
23
with :
24
- python-version : " 3.10 "
24
+ python-version : " 3.11 "
25
25
26
26
- name : Upgrade Setuptools
27
27
run : pip install --upgrade setuptools wheel
Original file line number Diff line number Diff line change @@ -21,10 +21,10 @@ jobs:
21
21
22
22
steps :
23
23
- name : Checkout
24
- uses : actions/checkout@v3
24
+ uses : actions/checkout@v4
25
25
26
26
- name : Setup Python 3.11
27
- uses : actions/setup-python@v4
27
+ uses : actions/setup-python@v5
28
28
with :
29
29
python-version : ' 3.11'
30
30
Original file line number Diff line number Diff line change @@ -26,16 +26,17 @@ jobs:
26
26
- ' 3.9'
27
27
- ' 3.10'
28
28
- ' 3.11'
29
+ - ' 3.12'
29
30
clickhouse-version :
30
- - ' 23.3'
31
31
- ' 23.8'
32
- - ' 23.9'
33
- - ' 23.10'
32
+ - ' 24.1'
33
+ - ' 24.2'
34
+ - ' 24.3'
34
35
- latest
35
36
36
37
steps :
37
38
- name : Checkout
38
- uses : actions/checkout@v3
39
+ uses : actions/checkout@v4
39
40
40
41
- name : Set environment variables
41
42
if : ${{ matrix.clickhouse-version == '22.3' }}
49
50
run : REPLICA_NUM=1 docker-compose -f ${{ github.workspace }}/tests/integration/docker-compose.yml up -d
50
51
51
52
- name : Setup Python ${{ matrix.python-version }}
52
- uses : actions/setup-python@v4
53
+ uses : actions/setup-python@v5
53
54
with :
54
55
python-version : ${{ matrix.python-version }}
55
56
Original file line number Diff line number Diff line change
1
+ ### Release [ 1.7.5] , 2024-04-02
2
+ #### Bug Fixes
3
+ - Requirements and tests upgraded to include Python 3.12. Closes https://github.com/ClickHouse/dbt-clickhouse/issues/264
4
+ - Model settings were not working correctly for customer materializations. Thanks to original dbt-clickhouse [ silentsokolov] ( https://github.com/silentsokolov )
5
+ for the PR!
6
+
1
7
### Release [ 1.7.4] , 2024-03-23
2
8
#### Improvement
3
9
- Adds support for materializing ClickHouse dictionaries. Thanks to [ Rory Sawyer] ( https://github.com/SoryRawyer ) for the contribution!
Original file line number Diff line number Diff line change 1
1
# Check style and linting
2
- .PHONY : check-black check-isort check-flake8 check- mypy lint
2
+ .PHONY : check-black check-isort check-mypy lint
3
3
4
4
check-black :
5
5
@echo " --> Running black checks"
@@ -9,10 +9,6 @@ check-isort:
9
9
@echo " --> Running isort checks"
10
10
@isort --check-only .
11
11
12
- check-flake8 :
13
- @echo " --> Running flake8 checks"
14
- @flake8 .
15
-
16
12
check-mypy :
17
13
@echo " --> Running mypy checks"
18
14
@mypy --exclude dbt/adapters/clickhouse/__init__.py --exclude conftest.py .
@@ -21,7 +17,7 @@ check-yamllint:
21
17
@echo " --> Running yamllint checks"
22
18
@yamllint dbt tests .github
23
19
24
- lint : check-black check-isort check-flake8 check- mypy check-yamllint
20
+ lint : check-black check-isort check-mypy check-yamllint
25
21
26
22
# Format code
27
23
.PHONY : fmt
Original file line number Diff line number Diff line change 1
- version = '1.7.4 '
1
+ version = '1.7.5 '
Original file line number Diff line number Diff line change @@ -53,20 +53,20 @@ def get_db_client(credentials: ClickHouseCredentials):
53
53
from dbt .adapters .clickhouse .nativeclient import ChNativeClient
54
54
55
55
return ChNativeClient (credentials )
56
- except ImportError :
56
+ except ImportError as ex :
57
57
raise FailedToConnectError (
58
58
'Native adapter required but package clickhouse-driver is not installed'
59
- )
59
+ ) from ex
60
60
try :
61
61
import clickhouse_connect # noqa
62
62
63
63
from dbt .adapters .clickhouse .httpclient import ChHttpClient
64
64
65
65
return ChHttpClient (credentials )
66
- except ImportError :
66
+ except ImportError as ex :
67
67
raise FailedToConnectError (
68
68
'HTTP adapter required but package clickhouse-connect is not installed'
69
- )
69
+ ) from ex
70
70
71
71
72
72
class ChRetryableException (Exception ):
Original file line number Diff line number Diff line change 1
- dbt-core~=1.7.3
2
- clickhouse-connect>=0.6.22
3
- clickhouse-driver>=0.2.6
1
+ dbt-core~=1.7.11
2
+ clickhouse-connect>=0.7.6
3
+ clickhouse-driver>=0.2.7
4
4
pytest>=7.2.0
5
5
pytest-dotenv==0.5.2
6
- dbt-tests-adapter~=1.7.3
6
+ dbt-tests-adapter~=1.7.11
7
7
black==24.3.0
8
8
isort==5.10.1
9
9
mypy==0.991
10
10
yamllint==1.26.3
11
- flake8==4.0.1
12
11
types-requests==2.27.29
13
12
agate~=1.7.1
14
13
requests~=2.27.1
15
- setuptools~=65.3 .0
16
- types-setuptools==67.1.0 .0
14
+ setuptools>=69.2 .0
15
+ types-setuptools>=69.2 .0
Original file line number Diff line number Diff line change 1
1
[tool .black ]
2
2
line-length = 100
3
3
skip-string-normalization = true
4
- target-version = [' py310' , ' py311' ]
4
+ target-version = [' py310' , ' py311' , ' py312 ' ]
5
5
exclude = ' (\.eggs|\.git|\.mypy_cache|\.venv|venv|env|_build|build|build|dist|)'
6
6
7
7
[tool .isort ]
Original file line number Diff line number Diff line change @@ -57,6 +57,7 @@ def _dbt_clickhouse_version():
57
57
f'dbt-core~={ dbt_version } ' ,
58
58
'clickhouse-connect>=0.6.22' ,
59
59
'clickhouse-driver>=0.2.6' ,
60
+ 'setuptools>=0.69' ,
60
61
],
61
62
python_requires = ">=3.8" ,
62
63
platforms = 'any' ,
You can’t perform that action at this time.
0 commit comments