File: Makefile

package info (click to toggle)
pyvlx 0.2.27-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 4,548 kB
  • sloc: python: 7,914; makefile: 39; sh: 5
file content (42 lines) | stat: -rw-r--r-- 925 bytes parent folder | download | duplicates (2)
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
40
41
42

all:
	@echo
	@echo "Available targets"
	@echo ""
	@echo "build           -- build python package"
	@echo ""
	@echo "pypi            -- upload package to pypi"
	@echo ""
	@echo "test            -- execute test suite"
	@echo ""
	@echo "pylint          -- run pylint tests"
	@echo ""
	@echo "pydocstyle      -- run pydocstyle tests"
	@echo ""
	@echo "coverage        -- create coverage report"
	@echo ""

test:
	PYTHONPATH="${PYTHONPATH}:/" python3 -m unittest discover -s test -p "*_test.py" -b

build:
	@python3 setup.py sdist
	@python3 setup.py egg_info

pypi:
	# python3 setup.py register -r pypi
	#@python3 setup.py sdist upload -r pypi
	@rm -f dist/*
	@python setup.py sdist
	@twine upload dist/*

pylint:
	@pylint --rcfile=.pylintrc pyvlx test/*.py *.py examples/*.py

pydocstyle:
	 @pydocstyle pyvlx test/*.py test/*.py *.py examples/*.py

coverage:
	py.test --cov-report html --cov pyvlx --verbose

.PHONY: test build