Skip to content

Commit 11086fa

Browse files
authored
Prepare release 0.9.0 (#34)
1. Update all dependecies 2. Add 3.13 python
1 parent dfe162f commit 11086fa

File tree

15 files changed

+90
-99
lines changed

15 files changed

+90
-99
lines changed

.github/workflows/ci.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@ jobs:
2525
# - Windows
2626
# - MacOs
2727
py:
28-
- "3.12.0"
28+
- "3.13"
29+
- "3.12"
2930
- "3.11"
3031
- "3.10"
3132
- "3.9"
@@ -43,7 +44,7 @@ jobs:
4344
version: '2.14.2' # the full version of `docker-compose` command
4445

4546
- name: Docker compose up
46-
run: make docker-compose-up
47+
run: make docker-compose-up-deamon
4748

4849
- name: Setup
4950
run: make setup

Makefile

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,9 @@ setup-dev:
99
pyenv install -s 3.9.9
1010
pyenv install -s 3.10.7
1111
pyenv install -s 3.11.0
12-
pyenv install -s 3.12-dev
13-
pyenv local 3.7.12 3.8.6 3.9.9 3.10.7 3.11.0 3.12-dev
12+
pyenv install -s 3.12.0
13+
pyenv install -s 3.13.0
14+
pyenv local 3.7.12 3.8.6 3.9.9 3.10.7 3.11.0 3.12.0 3.13.0
1415
python3 -m pip install tox==4.8.0
1516

1617
.PHONY: test
@@ -38,6 +39,10 @@ open-coverage:
3839
docker-compose-up:
3940
cd dev && make configure up
4041

42+
.PHONY: docker-compose-up-deamon
43+
docker-compose-up-deamon:
44+
cd dev && make configure up-deamon
45+
4146
.PHONY: docker-compose-down
4247
docker-compose-down:
4348
cd dev && make down clean
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
<clickhouse>
2+
<database_atomic_delay_before_drop_table_sec>1</database_atomic_delay_before_drop_table_sec>
3+
</clickhouse>

dev/config.xml renamed to dev/CH-TEMPLATE/config.xml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,17 @@
2828
<tmp_path>/var/lib/clickhouse/tmp/</tmp_path>
2929
<user_files_path>/var/lib/clickhouse/user_files/</user_files_path>
3030

31-
<users_config>users.xml</users_config>
3231
<default_profile>default</default_profile>
3332
<default_database>default</default_database>
3433
<timezone>Europe/Moscow</timezone>
3534
<mlock_executable>false</mlock_executable>
3635

36+
<user_directories>
37+
<users_xml>
38+
<path>/etc/clickhouse-server/default-users.xml</path>
39+
</users_xml>
40+
</user_directories>
41+
3742
<remote_servers>
3843
<company_cluster>
3944
<shard>
File renamed without changes.
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<clickhouse>
2+
<!-- Docs: <https://clickhouse.com/docs/operations/settings/settings_users/> -->
3+
<users>
4+
<default>
5+
<!-- User default is available only locally -->
6+
<networks>
7+
<ip>::1</ip>
8+
<ip>127.0.0.1</ip>
9+
</networks>
10+
</default>
11+
</users>
12+
</clickhouse>

dev/Makefile

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,26 @@
11
configure:
22
make clean
3-
mkdir -p clickhouse01 clickhouse02 clickhouse03 clickhouse04
4-
REPLICA=01 SHARD=01 envsubst < config.xml > clickhouse01/config.xml
5-
REPLICA=02 SHARD=01 envsubst < config.xml > clickhouse02/config.xml
6-
REPLICA=03 SHARD=02 envsubst < config.xml > clickhouse03/config.xml
7-
REPLICA=04 SHARD=02 envsubst < config.xml > clickhouse04/config.xml
8-
cp users.xml clickhouse01/users.xml
9-
cp users.xml clickhouse02/users.xml
10-
cp users.xml clickhouse03/users.xml
11-
cp users.xml clickhouse04/users.xml
3+
cp -r CH-TEMPLATE clickhouse01
4+
cp -r CH-TEMPLATE clickhouse02
5+
cp -r CH-TEMPLATE clickhouse03
6+
cp -r CH-TEMPLATE clickhouse04
7+
REPLICA=01 SHARD=01 envsubst < CH-TEMPLATE/config.xml > clickhouse01/config.xml
8+
REPLICA=02 SHARD=01 envsubst < CH-TEMPLATE/config.xml > clickhouse02/config.xml
9+
REPLICA=03 SHARD=02 envsubst < CH-TEMPLATE/config.xml > clickhouse03/config.xml
10+
REPLICA=04 SHARD=02 envsubst < CH-TEMPLATE/config.xml > clickhouse04/config.xml
1211

1312
up:
13+
docker-compose up
14+
15+
up-deamon:
1416
docker-compose up -d
1517

1618
start:
1719
docker-compose start
1820

1921
down:
20-
docker-compose down
22+
docker-compose down -v
23+
docker volume prune -f
2124

2225
clean:
2326
rm -rf clickhouse01 clickhouse02 clickhouse03 clickhouse04

dev/docker-compose.yaml

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
version: '3.5'
2-
31
networks:
42
clickhouse-network:
53
name: clickhouse-network
@@ -17,8 +15,7 @@ services:
1715
ipv4_address: 172.23.0.10
1816

1917
clickhouse01:
20-
image: yandex/clickhouse-server:20.4
21-
# image: altinity/clickhouse-server:23.8.11.29.altinitystable
18+
image: clickhouse/clickhouse-server:25.7.4
2219
container_name: clickhouse01
2320
hostname: clickhouse01
2421
networks:
@@ -33,8 +30,7 @@ services:
3330
- zookeeper
3431

3532
clickhouse02:
36-
image: yandex/clickhouse-server:20.4
37-
# image: altinity/clickhouse-server:23.8.11.29.altinitystable
33+
image: clickhouse/clickhouse-server:25.7.4
3834
container_name: clickhouse02
3935
hostname: clickhouse02
4036
networks:
@@ -46,8 +42,7 @@ services:
4642
- zookeeper
4743

4844
clickhouse03:
49-
image: yandex/clickhouse-server:20.4
50-
# image: altinity/clickhouse-server:23.8.11.29.altinitystable
45+
image: clickhouse/clickhouse-server:25.7.4
5146
container_name: clickhouse03
5247
hostname: clickhouse03
5348
networks:
@@ -59,8 +54,7 @@ services:
5954
- zookeeper
6055

6156
clickhouse04:
62-
image: yandex/clickhouse-server:20.4
63-
# image: altinity/clickhouse-server:23.8.11.29.altinitystable
57+
image: clickhouse/clickhouse-server:25.7.4
6458
container_name: clickhouse04
6559
hostname: clickhouse04
6660
networks:

pyproject.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,14 @@ classifiers = [
2323
"Programming Language :: Python :: 3.10",
2424
"Programming Language :: Python :: 3.11",
2525
"Programming Language :: Python :: 3.12",
26+
"Programming Language :: Python :: 3.12",
2627
]
2728
dependencies = [
2829
"clickhouse-driver>=0.2.2",
2930
]
3031
optional-dependencies.testing = [
31-
"pytest==7.4.1",
32-
"pytest-cov==4.1.0",
33-
"parameterized==0.9.0",
32+
"pytest==8.4.1",
33+
"pytest-cov==6.2.1",
3434
]
3535
dynamic =["version", "readme"]
3636

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""
22
Simple file-based migrations for clickhouse
33
"""
4-
__version__ = "0.8.1"
4+
5+
__version__ = "0.9.0"

0 commit comments

Comments
 (0)