Skip to content

Commit ef350a4

Browse files
authored
Release 1 7 5 (#265)
* Release 1.7.5 housekeeping * Upgrade setuptools requirement for clickhouse_driver install * Remove flake8 checks for the moment * Update workflow actions * Fix black comma
1 parent 0c44464 commit ef350a4

File tree

11 files changed

+36
-33
lines changed

11 files changed

+36
-33
lines changed

.github/workflows/lint.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff 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

.github/workflows/pypi.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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

.github/workflows/test_cloud.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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

.github/workflows/test_matrix.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff 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' }}
@@ -49,7 +50,7 @@ jobs:
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

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
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!

Makefile

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
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

44
check-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-
1612
check-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
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
version = '1.7.4'
1+
version = '1.7.5'

dbt/adapters/clickhouse/dbclient.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff 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

7272
class ChRetryableException(Exception):

dev_requirements.txt

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,15 @@
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
44
pytest>=7.2.0
55
pytest-dotenv==0.5.2
6-
dbt-tests-adapter~=1.7.3
6+
dbt-tests-adapter~=1.7.11
77
black==24.3.0
88
isort==5.10.1
99
mypy==0.991
1010
yamllint==1.26.3
11-
flake8==4.0.1
1211
types-requests==2.27.29
1312
agate~=1.7.1
1413
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

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[tool.black]
22
line-length = 100
33
skip-string-normalization = true
4-
target-version = ['py310', 'py311']
4+
target-version = ['py310', 'py311', 'py312']
55
exclude = '(\.eggs|\.git|\.mypy_cache|\.venv|venv|env|_build|build|build|dist|)'
66

77
[tool.isort]

setup.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ def _dbt_clickhouse_version():
5757
f'dbt-core~={dbt_version}',
5858
'clickhouse-connect>=0.6.22',
5959
'clickhouse-driver>=0.2.6',
60+
'setuptools>=0.69',
6061
],
6162
python_requires=">=3.8",
6263
platforms='any',

0 commit comments

Comments
 (0)