1 QEMU_VENV_DIR
=.dev-venv
6 @echo
"python packaging help:"
8 @echo
"make check-pipenv:"
9 @echo
" Run tests in pipenv's virtual environment."
10 @echo
" These tests use the oldest dependencies."
11 @echo
" Requires: Python 3.6 and pipenv."
12 @echo
" Hint (Fedora): 'sudo dnf install python3.6 pipenv'"
14 @echo
"make check-tox:"
15 @echo
" Run tests against multiple python versions."
16 @echo
" These tests use the newest dependencies."
17 @echo
" Requires: Python 3.6 - 3.10, and tox."
18 @echo
" Hint (Fedora): 'sudo dnf install python3-tox python3.10'"
19 @echo
" The variable QEMU_TOX_EXTRA_ARGS can be use to pass extra"
20 @echo
" arguments to tox".
22 @echo
"make check-dev:"
23 @echo
" Run tests in a venv against your default python3 version."
24 @echo
" These tests use the newest dependencies."
25 @echo
" Requires: Python 3.x"
28 @echo
" Run tests in your *current environment*."
29 @echo
" Performs no environment setup of any kind."
32 @echo
" Install deps needed for for 'make check',"
33 @echo
" and install the qemu package in editable mode."
34 @echo
" (Can be used in or outside of a venv.)"
37 @echo
" Creates pipenv's virtual environment (.venv)"
40 @echo
" Creates a simple venv for check-dev. ($(QEMU_VENV_DIR))"
43 @echo
" Remove package build output."
45 @echo
"make distclean:"
46 @echo
" remove pipenv/venv files, qemu package forwarder,"
47 @echo
" built distribution files, and everything from 'make clean'."
49 @echo
-e
"Have a nice day ^_^\n"
54 @PIPENV_VENV_IN_PROJECT
=1 pipenv sync
--dev
--keep-outdated
60 @pipenv run make
check
63 dev-venv
: $(QEMU_VENV_DIR
) $(QEMU_VENV_DIR
)/bin
/activate
64 $(QEMU_VENV_DIR
) $(QEMU_VENV_DIR
)/bin
/activate
: setup.cfg
65 @echo
"VENV $(QEMU_VENV_DIR)"
66 @python3
-m venv
$(QEMU_VENV_DIR
)
68 echo
"ACTIVATE $(QEMU_VENV_DIR)"; \
69 .
$(QEMU_VENV_DIR
)/bin
/activate
; \
70 echo
"INSTALL qemu[devel] $(QEMU_VENV_DIR)"; \
71 pip
install --disable-pip-version-check \
72 "setuptools<60.0.0" 1>/dev
/null
; \
73 make develop
1>/dev
/null
; \
75 @touch
$(QEMU_VENV_DIR
)
80 echo
"ACTIVATE $(QEMU_VENV_DIR)"; \
81 .
$(QEMU_VENV_DIR
)/bin
/activate
; \
87 pip3
install --disable-pip-version-check
-e .
[devel
]
91 @avocado
--config avocado.cfg run tests
/
95 @tox
$(QEMU_TOX_EXTRA_ARGS
)
97 .PHONY
: check-coverage
99 @coverage run
-m avocado
--config avocado.cfg run tests
/*.py
106 python3 setup.py
clean --all
111 rm -rf qemu.egg-info
/ .venv
/ .tox
/ $(QEMU_VENV_DIR
) dist/
112 rm -f .coverage .coverage.
*