mirror of
https://gitlab.com/libvirt/libvirt-python.git
synced 2024-10-26 07:55:06 +03:00
Makefile: make check
now computes env variable on the fly
* env variable used to be Python3.6 * Python3.6 is end of life since December 2021 [1]. [1] https://devguide.python.org/versions/ Signed-off-by: Ariel Otilibili <otilibil@eurecom.fr>
This commit is contained in:
parent
4701d0abba
commit
07fda40545
3
Makefile
3
Makefile
@ -1,6 +1,7 @@
|
||||
# Shim wrapper around setup.py to allow for familiar build targets
|
||||
|
||||
PYTHON ?= python
|
||||
VERSION := $(shell $(PYTHON) -c 'import sys; print("{}{}".format(sys.version_info.major, sys.version_info.minor))')
|
||||
|
||||
all:
|
||||
$(PYTHON) -m build
|
||||
@ -12,7 +13,7 @@ clean:
|
||||
rm -rf build/ dist/
|
||||
|
||||
check: all
|
||||
tox -e py36
|
||||
tox -e py$(VERSION)
|
||||
|
||||
test: all
|
||||
tox
|
||||
|
Loading…
Reference in New Issue
Block a user