forked from zifter/clickhouse-migrations
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
43 lines (35 loc) · 731 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
.PHONY: setup
setup:
python3 -m pip install tox==4.8.0
.PHONY: setup-dev
setup-dev:
pyenv install -s 3.7.12
pyenv install -s 3.8.6
pyenv install -s 3.9.9
pyenv install -s 3.10.7
pyenv install -s 3.11.0
pyenv install -s 3.12-dev
pyenv local 3.7.12 3.8.6 3.9.9 3.10.7 3.11.0 3.12-dev
python3 -m pip install tox==4.8.0
.PHONY: test
test:
tox
.PHONY: fix
fix:
tox -e isort
tox -e black
.PHONY: build
build:
tox -e build_wheel
.PHONY: publish
publish:
tox -e pypi_upload
.PHONY: open-coverage
open-coverage:
xdg-open htmlcov/index.html || open htmlcov/index.html
.PHONY: docker-compose-up
docker-compose-up:
cd dev && make configure up
.PHONY: docker-compose-down
docker-compose-down:
cd dev && make down clean