File: Makefile

package info (click to toggle)
python-aprslib 0.7.2-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 352 kB
  • sloc: python: 2,973; makefile: 216
file content (44 lines) | stat: -rw-r--r-- 799 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
40
41
42
43
44
# Makefile for APRS module

define HELPBODY
Available commands:

	make help       - this thing.
	make init       - install python dependancies
	make test       - run tests and coverage
	make pylint     - code analysis
	make build      - pylint + test

endef

verbosity=1

export HELPBODY
help:
	@echo "$$HELPBODY"

init:
	pip install -r dev_requirements.txt

test:
	rm -f .coverage aprslib/*.pyc tests/*.pyc
	PYTHONHASHSEED=0 pytest --tb=short --cov-config .coveragerc --cov=aprslib tests

pylint:
	pylint -r n -f colorized aprslib || true

build: pylint test docs

.FORCE:
docs: .FORCE
	$(MAKE) -C docs html

clean:
	rm -rf dist aprs.egg-info aprslib/*.pyc test/*.pyc .coverage

dist: clean
	python setup.py sdist
	python setup.py bdist_wheel --universal

upload: dist
	twine upload -r pypi dist/*