From bc37087a71e33ce175d6812e3f271e5f63401c13 Mon Sep 17 00:00:00 2001 From: "Ajin.Abraham" Date: Sat, 2 Dec 2023 02:39:04 -0800 Subject: [PATCH] python version bump changes --- .sonarcloud.properties | 2 +- setup.bat | 6 +++--- setup.sh | 4 ++-- tox.ini | 2 +- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/.sonarcloud.properties b/.sonarcloud.properties index e122090e90..28eead4702 100644 --- a/.sonarcloud.properties +++ b/.sonarcloud.properties @@ -1,4 +1,4 @@ sonar.sources=. sonar.exclusions=mobsf/static/**/*,mobsf/templates/**/* sonar.sourceEncoding=UTF-8 -sonar.python.version=3.7, 3.8, 3.9, 3.10, 3.11 \ No newline at end of file +sonar.python.version=3.10, 3.11 \ No newline at end of file diff --git a/setup.bat b/setup.bat index 81071e04fe..67f1b63bdf 100644 --- a/setup.bat +++ b/setup.bat @@ -2,7 +2,7 @@ rem Python Check set /a count=0 where python >nul 2>&1 && ( - echo [INSTALL] Checking for Python version 3.9+ + echo [INSTALL] Checking for Python version 3.10+ :redo if %count% lss 3 ( set /a count+=1 @@ -13,10 +13,10 @@ where python >nul 2>&1 && ( ) else ( exit /b ) - echo %var%|findstr /R "[3].[91011]" >nul + echo %var%|findstr /R "[3].[1011]" >nul if errorlevel 1 ( if "%var%"=="" goto redo - echo [ERROR] MobSF dependencies require Python 3.9-3.11. Your python points to %var% + echo [ERROR] MobSF dependencies require Python 3.10-3.11. Your python points to %var% exit /b ) else ( echo [INSTALL] Found %var% diff --git a/setup.sh b/setup.sh index 2cd936a4b3..e959c30b22 100755 --- a/setup.sh +++ b/setup.sh @@ -11,10 +11,10 @@ fi python_version="$(python3 --version 2>&1 | awk '{print $2}')" py_major=$(echo "$python_version" | cut -d'.' -f1) py_minor=$(echo "$python_version" | cut -d'.' -f2) -if [ "$py_major" -eq "3" ] && [ "$py_minor" -gt "8" ] && [ "$py_minor" -lt "12" ]; then +if [ "$py_major" -eq "3" ] && [ "$py_minor" -gt "9" ] && [ "$py_minor" -lt "12" ]; then echo "[INSTALL] Found Python ${python_version}" else - echo "[ERROR] MobSF dependencies require Python 3.9 - 3.11. You have Python version ${python_version} or python3 points to Python ${python_version}." + echo "[ERROR] MobSF dependencies require Python 3.10 - 3.11. You have Python version ${python_version} or python3 points to Python ${python_version}." exit 1 fi diff --git a/tox.ini b/tox.ini index f07dc92e4a..73480825b1 100644 --- a/tox.ini +++ b/tox.ini @@ -1,5 +1,5 @@ [tox] -envlist = py39, py310, py311 +envlist = py310, py311 skipsdist = True isolated_build = true