Skip to content

Commit 74c9fa2

Browse files
committed
Merge remote-tracking branch 'upstream/main' into move-window-docs
2 parents d6134d3 + 9825809 commit 74c9fa2

30 files changed

+473
-404
lines changed

.circleci/config.yml

Lines changed: 0 additions & 66 deletions
This file was deleted.

.gitattributes

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
# define files/directories that won't be exported in an sdist
22
# Keep in sync with MANIFEST.in
3-
.circleci/ export-ignore
43
.github/ export-ignore
5-
buildconfig/ci/ export-ignore
64
buildconfig/macdependencies/ export-ignore
75
buildconfig/manylinux-build/ export-ignore
86

.github/workflows/build-manylinux.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,15 +38,15 @@ concurrency:
3838
jobs:
3939
build:
4040
name: ${{ matrix.arch }}
41-
runs-on: ubuntu-24.04
41+
runs-on: ${{ matrix.arch == 'aarch64' && 'ubuntu-24.04-arm' || 'ubuntu-24.04' }}
4242
permissions:
4343
contents: read
4444
packages: write
4545

4646
strategy:
4747
fail-fast: false # if a particular matrix build fails, don't skip the rest
4848
matrix:
49-
arch: [x86_64, i686]
49+
arch: [x86_64, i686, aarch64]
5050

5151
env:
5252
CIBW_ARCHS: ${{ matrix.arch }}
@@ -75,7 +75,7 @@ jobs:
7575

7676
- name: Build and push Docker image
7777
if: steps.inspect.outcome == 'failure'
78-
uses: docker/build-push-action@48aba3b46d1b1fec4febb7c5d0c644b249a11355
78+
uses: docker/build-push-action@67a2d409c0a876cbe6b11854e3e25193efe4e62d
7979
with:
8080
context: ${{ github.workspace }}/buildconfig/manylinux-build/docker_base
8181
file: ${{ github.workspace }}/buildconfig/manylinux-build/docker_base/Dockerfile-${{ matrix.arch }}
@@ -90,6 +90,8 @@ jobs:
9090
CIBW_MANYLINUX_PYPY_X86_64_IMAGE: ghcr.io/${{ github.repository }}_x86_64:${{ steps.meta.outputs.version }}
9191
CIBW_MANYLINUX_I686_IMAGE: ghcr.io/${{ github.repository }}_i686:${{ steps.meta.outputs.version }}
9292
CIBW_MANYLINUX_PYPY_I686_IMAGE: ghcr.io/${{ github.repository }}_i686:${{ steps.meta.outputs.version }}
93+
CIBW_MANYLINUX_AARCH64_IMAGE: ghcr.io/${{ github.repository }}_aarch64:${{ steps.meta.outputs.version }}
94+
CIBW_MANYLINUX_PYPY_AARCH64_IMAGE: ghcr.io/${{ github.repository }}_aarch64:${{ steps.meta.outputs.version }}
9395

9496
uses: pypa/cibuildwheel@v2.22.0
9597

.github/workflows/release-gh-draft.yml

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -5,18 +5,6 @@ on:
55
branches: 'release/**'
66

77
jobs:
8-
manylinux-aarch64:
9-
runs-on: ubuntu-latest
10-
outputs:
11-
pipeline_id: ${{ steps.circleci.outputs.id }}
12-
13-
steps:
14-
- name: Trigger CircleCI builds on release
15-
id: circleci
16-
uses: CircleCI-Public/trigger-circleci-pipeline-action@v1.2.0
17-
env:
18-
CCI_TOKEN: ${{ secrets.CCI_TOKEN }}
19-
208
manylinux:
219
uses: ./.github/workflows/build-manylinux.yml
2210

@@ -46,14 +34,6 @@ jobs:
4634
path: pygame-wheels
4735
merge-multiple: true
4836

49-
- name: Download manylinux-aarch64 artifacts from CircleCI
50-
continue-on-error: true # incase things don't work here, can manually handle it
51-
run: >
52-
python3 buildconfig/ci/circleci/pull_circleci_artifacts.py
53-
${{ secrets.CCI_TOKEN }}
54-
${{ needs.manylinux-aarch64.outputs.pipeline_id }}
55-
pygame-wheels
56-
5737
# Strips 'release/' from the ref_name, this helps us access the version
5838
# name as 'steps.ver.outputs.VER'
5939
- name: Get version

buildconfig/MANIFEST.in

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ recursive-include src_c *
55
recursive-include examples *
66
recursive-include test *
77

8-
recursive-exclude buildconfig/ci *
98
recursive-exclude buildconfig/manylinux-build *
109
recursive-exclude buildconfig/macdependencies *
1110
recursive-exclude buildconfig/stubs/.mypy_cache *

buildconfig/ci/circleci/pull_circleci_artifacts.py

Lines changed: 0 additions & 138 deletions
This file was deleted.

buildconfig/download_win_prebuilt.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -82,16 +82,16 @@ def get_urls(x86=True, x64=True):
8282
'163e3300a1450e6e7d4fff0d35b039c3eae44e79',
8383
],
8484
[
85-
'https://github.com/libsdl-org/SDL/releases/download/preview-3.1.8/SDL3-devel-3.1.8-VC.zip',
86-
'6b17cd6414d8f42b43a6006ddb2b40fd4c3b7c7b'
85+
'https://github.com/libsdl-org/SDL/releases/download/release-3.2.0/SDL3-devel-3.2.0-VC.zip',
86+
'd382072cd045d74a802541bf8d0b13e21ffed740'
8787
],
8888
[
8989
'https://github.com/pygame-community/SDL_image/releases/download/2.8.4-pgce/SDL2_image-devel-2.8.4-VCpgce.zip',
9090
'b9b4a5d44cab57901003255a1c1f98a42282762b'
9191
],
9292
[
93-
'https://github.com/libsdl-org/SDL_image/releases/download/preview-3.1.0/SDL3_image-devel-3.1.0-VC.zip',
94-
'8538fea0cc4aabba2fc64db06196f1bb76a2785f'
93+
'https://github.com/libsdl-org/SDL_image/releases/download/prerelease-3.1.1/SDL3_image-devel-3.1.1-VC.zip',
94+
'01f751322e742bb9dd3121d5ef37214c0529cb7c'
9595
],
9696
[
9797
'https://github.com/libsdl-org/SDL_ttf/releases/download/release-2.24.0/SDL2_ttf-devel-2.24.0-VC.zip',
@@ -220,12 +220,12 @@ def copy(src, dst):
220220
copy(
221221
os.path.join(
222222
temp_dir,
223-
'SDL3_image-devel-3.1.0-VC/SDL3_image-3.1.0'
223+
'SDL3_image-devel-3.1.1-VC/SDL3_image-3.1.1'
224224
),
225225
os.path.join(
226226
move_to_dir,
227227
prebuilt_dir,
228-
'SDL3_image-3.1.0'
228+
'SDL3_image-3.1.1'
229229
)
230230
)
231231

@@ -265,12 +265,12 @@ def copy(src, dst):
265265
copy(
266266
os.path.join(
267267
temp_dir,
268-
'SDL3-devel-3.1.8-VC/SDL3-3.1.8'
268+
'SDL3-devel-3.2.0-VC/SDL3-3.2.0'
269269
),
270270
os.path.join(
271271
move_to_dir,
272272
prebuilt_dir,
273-
'SDL3-3.1.8'
273+
'SDL3-3.2.0'
274274
)
275275
)
276276

buildconfig/stubs/pygame/_sdl2/controller.pyi

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@ class Controller:
2323
def as_joystick(self) -> JoystickType: ...
2424
def get_axis(self, axis: int) -> int: ...
2525
def get_button(self, button: int) -> bool: ...
26-
def get_mapping(self) -> dict: ...
27-
def set_mapping(self, mapping: dict) -> int: ...
28-
def rumble(self, ___) -> bool: ...
29-
def stop_rumble(
26+
def get_mapping(self) -> dict[str, str]: ...
27+
def set_mapping(self, mapping: dict[str, str]) -> int: ...
28+
def rumble(
3029
self, low_frequency: float, high_frequency: float, duration: int
3130
) -> bool: ...
31+
def stop_rumble(self) -> None: ...
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
from typing import Union
1+
from typing import Union, Optional
22

33
def get_num_devices() -> int: ...
4-
def get_device(index: int) -> int: ...
5-
def get_num_fingers(device_id: int) -> int: ...
6-
def get_finger(touchid: int, index: int) -> dict[str, Union[int, float]]: ...
4+
def get_device(index: int, /) -> int: ...
5+
def get_num_fingers(device_id: int, /) -> int: ...
6+
def get_finger(touchid: int, index: int) -> Optional[dict[str, Union[int, float]]]: ...

buildconfig/stubs/pygame/window.pyi

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,24 @@ class Window:
9494
title: str = "pygame window",
9595
size: Point = (640, 480),
9696
position: Union[int, Point] = WINDOWPOS_UNDEFINED,
97-
**flags: bool,
97+
*,
98+
fullscreen: bool = ...,
99+
fullscreen_desktop: bool = ...,
100+
opengl: bool = ...,
101+
vulkan: bool = ...,
102+
hidden: bool = ...,
103+
borderless: bool = ...,
104+
resizable: bool = ...,
105+
minimized: bool = ...,
106+
maximized: bool = ...,
107+
mouse_grabbed: bool = ...,
108+
keyboard_grabbed: bool = ...,
109+
input_focus: bool = ...,
110+
mouse_focus: bool = ...,
111+
allow_high_dpi: bool = ...,
112+
mouse_capture: bool = ...,
113+
always_on_top: bool = ...,
114+
utility: bool = ...,
98115
) -> None: ...
99116

100117
grab_mouse: bool

0 commit comments

Comments
 (0)