1 QEMU_VENV_DIR
=.dev-venv
5 @echo
"python packaging help:"
7 @echo
"make check-pipenv:"
8 @echo
" Run tests in pipenv's virtual environment."
9 @echo
" These tests use the oldest dependencies."
10 @echo
" Requires: Python 3.6 and pipenv."
11 @echo
" Hint (Fedora): 'sudo dnf install python3.6 pipenv'"
13 @echo
"make check-tox:"
14 @echo
" Run tests against multiple python versions."
15 @echo
" These tests use the newest dependencies."
16 @echo
" Requires: Python 3.6 - 3.10, and tox."
17 @echo
" Hint (Fedora): 'sudo dnf install python3-tox python3.10'"
19 @echo
"make check-dev:"
20 @echo
" Run tests in a venv against your default python3 version."
21 @echo
" These tests use the newest dependencies."
22 @echo
" Requires: Python 3.x"
25 @echo
" Run tests in your *current environment*."
26 @echo
" Performs no environment setup of any kind."
29 @echo
" Install deps needed for for 'make check',"
30 @echo
" and install the qemu package in editable mode."
31 @echo
" (Can be used in or outside of a venv.)"
34 @echo
" Creates pipenv's virtual environment (.venv)"
37 @echo
" Creates a simple venv for check-dev. ($(QEMU_VENV_DIR))"
40 @echo
" Remove package build output."
42 @echo
"make distclean:"
43 @echo
" remove pipenv/venv files, qemu package forwarder,"
44 @echo
" built distribution files, and everything from 'make clean'."
46 @echo
-e
"Have a nice day ^_^\n"
51 @PIPENV_VENV_IN_PROJECT
=1 pipenv sync
--dev
--keep-outdated
57 @pipenv run make
check
60 dev-venv
: $(QEMU_VENV_DIR
) $(QEMU_VENV_DIR
)/bin
/activate
61 $(QEMU_VENV_DIR
) $(QEMU_VENV_DIR
)/bin
/activate
: setup.cfg
62 @echo
"VENV $(QEMU_VENV_DIR)"
63 @python3
-m venv
$(QEMU_VENV_DIR
)
65 echo
"ACTIVATE $(QEMU_VENV_DIR)"; \
66 .
$(QEMU_VENV_DIR
)/bin
/activate
; \
67 echo
"INSTALL qemu[devel] $(QEMU_VENV_DIR)"; \
68 make develop
1>/dev
/null
; \
70 @touch
$(QEMU_VENV_DIR
)
75 echo
"ACTIVATE $(QEMU_VENV_DIR)"; \
76 .
$(QEMU_VENV_DIR
)/bin
/activate
; \
82 pip3
install --disable-pip-version-check
-e .
[devel
]
86 @avocado
--config avocado.cfg run tests
/
94 python3 setup.py
clean --all
99 rm -rf qemu.egg-info
/ .venv
/ .tox
/ $(QEMU_VENV_DIR
) dist/