drop python 3.7 support (#1271)

* drop python 3.7 support

start using  PEP 572 assignment expressions

Update FAQ

improve how unsupported versions are informed

this should be clearer on why we refuse to continue

* add more asign-expressions
This commit is contained in:
Alfredo Monclus
2024-05-24 19:13:19 -03:00
committed by GitHub
parent 462d134b1e
commit 524aa0e7dc
8 changed files with 41 additions and 54 deletions

View File

@@ -103,10 +103,11 @@ install_packages()
check_requirements()
{
echo_text "Checking Python version"
VERSION="3,8"
echo_text "Checking Python version > "$VERSION
python3 --version
if ! python3 -c 'import sys; exit(1) if sys.version_info <= (3,7) else exit(0)'; then
echo_text 'Not supported'
if ! python3 -c 'import sys; exit(1) if sys.version_info <= ('$VERSION') else exit(0)'; then
echo_error 'Not supported'
exit 1
fi
}