scour/Makefile
Niels Thykier a15acb3e4e
Rename testX.py to test_X.py to make py.test work out of the box (#181)
This rename makes py.test/py.test-3 find the test suite out of the
box.  Example command lines:

       # Running the test suite (optionally include "-v")
       $ py.test-3
       # Running the test suite with coverage enabled (and branch
       # coverage).
       $ py.test-3 --cov=scour --cov-report=html --cov-branch

Signed-off-by: Niels Thykier <niels@thykier.net>
2020-05-17 19:55:24 +02:00

39 lines
634 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 test_scour.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 test_scour.py
coverage html
coverage report