File: Makefile

package info (click to toggle)
python-influxdb-client 1.40.0-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 7,216 kB
  • sloc: python: 60,236; sh: 64; makefile: 53
file content (36 lines) | stat: -rw-r--r-- 851 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
.PHONY: all
all: help

.PHONY: clean
clean:
	rm -f .coverage coverage.xml writer.pickle
	rm -rf .pytest_cache build dist htmlcov test-reports docs/_build

.PHONY: docs
docs:
	cd docs && python -m sphinx -T -E -b html -d _build/doctrees -D language=en . _build/html

.PHONY: help
help:
	@echo 'Makefile Targets'
	@echo '  clean      clean up local files'
	@echo '  docs       build docs locally'
	@echo '  help       print this help output'
	@echo '  install    install library as editable with all dependencies'
	@echo '  lint       execute flake8 against source code'
	@echo '  test       execute all tests'

.PHONY: install
install:
	pip install --editable ".[test,extra,ciso,async]"

.PHONY: lint
lint:
	flake8 setup.py influxdb_client/

.PHONY: test
test:
	pytest tests \
		--cov=./ \
		--cov-report html:htmlcov \
		--cov-report xml:coverage.xml