chore: enforce stricter python version
Some checks failed
Mirror to Codeberg / mirror-to-codeberg (push) Has been cancelled

This commit is contained in:
aclist 2025-11-10 12:07:35 +09:00
parent a418bcfb90
commit 5bce8709af
2 changed files with 3 additions and 2 deletions

View File

@ -3,6 +3,7 @@
## [6.0.1-beta.2] 2025-11-10
## Fixed
- Python 3.14 error in finally block
- Require Python version between 3.11 and 3.12
## [6.0.1-beta.1] 2025-11-05
## Fixed

View File

@ -239,8 +239,8 @@ depcheck(){
check_pyver(){
local pyver=$(python3 --version | awk '{print $2}')
local minor=$(<<< $pyver awk -F. '{print $2}')
if [[ -z $pyver ]] || [[ ${pyver:0:1} -lt 3 ]] || [[ $minor -lt 10 ]]; then
local msg="Requires Python >=3.10"
if [[ -z $pyver ]] || [[ ${pyver:0:1} -lt 3 ]] || [[ $minor -lt 11 ]] || [[ $minor -gt 12 ]]; then
local msg="Requires Python 3.11 or 3.12"
raise_error_and_quit "$msg"
fi
logger INFO "Found Python version: $pyver"