scour/Makefile
Eduard Braun 8ac344daf2 Update Makefile
- add `make` target to run unittests
- add a convenience `check` target (that runs unittests and flake8 for now)
- remove `test_error_on_flowtext` target (we have unittests for that now)
2016-09-17 17:09:35 +02:00

39 lines
No EOL
631 B
Makefile

all: clean install
install:
python setup.py install
clean:
rm -rf build
rm -rf dist
rm -rf scour.egg-info
rm -rf .tox
rm -f .coverage*
rm -rf htmlcov
find . -name "*.pyc" -type f -exec rm -f {} \;
find . -name "*__pycache__" -type d -prune -exec rm -rf {} \;
publish: clean
python setup.py register
python setup.py sdist upload
check: test flake8
test:
python testscour.py
test_version:
PYTHONPATH=. python -m scour.scour --version
test_help:
PYTHONPATH=. python -m scour.scour --help
flake8:
flake8 --max-line-length=119
coverage:
coverage run --source=scour testscour.py
coverage html
coverage report