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:
@@ -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
|
||||
}
|
||||
|
Reference in New Issue
Block a user