migra/Makefile

43 lines
601 B
Makefile
Raw Normal View History

2016-07-25 07:38:42 +03:00
.PHONY: docs
# test commands and arguments
tcommand = PYTHONPATH=. py.test -x
tmessy = -svv
targs = --cov-report term-missing --cov migra
pip:
pip install --upgrade pip
2017-05-16 12:57:05 +03:00
pip install --upgrade -r requirements.txt
2016-07-25 07:38:42 +03:00
tox:
tox tests
test:
$(tcommand) $(targs) tests
stest:
$(tcommand) $(tmessy) $(targs) tests
clean:
git clean -fXd
find . -name \*.pyc -delete
rm -rf .cache
docs:
2017-08-20 06:25:05 +03:00
cd docs && mkdocs build
2016-07-25 07:38:42 +03:00
2017-08-20 06:25:05 +03:00
docsserve:
cd docs && mkdocs serve
2016-07-25 07:38:42 +03:00
lint:
flake8 migra
flake8 tests
2017-08-20 06:25:05 +03:00
tidy: clean lint
2016-07-25 07:38:42 +03:00
2017-08-20 06:25:05 +03:00
all: tidy docs tox
2016-07-25 07:38:42 +03:00
publish:
2017-05-16 12:57:05 +03:00
python setup.py sdist bdist_wheel --universal
twine upload dist/*