upgrade max supported python version to 3.12; drop support for python 3.9 (>3.10 required)
This commit is contained in:
		@@ -4,7 +4,7 @@ from .scwrypts.exceptions import MissingVariableError
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
def getenv(name, required=True):
 | 
			
		||||
    value = os_getenv(name, None)
 | 
			
		||||
    value = os_getenv(f'{name}__override', os_getenv(name))
 | 
			
		||||
 | 
			
		||||
    if required and not value:
 | 
			
		||||
        raise MissingVariableError(name)
 | 
			
		||||
 
 | 
			
		||||
@@ -74,6 +74,8 @@ _VIRTUALENV__GET_PATH() {
 | 
			
		||||
	local ENV_PATH="$(eval echo '$SCWRYPTS_VIRTUALENV_PATH__'$GROUP 2>/dev/null)"
 | 
			
		||||
	[ ! $ENV_PATH ] && ENV_PATH="$SCWRYPTS_VIRTUALENV_PATH__scwrypts"
 | 
			
		||||
 | 
			
		||||
	mkdir -p "$ENV_PATH/$TYPE" &>/dev/null
 | 
			
		||||
 | 
			
		||||
	echo $ENV_PATH/$TYPE
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
@@ -95,7 +97,7 @@ CREATE_VIRTUALENV__scwrypts__py() {
 | 
			
		||||
		}
 | 
			
		||||
	done
 | 
			
		||||
	[ ! $PYTHON ] && {
 | 
			
		||||
		ERROR 'python>=3.9 not available; skipping python env'
 | 
			
		||||
		ERROR 'python>=3.10 not available; skipping python env'
 | 
			
		||||
		return 1
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user