[PATCH 1/3] Makefile: `make check` now computes env variable on the fly

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



* 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@xxxxxxxxxx>
---
 Makefile | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/Makefile b/Makefile
index b08e2bd..1cab66c 100644
--- a/Makefile
+++ b/Makefile
@@ -1,6 +1,7 @@
 # Shim wrapper around setup.py to allow for familiar build targets
 
 PYTHON ?= python
+VERSION := $(shell $(PYTHON) -V | perl -nE 'print "$$1$$2" if /\s(\d+)\.(\d+)/')
 
 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
-- 
2.45.2



[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux