-
Notifications
You must be signed in to change notification settings - Fork 18
/
Makefile
52 lines (38 loc) · 1.01 KB
/
Makefile
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
45
46
47
48
49
50
51
clean-pyc:
@find . -name '*.pyc' -exec rm --force {} +
@find . -name '*.pyo' -exec rm --force {} +
@find . -name '*~' -exec rm --force {} +
clean-build:
rm --force --recursive build/
rm --force --recursive dist/
rm --force --recursive __pycache__/
rm --force --recursive *.egg-info
lint:
poetry run black --target-version py37 ph5lt
poetry run pylint ph5lt
test: clean-pyc lint
poetry run coverage run -m pytest
# coverage report --include=ph5lt\/*
# python3 -m pytest
covreport:
poetry run coverage report --include=ph5lt\/* -m
run:
poetry run python3 -m ph5lt
update:
poetry update
build: clean-build lint
poetry build
package: build
poetry build
publishTest: package
poetry publish -r testpypi
# run outside of the venv/poetry
installTest:
pip3 install --index-url https://test.pypi.org/simple/ --extra-index-url https://pypi.org/simple pihole5-list-tool --upgrade
# run outside of the venv/poetry
uninstall:
pip3 uninstall pihole5-list-tool
publish: package
poetry publish
reqs:
poetry install