0
0
mirror of https://github.com/wagtail/wagtail.git synced 2024-12-01 11:41:20 +01:00
wagtail/Makefile
Michael van Tellingen d5bdad1d15 Implement make develop to ease contributing to wagtail (#2709)
This installs wagtail as editable package in your current python env
including testing and docs extras. It also installs runs npm install
and generates the frontend files.
2016-06-14 10:39:45 +01:00

32 lines
638 B
Makefile

.PHONY: clean-pyc develop
help:
@echo "clean-pyc - remove Python file artifacts"
@echo "lint - check style with flake8"
@echo "test - run tests quickly with the default Python"
@echo "coverage - check code coverage quickly with the default Python"
clean-pyc:
find . -name '*.pyc' -exec rm -f {} +
find . -name '*.pyo' -exec rm -f {} +
find . -name '*~' -exec rm -f {} +
develop: clean-pyc
pip install -e .[testing,docs]
npm install && npm run build
lint:
flake8 wagtail
test:
python runtests.py
test-all:
tox
coverage:
coverage run --source wagtail setup.py
coverage report -m
coverage html
open htmlcov/index.html