Update deploy-pypi to use Python 3.12

Signed-off-by: Loren Eteval <loren.eteval@proton.me>
This commit is contained in:
Loren Eteval
2024-12-24 18:34:20 +08:00
parent 8a3d77f6e2
commit 3a2a089d2c
+8 -23
View File
@@ -17,7 +17,7 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.11"
python-version: "3.12"
check-latest: true
- name: Set up Python venv
@@ -25,6 +25,7 @@ jobs:
python3 -m venv .venv
source .venv/bin/activate
python3 --version
python3 -m pip install --upgrade pip
- name: Install libegl1
run: |
@@ -84,8 +85,9 @@ jobs:
matrix:
os: [windows-2022, macos-13, macos-14]
env:
# Last PySide6 version that supports macOS 10.9 + Python 3.11
PYSIDE6_LEGACY_VERSION: "6.4.3"
PYSIDE6_TARGET_VERSION: "6.5.3"
PYSIDE6_TARGET_VERSION: "6.8.1"
steps:
- uses: actions/checkout@v4
@@ -93,7 +95,7 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.11"
python-version: "3.12"
check-latest: true
- name: Set up Python venv
@@ -108,6 +110,7 @@ jobs:
exit 1
fi
python3 --version
python3 -m pip install --upgrade pip
- name: Install macOS dependencies
run: |
@@ -125,16 +128,9 @@ jobs:
run: |
python3 -m pip install setuptools wheel
- name: Install specific PySide6-Essentials on OS
- name: Install PySide6-Essentials
run: |
if [ "$RUNNER_OS" == "macOS" ]; then
python3 -m pip install PySide6-Essentials==$PYSIDE6_LEGACY_VERSION
elif [ "$RUNNER_OS" == "Windows" ]; then
python3 -m pip install PySide6-Essentials==$PYSIDE6_TARGET_VERSION
else
echo "$RUNNER_OS not supported"
exit 1
fi
python3 -m pip install PySide6-Essentials==$PYSIDE6_TARGET_VERSION
- name: Install requirements.txt
run: |
@@ -178,17 +174,6 @@ jobs:
- name: Run deploy script
run: python3 Deploy.py
- name: Upgrade PySide6-Essentials to target version if on macOS
run: |
python3 -m pip uninstall -y PySide6-Essentials shiboken6
python3 -m pip install PySide6-Essentials==$PYSIDE6_TARGET_VERSION
if: runner.os == 'macOS'
- name: Run deploy script again if on macOS
run: |
python3 Deploy.py
if: runner.os == 'macOS'
- name: Store the distribution packages
uses: actions/upload-artifact@v3
with: