mirror of
https://github.com/LizardByte/Sunshine.git
synced 2026-08-07 10:20:46 +00:00
build(python): migrate to pyproject.toml and bump python to 3.14 (#4772)
This commit is contained in:
@@ -60,7 +60,7 @@ jobs:
|
||||
id: python
|
||||
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
|
||||
with:
|
||||
python-version: '3.12'
|
||||
python-version: '3.14'
|
||||
|
||||
- name: Setup Dependencies Linux Flatpak
|
||||
run: |
|
||||
|
||||
@@ -114,7 +114,7 @@ jobs:
|
||||
ftp/curl \
|
||||
graphics/libdrm \
|
||||
graphics/wayland \
|
||||
lang/python312 \
|
||||
lang/python314 \
|
||||
multimedia/libva \
|
||||
multimedia/pipewire \
|
||||
net/miniupnpc \
|
||||
@@ -133,13 +133,13 @@ jobs:
|
||||
ln -s /usr/local/bin/bash /bin/bash
|
||||
|
||||
# setup python
|
||||
ln -s /usr/local/bin/python3.12 /usr/local/bin/python
|
||||
ln -s /usr/local/bin/python3.14 /usr/local/bin/python
|
||||
python -m ensurepip
|
||||
release: ${{ matrix.bsd_release }}
|
||||
run: |
|
||||
set -e
|
||||
# install gcvor
|
||||
python -m pip install gcovr
|
||||
python -m pip install "./scripts[test]"
|
||||
|
||||
# fix git safe.directory issues
|
||||
git config --global --add safe.directory "*"
|
||||
|
||||
@@ -62,7 +62,7 @@ jobs:
|
||||
id: python
|
||||
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
|
||||
with:
|
||||
python-version: '3.11'
|
||||
python-version: '3.14'
|
||||
|
||||
- name: Build latest libva
|
||||
env:
|
||||
@@ -181,7 +181,7 @@ jobs:
|
||||
(steps.test.outcome == 'success' || steps.test.outcome == 'failure')
|
||||
working-directory: build
|
||||
run: |
|
||||
${{ steps.python.outputs.python-path }} -m pip install gcovr
|
||||
${{ steps.python.outputs.python-path }} -m pip install "../scripts[test]"
|
||||
${{ steps.python.outputs.python-path }} -m gcovr --gcov-executable "gcov-${GCC_VERSION}" . -r ../src \
|
||||
--exclude-noncode-lines \
|
||||
--exclude-throw-branches \
|
||||
|
||||
@@ -173,7 +173,7 @@ jobs:
|
||||
id: setup-python
|
||||
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
|
||||
with:
|
||||
python-version: '3.11'
|
||||
python-version: '3.14'
|
||||
|
||||
- name: Python Path
|
||||
id: python-path
|
||||
@@ -258,7 +258,7 @@ jobs:
|
||||
shell: msys2 {0}
|
||||
working-directory: build
|
||||
run: |
|
||||
${{ steps.python-path.outputs.python-path }} -m pip install gcovr
|
||||
${{ steps.python-path.outputs.python-path }} -m pip install "../scripts[test]"
|
||||
${{ steps.python-path.outputs.python-path }} -m gcovr . -r ../src \
|
||||
--exclude-noncode-lines \
|
||||
--exclude-throw-branches \
|
||||
|
||||
@@ -25,16 +25,16 @@ jobs:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
||||
|
||||
- name: Install Python 3.9
|
||||
- name: Install Python
|
||||
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
|
||||
with:
|
||||
python-version: '3.9'
|
||||
python-version: '3.14'
|
||||
|
||||
- name: Set up Python 3.9 Dependencies
|
||||
- name: Set up Python Dependencies
|
||||
working-directory: scripts
|
||||
run: |
|
||||
cd ./scripts
|
||||
python -m pip install --upgrade pip setuptools
|
||||
python -m pip install -r requirements.txt
|
||||
python -m pip install ".[locale]"
|
||||
|
||||
- name: Set up xgettext
|
||||
run: |
|
||||
|
||||
Reference in New Issue
Block a user