]> git.proxmox.com Git - mirror_qemu.git/blame - python/Makefile
python: only check qemu/ subdir with flake8
[mirror_qemu.git] / python / Makefile
CommitLineData
205d7219 1.PHONY: help
6560379f
JS
2help:
3 @echo "python packaging help:"
4 @echo ""
6f84d726
JS
5 @echo "make check-pipenv:"
6 @echo " Run tests in pipenv's virtual environment."
7 @echo " These tests use the oldest dependencies."
8 @echo " Requires: Python 3.6 and pipenv."
9 @echo " Hint (Fedora): 'sudo dnf install python3.6 pipenv'"
6560379f 10 @echo ""
8c95d0fc
JS
11 @echo "make check-tox:"
12 @echo " Run tests against multiple python versions."
13 @echo " These tests use the newest dependencies."
14 @echo " Requires: Python 3.6 - 3.10, and tox."
15 @echo " Hint (Fedora): 'sudo dnf install python3-tox python3.10'"
16 @echo ""
6560379f
JS
17 @echo "make develop: Install deps for 'make check', and"
18 @echo " the qemu libs in editable/development mode."
19 @echo ""
20 @echo "make check: run linters using the current environment."
21 @echo ""
6f84d726
JS
22 @echo "make pipenv"
23 @echo " Creates pipenv's virtual environment (.venv)"
24 @echo ""
6560379f
JS
25 @echo "make clean: remove package build output."
26 @echo ""
27 @echo "make distclean: remove venv files, qemu package forwarder,"
28 @echo " built distribution files, and everything"
29 @echo " from 'make clean'."
30
205d7219 31.PHONY: pipenv
6f84d726 32pipenv: .venv
6560379f
JS
33.venv: Pipfile.lock
34 @PIPENV_VENV_IN_PROJECT=1 pipenv sync --dev --keep-outdated
35 @touch .venv
36
205d7219 37.PHONY: check-pipenv
6f84d726 38check-pipenv: pipenv
6560379f
JS
39 @pipenv run make check
40
205d7219 41.PHONY: develop
6560379f
JS
42develop:
43 pip3 install -e .[devel]
44
205d7219 45.PHONY: check
6560379f
JS
46check:
47 @avocado --config avocado.cfg run tests/
48
205d7219 49.PHONY: check-tox
3c8de38c
JS
50check-tox:
51 @tox
52
205d7219 53.PHONY: clean
6560379f
JS
54clean:
55 python3 setup.py clean --all
56
205d7219 57.PHONY: distclean
6560379f 58distclean: clean
3c8de38c 59 rm -rf qemu.egg-info/ .venv/ .tox/ dist/