From 45bbc713dd227b92d15f9d1ad78fa3abed965de2 Mon Sep 17 00:00:00 2001 From: maximdanilchenko Date: Thu, 9 Nov 2023 17:25:59 +0200 Subject: [PATCH] Some usefull make commands --- Makefile | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index bfebb42..f8d0577 100644 --- a/Makefile +++ b/Makefile @@ -2,14 +2,14 @@ format: isort . black . -test: +test: install-dev-requirements docker-clickhouse pytest tests.py --cov aiochclient -x -vv tests: test upload: build_cython if [ -d dist ]; then rm -Rf dist; fi - python setup.py sdist + python3 setup.py sdist twine upload dist/* check_format: @@ -17,7 +17,14 @@ check_format: black . --check --diff --target-version py36 build_cython: - python setup.py build_ext --inplace + python3 setup.py build_ext --inplace html_types: cython -a aiochclient/_types.pyx + +docker-clickhouse: + docker pull yandex/clickhouse-server + docker start cs || docker run -p 8123:8123 -d --name cs yandex/clickhouse-server + +install-dev-requirements: + pip install -r dev-requirements/dev-requirements-cython-ciso.txt --upgrade