* 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(a)eurecom.fr>
---
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