Add Python 3.13 ci job and update actions

* 2025 updates try 2

no _logic_ changes, just version bumps and 3.13 support/default - some commented-out _potential_ fixes and explanatory text

* copy pasta

3.13

* undo commented-outs

revorted

* moar copy-pasta

😅
This commit is contained in:
Allister Banks
2025-06-25 10:28:05 -04:00
committed by GitHub
parent 5e5340aaa0
commit 9c344405f3
7 changed files with 135 additions and 42 deletions
+9 -6
View File
@@ -5,9 +5,9 @@
# IMPORTANT
# Run this with your current directory being the path where this script is located
# Harcoded versions
RP_SHA="fb4dd9b024b249c71713f14d887f4bcea78aa8b0"
MP_SHA="0fcd47faf0fb2b4e8a0256a77be315a3cb6ab319"
# Harcoded (commit) versions of relocatable-python & munki-pkg
RP_SHA="8ee72fe3a5dbef733365370ebf44f25022b895ef" # https://github.com/gregneagle/relocatable-python/commits/main/
MP_SHA="96cffb4eac9207c1130404ec1fee8f4777fa38fd" # https://github.com/munki/munki-pkg/commits/main/
MACOS_VERSION=11 # use 10.9 for non-universal
PYTHON_PRERELEASE_VERSION=
PYTHON_BASEURL="https://www.python.org/ftp/python/%s/python-%s${PYTHON_PRERELEASE_VERSION}-macos%s.pkg"
@@ -56,13 +56,13 @@ fi
if [ -n "$4" ]; then
PYTHON_VERSION=$4
else
PYTHON_VERSION=3.12.1
PYTHON_VERSION=3.13.5
fi
if [ -n "$5" ]; then
PYTHON_MAJOR_VERSION=$5
else
PYTHON_MAJOR_VERSION=3.12
PYTHON_MAJOR_VERSION=3.13
fi
# Set python bin version based on PYTHON_VERSION
PYTHON_BIN_VERSION="${PYTHON_VERSION%.*}"
@@ -96,7 +96,7 @@ if [ -d "${PIPCACHEDIR}" ]; then
/usr/bin/sudo /bin/rm -rf "${PIPCACHEDIR}"
fi
# kill homebrew packages
# kill homebrew packages on GitHub runner
/usr/local/bin/brew remove --force $(/usr/local/bin/brew list)
# Ensure Xcode is set to run-time
@@ -153,6 +153,9 @@ fi
if [[ "${PYTHON_MAJOR_VERSION}" == "3.12" ]]; then
/bin/ln -s "$PYTHON_BIN_NEW" "$TOOLSDIR/$TYPE/payload/usr/local/bin/managed_python3"
fi
if [[ "${PYTHON_MAJOR_VERSION}" == "3.13" ]]; then
/bin/ln -s "$PYTHON_BIN_NEW" "$TOOLSDIR/$TYPE/payload/usr/local/bin/managed_python3"
fi
SB_RESULT="$?"
if [ "${SB_RESULT}" != "0" ]; then