File: Makefile

package info (click to toggle)
scour 0.38.2-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, sid
  • size: 1,072 kB
  • sloc: python: 5,157; makefile: 42; perl: 35; sh: 17
file content (39 lines) | stat: -rw-r--r-- 634 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
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