mirror of
https://github.com/inventree/InvenTree.git
synced 2025-11-13 19:36:46 +00:00
feat(backend)!: bump to dj 5.2 lts / py 3.11 (#10730)
* feat(backend): bump to 5.2 lts / python 3.11 This will give us support till 2027-10 (PEP 664) * bump dependencies * fix dflt version * remove 3.9 precaution * changes for 5.2 * changes for py 3.10 * debug command * lower crypto again * another lowering * fix version string * lower minimum version to 3.11 * update refs * fix text * reaking: remove now unsupported OS * disable break * remove temp changes * fix ruff call * fix remaining ruff warnings * remove old arg * lower allauth reqs * replace old method * fix issue with args passing beeing depreceated * add changelog entries * bump dependencies a bit further * fix broken image init for now might need a refactor * fix another test * refactor image name lookup * mroe refactoring * ensure str does not cause an issue * update referenced function * fix cal sig * simplify method and add test * refactor * ignore wrong typings * fix deprecated feature * simplify * ensure image tests do their job * simplify * re-add type check * fix test * fix assertations - wonder how long this was broken * bump to newer versions * bump deps * fix assertation
This commit is contained in:
@@ -4,8 +4,8 @@
|
||||
#
|
||||
Color_Off='\033[0m'
|
||||
On_Red='\033[41m'
|
||||
PYTHON_FROM=9
|
||||
PYTHON_TO=14
|
||||
PYTHON_FROM=11
|
||||
PYTHON_TO=15
|
||||
|
||||
function detect_docker() {
|
||||
if [ -n "$(grep docker </proc/1/cgroup)" ]; then
|
||||
@@ -61,7 +61,7 @@ function detect_python() {
|
||||
echo "# POI07| No python environment found - using environment variable: ${SETUP_PYTHON}"
|
||||
fi
|
||||
|
||||
# Try to detect a python between 3.9 and 3.12 in reverse order
|
||||
# Try to detect a python between lowest and highest supported in reverse order
|
||||
if [ -z "$(which ${SETUP_PYTHON})" ]; then
|
||||
echo "# POI07| Trying to detecting python3.${PYTHON_FROM} to python3.${PYTHON_TO} - using newest version"
|
||||
for i in $(seq $PYTHON_TO -1 $PYTHON_FROM); do
|
||||
@@ -79,7 +79,7 @@ function detect_python() {
|
||||
echo "${On_Red}"
|
||||
echo "# POI07| Python ${SETUP_PYTHON} not found - aborting!"
|
||||
echo "# POI07| Please ensure python can be executed with the command '$SETUP_PYTHON' by the current user '$USER'."
|
||||
echo "# POI07| If you are using a different python version, please set the environment variable SETUP_PYTHON to the correct command - eg. 'python3.10'."
|
||||
echo "# POI07| If you are using a different python version, please set the environment variable SETUP_PYTHON to the correct command - eg. 'python3.11'."
|
||||
echo "${Color_Off}"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
@@ -26,7 +26,7 @@ export DATA_DIR=${APP_HOME}/data
|
||||
export SETUP_NGINX_FILE=${SETUP_NGINX_FILE:-/etc/nginx/sites-enabled/inventree.conf}
|
||||
export SETUP_ADMIN_PASSWORD_FILE=${CONF_DIR}/admin_password.txt
|
||||
export SETUP_NO_CALLS=${SETUP_NO_CALLS:-false}
|
||||
export SETUP_PYTHON=${SETUP_PYTHON:-python3.9}
|
||||
export SETUP_PYTHON=${SETUP_PYTHON:-python3.11}
|
||||
export SETUP_ADMIN_NOCREATION=${SETUP_ADMIN_NOCREATION:-false}
|
||||
# SETUP_DEBUG can be set to get debug info
|
||||
# SETUP_EXTRA_PIP can be set to install extra pip packages
|
||||
|
||||
Reference in New Issue
Block a user