Skip to content

Commit

Permalink
Some usefull make commands
Browse files Browse the repository at this point in the history
  • Loading branch information
maximdanilchenko committed Nov 9, 2023
1 parent b4314a1 commit 45bbc71
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,22 +2,29 @@ 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:
isort --check --diff
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

0 comments on commit 45bbc71

Please sign in to comment.