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
5
Makefile
5
Makefile
@ -1,6 +1,7 @@
|
|||||||
# Shim wrapper around setup.py to allow for familiar build targets
|
# Shim wrapper around setup.py to allow for familiar build targets
|
||||||
|
|
||||||
PYTHON ?= python
|
PYTHON ?= python
|
||||||
|
VERSION := $(shell $(PYTHON) -c 'import sys; print("{}{}".format(sys.version_info.major, sys.version_info.minor))')
|
||||||
|
|
||||||
all:
|
all:
|
||||||
$(PYTHON) -m build
|
$(PYTHON) -m build
|
||||||
@ -12,7 +13,7 @@ clean:
|
|||||||
rm -rf build/ dist/
|
rm -rf build/ dist/
|
||||||
|
|
||||||
check: all
|
check: all
|
||||||
tox -e py36
|
tox -e py$(VERSION)
|
||||||
|
|
||||||
test: all
|
test: all
|
||||||
tox
|
tox
|
||||||
|
Loading…
Reference in New Issue
Block a user