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:
1616
1717 steps :
1818 - name : Checkout
19- uses : actions/checkout@v3
19+ uses : actions/checkout@v4
2020
21- - name : Setup Python 3.9
22- uses : actions/setup-python@v4
21+ - name : Setup Python 3.11
22+ uses : actions/setup-python@v5
2323 with :
24- python-version : 3.9
24+ python-version : 3.11
2525
2626 - name : Upgrade Setuptools
2727 run : pip install --upgrade setuptools wheel
Original file line number Diff line number Diff line change @@ -16,12 +16,12 @@ jobs:
1616
1717 steps :
1818 - name : Checkout
19- uses : actions/checkout@v3
19+ uses : actions/checkout@v4
2020
2121 - name : Setup Python
22- uses : actions/setup-python@v4
22+ uses : actions/setup-python@v5
2323 with :
24- python-version : " 3.10 "
24+ python-version : " 3.11 "
2525
2626 - name : Upgrade Setuptools
2727 run : pip install --upgrade setuptools wheel
Original file line number Diff line number Diff line change @@ -21,10 +21,10 @@ jobs:
2121
2222 steps :
2323 - name : Checkout
24- uses : actions/checkout@v3
24+ uses : actions/checkout@v4
2525
2626 - name : Setup Python 3.11
27- uses : actions/setup-python@v4
27+ uses : actions/setup-python@v5
2828 with :
2929 python-version : ' 3.11'
3030
Original file line number Diff line number Diff line change @@ -26,16 +26,17 @@ jobs:
2626 - ' 3.9'
2727 - ' 3.10'
2828 - ' 3.11'
29+ - ' 3.12'
2930 clickhouse-version :
30- - ' 23.3'
3131 - ' 23.8'
32- - ' 23.9'
33- - ' 23.10'
32+ - ' 24.1'
33+ - ' 24.2'
34+ - ' 24.3'
3435 - latest
3536
3637 steps :
3738 - name : Checkout
38- uses : actions/checkout@v3
39+ uses : actions/checkout@v4
3940
4041 - name : Set environment variables
4142 if : ${{ matrix.clickhouse-version == '22.3' }}
4950 run : REPLICA_NUM=1 docker-compose -f ${{ github.workspace }}/tests/integration/docker-compose.yml up -d
5051
5152 - name : Setup Python ${{ matrix.python-version }}
52- uses : actions/setup-python@v4
53+ uses : actions/setup-python@v5
5354 with :
5455 python-version : ${{ matrix.python-version }}
5556
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+
17### Release [ 1.7.4] , 2024-03-23
28#### Improvement
39- 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 11# Check style and linting
2- .PHONY : check-black check-isort check-flake8 check- mypy lint
2+ .PHONY : check-black check-isort check-mypy lint
33
44check-black :
55 @echo " --> Running black checks"
@@ -9,10 +9,6 @@ check-isort:
99 @echo " --> Running isort checks"
1010 @isort --check-only .
1111
12- check-flake8 :
13- @echo " --> Running flake8 checks"
14- @flake8 .
15-
1612check-mypy :
1713 @echo " --> Running mypy checks"
1814 @mypy --exclude dbt/adapters/clickhouse/__init__.py --exclude conftest.py .
@@ -21,7 +17,7 @@ check-yamllint:
2117 @echo " --> Running yamllint checks"
2218 @yamllint dbt tests .github
2319
24- lint : check-black check-isort check-flake8 check- mypy check-yamllint
20+ lint : check-black check-isort check-mypy check-yamllint
2521
2622# Format code
2723.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):
5353 from dbt .adapters .clickhouse .nativeclient import ChNativeClient
5454
5555 return ChNativeClient (credentials )
56- except ImportError :
56+ except ImportError as ex :
5757 raise FailedToConnectError (
5858 'Native adapter required but package clickhouse-driver is not installed'
59- )
59+ ) from ex
6060 try :
6161 import clickhouse_connect # noqa
6262
6363 from dbt .adapters .clickhouse .httpclient import ChHttpClient
6464
6565 return ChHttpClient (credentials )
66- except ImportError :
66+ except ImportError as ex :
6767 raise FailedToConnectError (
6868 'HTTP adapter required but package clickhouse-connect is not installed'
69- )
69+ ) from ex
7070
7171
7272class 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
44pytest>=7.2.0
55pytest-dotenv==0.5.2
6- dbt-tests-adapter~=1.7.3
6+ dbt-tests-adapter~=1.7.11
77black==24.3.0
88isort==5.10.1
99mypy==0.991
1010yamllint==1.26.3
11- flake8==4.0.1
1211types-requests==2.27.29
1312agate~=1.7.1
1413requests~=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 11[tool .black ]
22line-length = 100
33skip-string-normalization = true
4- target-version = [' py310' , ' py311' ]
4+ target-version = [' py310' , ' py311' , ' py312 ' ]
55exclude = ' (\.eggs|\.git|\.mypy_cache|\.venv|venv|env|_build|build|build|dist|)'
66
77[tool .isort ]
You can’t perform that action at this time.
0 commit comments