From 599851a327b60feacac80471f3070772facdc7c8 Mon Sep 17 00:00:00 2001 From: Russell Keith-Magee Date: Wed, 9 Sep 2026 11:35:18 +0800 Subject: [PATCH] Remove PyGame references. --- .github/actions/app-create/action.yml | 1 - .github/workflows/app-build-verify.yml | 7 ------- .github/workflows/ci.yml | 10 +++++----- .gitignore | 3 +++ 4 files changed, 8 insertions(+), 13 deletions(-) diff --git a/.github/actions/app-create/action.yml b/.github/actions/app-create/action.yml index 255d0f24..666d3bed 100644 --- a/.github/actions/app-create/action.yml +++ b/.github/actions/app-create/action.yml @@ -80,7 +80,6 @@ runs: case "$(tr '[:upper:]' '[:lower:]' <<< "${INPUT_FRAMEWORK}")" in toga ) BOOTSTRAP=Toga ;; pyside6 ) BOOTSTRAP=PySide6 ;; - pygame ) BOOTSTRAP=Pygame ;; console ) BOOTSTRAP=Console ;; * ) BOOTSTRAP="${INPUT_FRAMEWORK}" ;; esac diff --git a/.github/workflows/app-build-verify.yml b/.github/workflows/app-build-verify.yml index bee26b8f..fcf0692e 100644 --- a/.github/workflows/app-build-verify.yml +++ b/.github/workflows/app-build-verify.yml @@ -74,7 +74,6 @@ jobs: contents: read env: PYSIDE6_SYSTEM_REQUIRES: libgl1 libqt6dbus6 libqt6gui6t64 libxcb-cursor0 - SDL_AUDIODRIVER: dummy # disable audio for SDL TOGA_SYSTEM_REQUIRES: libcairo2-dev libcanberra-gtk3-module libegl1 libgirepository1.0-dev libgirepository-2.0-dev libthai-dev gir1.2-gtk-3.0 steps: @@ -207,8 +206,6 @@ jobs: && contains(fromJSON('["", "app"]'), inputs.target-format) working-directory: ${{ steps.create.outputs.project-path }} env: - # SDL cannot always find hardware acceleration on macOS in CI - SDL_VIDEODRIVER: ${{ startsWith(inputs.framework, 'pygame') && 'dummy' || '' }} CREATE_OPTIONS: ${{ steps.output-format.outputs.template-override }} ${{ inputs.create-options }} run: | briefcase create macOS app ${CREATE_OPTIONS} ${BRIEFCASE_VERBOSITY} @@ -226,8 +223,6 @@ jobs: && contains(fromJSON('["", "Xcode"]'), inputs.target-format) working-directory: ${{ steps.create.outputs.project-path }} env: - # SDL cannot always find hardware acceleration on macOS in CI - SDL_VIDEODRIVER: ${{ startsWith(inputs.framework, 'pygame') && 'dummy' || '' }} CREATE_OPTIONS: ${{ steps.output-format.outputs.template-override }} ${{ inputs.create-options }} run: | briefcase create macOS Xcode ${CREATE_OPTIONS} ${BRIEFCASE_VERBOSITY} @@ -339,11 +334,9 @@ jobs: - name: Build Linux System Project (Arch, Dockerized) # Arch is not officially supported on ARM - # Arch can't build PyGame apps until they publish 3.14 binary wheels if: > startsWith(inputs.runner-os, 'ubuntu') && !endsWith(inputs.runner-os, '-arm') - && !startsWith(inputs.framework, 'pygame') && contains(fromJSON('["", "Linux"]'), inputs.target-platform) && contains(fromJSON('["", "system"]'), inputs.target-format) working-directory: ${{ steps.create.outputs.project-path }} diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 0a74ddb5..c9ef4b1b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -290,7 +290,7 @@ jobs: strategy: fail-fast: false matrix: - framework: [ toga, pyside6, pygame, console ] + framework: [ toga, pyside6, console ] runner-os: [ ubuntu-24.04, ubuntu-24.04-arm ] # see app-build-verify.yml; AppImage testing was disabled sept 2024 @@ -308,7 +308,7 @@ jobs: # fail-fast: false # matrix: # # 2024-07-11 (beeware/briefcase#1908): pyside6 segfaults on AppImage start. -# framework: [ toga, pygame, console ] +# framework: [ toga, console ] test-app-build-verify-linux-flatpak: name: App Build Verify (Flatpak template) @@ -323,7 +323,7 @@ jobs: strategy: fail-fast: false matrix: - framework: [ toga, pyside6, pygame, console ] + framework: [ toga, pyside6, console ] runner-os: [ ubuntu-24.04, ubuntu-24.04-arm ] exclude: @@ -345,7 +345,7 @@ jobs: strategy: fail-fast: false matrix: - framework: [ toga, pyside6, pygame, console ] + framework: [ toga, pyside6, console ] format: [ app, Xcode ] test-app-build-verify-web: @@ -376,5 +376,5 @@ jobs: strategy: fail-fast: false matrix: - framework: [ toga, pyside6, pygame, console ] + framework: [ toga, pyside6, console ] format: [ app, VisualStudio ] diff --git a/.gitignore b/.gitignore index 06778a72..93fb9e13 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,8 @@ venv .envrc +.vscode .idea *.pyc *.egg-info +.kilo +.opencode