Skip to content

Commit 79eabb1

Browse files
authored
Merge branch 'pygame-community:main' into rect_test
2 parents 969cdce + 2fdcf73 commit 79eabb1

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

66 files changed

+2112
-1078
lines changed

.github/workflows/build-debian-multiarch.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,10 +65,10 @@ jobs:
6565
- { arch: armv7, base_image: 'balenalib/raspberrypi3-debian:bookworm' }
6666

6767
steps:
68-
- uses: actions/checkout@v4.2.1
68+
- uses: actions/checkout@v4.2.2
6969

7070
- name: Build sources and run tests
71-
uses: uraimo/run-on-arch-action@v2.7.2
71+
uses: uraimo/run-on-arch-action@v2.8.1
7272
id: build
7373
with:
7474
arch: ${{ matrix.base_image && 'none' || matrix.arch }}
@@ -136,7 +136,7 @@ jobs:
136136
done
137137
138138
- name: Test armv7 wheel on armv6
139-
uses: uraimo/run-on-arch-action@v2.7.2
139+
uses: uraimo/run-on-arch-action@v2.8.1
140140
with:
141141
arch: armv6
142142
distro: bookworm

.github/workflows/build-emsdk.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ jobs:
4141
SDKROOT: /opt/python-wasm-sdk
4242

4343
steps:
44-
- uses: actions/checkout@v4.2.1
44+
- uses: actions/checkout@v4.2.2
4545

4646
- name: Regen with latest cython (using system python3)
4747
run: |

.github/workflows/build-macos.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -47,11 +47,11 @@ jobs:
4747
- { macarch: x86_64, os: macos-13 }
4848

4949
steps:
50-
- uses: actions/checkout@v4.2.1
50+
- uses: actions/checkout@v4.2.2
5151

5252
- name: Test for Mac Deps cache hit
5353
id: macdep-cache
54-
uses: actions/cache@v4.1.1
54+
uses: actions/cache@v4.1.2
5555
with:
5656
path: ${{ github.workspace }}/pygame_mac_deps_${{ matrix.macarch }}
5757
# The hash of all files in buildconfig manylinux-build and macdependencies is
@@ -116,17 +116,17 @@ jobs:
116116
CIBW_BEFORE_TEST: rm -rf ${{ github.workspace }}/pygame_mac_deps
117117

118118
steps:
119-
- uses: actions/checkout@v4.2.1
119+
- uses: actions/checkout@v4.2.2
120120

121121
- name: pip cache
122-
uses: actions/cache@v4.1.1
122+
uses: actions/cache@v4.1.2
123123
with:
124124
path: ~/Library/Caches/pip # This cache path is only right on mac
125125
key: pip-cache-${{ matrix.macarch }}-${{ matrix.os }}
126126

127127
- name: Fetch Mac deps
128128
id: macdep-cache
129-
uses: actions/cache@v4.1.1
129+
uses: actions/cache@v4.1.2
130130
with:
131131
path: ${{ github.workspace }}/pygame_mac_deps_${{ matrix.macarch }}
132132
key: macdep-${{ hashFiles('buildconfig/manylinux-build/**') }}-${{ hashFiles('buildconfig/macdependencies/*.sh') }}-${{ matrix.macarch }}

.github/workflows/build-manylinux.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ jobs:
5252
CIBW_ARCHS: ${{ matrix.arch }}
5353

5454
steps:
55-
- uses: actions/checkout@v4.2.1
55+
- uses: actions/checkout@v4.2.2
5656

5757
- name: Log in to the Container registry
5858
uses: docker/login-action@9780b0c442fbb1117ed29e0efdff1e18412f7567

.github/workflows/build-on-msys2.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,13 +42,12 @@ jobs:
4242
matrix:
4343
include:
4444
- { sys: mingw64, env: x86_64 }
45-
- { sys: mingw32, env: i686 }
4645
- { sys: ucrt64, env: ucrt-x86_64 }
4746
- { sys: clang64, env: clang-x86_64 }
4847
# - { sys: clangarm64, env: clang-aarch64 }
4948

5049
steps:
51-
- uses: actions/checkout@v4.2.1
50+
- uses: actions/checkout@v4.2.2
5251
- uses: msys2/setup-msys2@v2
5352
with:
5453
msystem: ${{ matrix.sys }}

.github/workflows/build-sdl3.yml

Lines changed: 20 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -52,16 +52,26 @@ jobs:
5252
PG_DEPS_FROM_SYSTEM: 1
5353

5454
steps:
55-
- uses: actions/checkout@v4.2.1
55+
- uses: actions/checkout@v4.2.2
5656

57-
- name: Install deps (linux)
57+
- name: Install pygame deps (linux)
5858
if: matrix.os == 'ubuntu-24.04'
5959
run: sudo apt-get install libfreetype6-dev libportmidi-dev python3-dev
6060

61-
- name: Install deps (mac)
61+
- name: Install pygame deps (mac)
6262
if: matrix.os == 'macos-14'
6363
run: brew install freetype portmidi
6464

65+
# taken from dependencies of the 'libsdl2-dev' package
66+
- name: Install SDL deps (linux)
67+
if: matrix.os == 'ubuntu-24.04'
68+
run: >
69+
sudo apt-get install libasound2-dev libdbus-1-dev libdecor-0-dev libdrm-dev
70+
libegl-dev libgbm-dev libgl-dev libgles-dev libibus-1.0-dev libpulse-dev
71+
libsamplerate0-dev libsndio-dev libudev-dev libwayland-dev libx11-dev
72+
libxcursor-dev libxext-dev libxfixes-dev libxi-dev libxinerama-dev
73+
libxkbcommon-dev libxrandr-dev libxss-dev libxt-dev libxv-dev libxxf86vm-dev
74+
6575
# taken from https://wiki.libsdl.org/SDL3/Installation
6676
- name: Install SDL3
6777
if: matrix.os != 'windows-latest'
@@ -74,12 +84,13 @@ jobs:
7484
cmake --build . --config Release --parallel
7585
sudo cmake --install . --config Release
7686
77-
- name: Make sdist and install it
78-
run: >
79-
python3 -m pip install . -v -Csetup-args=-Dsdl_api=3
80-
-Csetup-args=-Dimage=disabled
81-
-Csetup-args=-Dmixer=disabled
82-
-Csetup-args=-Dfont=disabled
87+
- name: Build with SDL3
88+
run: python3 dev.py build --sdl3
89+
90+
# eventually we need to run all tests, but for now test that importing pygame
91+
# works
92+
- name: Test import works
93+
run: python3 -c 'import pygame'
8394

8495
# - name: Run tests
8596
# env:

.github/workflows/build-ubuntu-coverage.yml

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -58,25 +58,20 @@ jobs:
5858
PG_DEPS_FROM_SYSTEM: 1
5959

6060
steps:
61-
- uses: actions/checkout@v4.2.1
61+
- uses: actions/checkout@v4.2.2
6262

6363
- name: Install deps
64-
# install numpy from pip and not apt because the one from pip is newer,
65-
# and has typestubs
6664
# https://github.com/actions/runner-images/issues/7192
6765
# https://github.com/orgs/community/discussions/47863
6866
run: |
6967
sudo apt-get update --fix-missing
7068
sudo apt-get install lcov -y
7169
sudo apt-get install libsdl2-dev libsdl2-image-dev libsdl2-mixer-dev libsdl2-ttf-dev libfreetype6-dev libportmidi-dev python3-dev -y
72-
pip3 install --upgrade pip
73-
pip3 install meson-python ninja cython "sphinx<=7.2.6" # because we are doing --no-build-isolation
74-
pip3 install numpy>=1.21.0
7570
7671
- name: Build with coverage hooks and install
7772
id: build
7873
run: |
79-
pip3 install -e . --no-build-isolation -Cbuild-dir=./.mesonpy-rel -Csetup-args=-Dcoverage=true
74+
python3 dev.py build --coverage
8075
8176
- name: Run tests
8277
env:

.github/workflows/build-ubuntu-sdist.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ jobs:
4848
strategy:
4949
fail-fast: false # if a particular matrix build fails, don't skip the rest
5050
matrix:
51-
os: [ubuntu-24.04, ubuntu-22.04]
51+
os: [ubuntu-22.04]
5252

5353
env:
5454
# Pip now forces us to either make a venv or set this flag, so we will do
@@ -58,7 +58,7 @@ jobs:
5858
PG_DEPS_FROM_SYSTEM: 1
5959

6060
steps:
61-
- uses: actions/checkout@v4.2.1
61+
- uses: actions/checkout@v4.2.2
6262

6363
- name: Install deps
6464
# install numpy from pip and not apt because the one from pip is newer,
@@ -89,7 +89,6 @@ jobs:
8989
9090
# We upload the generated files under github actions assets
9191
- name: Upload sdist
92-
if: matrix.os == 'ubuntu-24.04' # upload sdist only once
9392
uses: actions/upload-artifact@v4
9493
with:
9594
name: pygame-wheels-sdist

.github/workflows/build-windows.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ jobs:
5050
CIBW_ARCHS: ${{ matrix.winarch }}
5151

5252
steps:
53-
- uses: actions/checkout@v4.2.1
53+
- uses: actions/checkout@v4.2.2
5454

5555
- uses: TheMrMilchmann/setup-msvc-dev@v3 # this lets us use the developer command prompt on windows
5656
with:

.github/workflows/cppcheck.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
runs-on: ubuntu-24.04
2323

2424
steps:
25-
- uses: actions/checkout@v4.2.1
25+
- uses: actions/checkout@v4.2.2
2626

2727
- name: Install deps
2828
# https://github.com/actions/runner-images/issues/7192

0 commit comments

Comments
 (0)