Skip to content

Commit 7ae299a

Browse files
authored
Merge branch 'pygame-community:main' into lazy-numpy
2 parents c20a9ba + 5ff6bbd commit 7ae299a

File tree

326 files changed

+6832
-4215
lines changed

Some content is hidden

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

326 files changed

+6832
-4215
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ jobs:
6868
- uses: actions/checkout@v4.2.2
6969

7070
- name: Build sources and run tests
71-
uses: uraimo/run-on-arch-action@v3.0.0
71+
uses: uraimo/run-on-arch-action@v3.0.1
7272
id: build
7373
with:
7474
arch: ${{ matrix.base_image && 'none' || matrix.arch }}
@@ -134,7 +134,7 @@ jobs:
134134
done
135135
136136
- name: Test armv7 wheel on armv6
137-
uses: uraimo/run-on-arch-action@v3.0.0
137+
uses: uraimo/run-on-arch-action@v3.0.1
138138
with:
139139
arch: armv6
140140
distro: bookworm

.github/workflows/build-macos.yml

Lines changed: 6 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,13 @@
11
name: macOS
22

33
# Run CI only when a release is created, on changes to main branch, or any PR
4-
# to main. Do not run CI on any other branch. Also, skip any non-source changes
5-
# from running on CI
4+
# to main.
65
on:
76
push:
87
branches: main
9-
paths-ignore:
10-
- 'docs/**'
11-
- 'examples/**'
12-
- '.gitignore'
13-
- '*.rst'
14-
- '*.md'
15-
- '.github/workflows/*.yml'
16-
# re-include current file to not be excluded
17-
- '!.github/workflows/build-macos.yml'
188

199
pull_request:
2010
branches: main
21-
paths-ignore:
22-
- 'docs/**'
23-
- 'examples/**'
24-
- '.gitignore'
25-
- '*.rst'
26-
- '*.md'
27-
- '.github/workflows/*.yml'
28-
# re-include current file to not be excluded
29-
- '!.github/workflows/build-macos.yml'
3011

3112
# the github release drafter can call this workflow
3213
workflow_call:
@@ -51,7 +32,7 @@ jobs:
5132

5233
- name: Test for Mac Deps cache hit
5334
id: macdep-cache
54-
uses: actions/cache@v4.2.2
35+
uses: actions/cache@v4.2.3
5536
with:
5637
path: ${{ github.workspace }}/pygame_mac_deps_${{ matrix.macarch }}
5738
# The hash of all files in buildconfig manylinux-build and macdependencies is
@@ -118,26 +99,26 @@ jobs:
11899
- uses: actions/checkout@v4.2.2
119100

120101
- name: pip cache
121-
uses: actions/cache@v4.2.2
102+
uses: actions/cache@v4.2.3
122103
with:
123104
path: ~/Library/Caches/pip # This cache path is only right on mac
124105
key: pip-cache-${{ matrix.macarch }}-${{ matrix.os }}
125106

126107
- name: Fetch Mac deps
127108
id: macdep-cache
128-
uses: actions/cache@v4.2.2
109+
uses: actions/cache@v4.2.3
129110
with:
130111
path: ${{ github.workspace }}/pygame_mac_deps_${{ matrix.macarch }}
131112
key: macdep-${{ hashFiles('buildconfig/manylinux-build/**') }}-${{ hashFiles('buildconfig/macdependencies/*.sh') }}-${{ matrix.macarch }}
132113
fail-on-cache-miss: true
133114

134115
- name: Install uv for speed
135-
uses: astral-sh/setup-uv@v5
116+
uses: astral-sh/setup-uv@v6
136117
with:
137118
version: "0.5.26"
138119

139120
- name: Build and test wheels
140-
uses: pypa/cibuildwheel@v2.23.0
121+
uses: pypa/cibuildwheel@v2.23.2
141122

142123
- uses: actions/upload-artifact@v4
143124
with:

.github/workflows/build-manylinux.yml

Lines changed: 4 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,13 @@
11
name: ManyLinux
22

33
# Run CI only when a release is created, on changes to main branch, or any PR
4-
# to main. Do not run CI on any other branch. Also, skip any non-source changes
5-
# from running on CI
4+
# to main.
65
on:
76
push:
87
branches: main
9-
paths-ignore:
10-
- 'docs/**'
11-
- 'examples/**'
12-
- '.gitignore'
13-
- '*.rst'
14-
- '*.md'
15-
- '.github/workflows/*.yml'
16-
# re-include current file to not be excluded
17-
- '!.github/workflows/build-manylinux.yml'
188

199
pull_request:
2010
branches: main
21-
paths-ignore:
22-
- 'docs/**'
23-
- 'examples/**'
24-
- '.gitignore'
25-
- '*.rst'
26-
- '*.md'
27-
- '.github/workflows/*.yml'
28-
# re-include current file to not be excluded
29-
- '!.github/workflows/build-manylinux.yml'
3011

3112
# the github release drafter can call this workflow
3213
workflow_call:
@@ -55,7 +36,7 @@ jobs:
5536
- uses: actions/checkout@v4.2.2
5637

5738
- name: Log in to the Container registry
58-
uses: docker/login-action@9780b0c442fbb1117ed29e0efdff1e18412f7567
39+
uses: docker/login-action@74a5d142397b4f367a81961eba4e8cd7edddf772
5940
with:
6041
registry: ghcr.io
6142
username: ${{ github.actor }}
@@ -75,7 +56,7 @@ jobs:
7556

7657
- name: Build and push Docker image
7758
if: steps.inspect.outcome == 'failure'
78-
uses: docker/build-push-action@471d1dc4e07e5cdedd4c2171150001c434f0b7a4
59+
uses: docker/build-push-action@263435318d21b8e681c14492fe198d362a7d2c83
7960
with:
8061
context: ${{ github.workspace }}/buildconfig/manylinux-build/docker_base
8162
file: ${{ github.workspace }}/buildconfig/manylinux-build/docker_base/Dockerfile-${{ matrix.arch }}
@@ -93,7 +74,7 @@ jobs:
9374
CIBW_MANYLINUX_AARCH64_IMAGE: ghcr.io/${{ github.repository }}_aarch64:${{ steps.meta.outputs.version }}
9475
CIBW_MANYLINUX_PYPY_AARCH64_IMAGE: ghcr.io/${{ github.repository }}_aarch64:${{ steps.meta.outputs.version }}
9576

96-
uses: pypa/cibuildwheel@v2.23.0
77+
uses: pypa/cibuildwheel@v2.23.2
9778

9879
# We upload the generated files under github actions assets
9980
- name: Upload dist

.github/workflows/build-ubuntu-debug-python.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ jobs:
8484
8585
- name: Cache debug python build
8686
id: cache-python
87-
uses: actions/cache@v4.2.2
87+
uses: actions/cache@v4.2.3
8888
with:
8989
key: ${{ matrix.python }}
9090
path: ~/.pyenv/versions/${{ matrix.python }}-debug/**

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

Lines changed: 1 addition & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -8,32 +8,13 @@
88
name: Ubuntu sdist
99

1010
# Run CI only when a release is created, on changes to main branch, or any PR
11-
# to main. Do not run CI on any other branch. Also, skip any non-source changes
12-
# from running on CI
11+
# to main.
1312
on:
1413
push:
1514
branches: main
16-
paths-ignore:
17-
- 'docs/**'
18-
- 'examples/**'
19-
- '.gitignore'
20-
- '*.rst'
21-
- '*.md'
22-
- '.github/workflows/*.yml'
23-
# re-include current file to not be excluded
24-
- '!.github/workflows/build-ubuntu-sdist.yml'
2515

2616
pull_request:
2717
branches: main
28-
paths-ignore:
29-
- 'docs/**'
30-
- 'examples/**'
31-
- '.gitignore'
32-
- '*.rst'
33-
- '*.md'
34-
- '.github/workflows/*.yml'
35-
# re-include current file to not be excluded
36-
- '!.github/workflows/build-ubuntu-sdist.yml'
3718

3819
# the github release drafter can call this workflow
3920
workflow_call:

.github/workflows/build-windows.yml

Lines changed: 3 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,13 @@
11
name: Windows
22

33
# Run CI only when a release is created, on changes to main branch, or any PR
4-
# to main. Do not run CI on any other branch. Also, skip any non-source changes
5-
# from running on CI
4+
# to main.
65
on:
76
push:
87
branches: main
9-
paths-ignore:
10-
- 'docs/**'
11-
- 'examples/**'
12-
- '.gitignore'
13-
- '*.rst'
14-
- '*.md'
15-
- '.github/workflows/*.yml'
16-
# re-include current file to not be excluded
17-
- '!.github/workflows/build-windows.yml'
188

199
pull_request:
2010
branches: main
21-
paths-ignore:
22-
- 'docs/**'
23-
- 'examples/**'
24-
- '.gitignore'
25-
- '*.rst'
26-
- '*.md'
27-
- '.github/workflows/*.yml'
28-
# re-include current file to not be excluded
29-
- '!.github/workflows/build-windows.yml'
3011

3112
# the github release drafter can call this workflow
3213
workflow_call:
@@ -57,12 +38,12 @@ jobs:
5738
arch: ${{ matrix.msvc-dev-arch }}
5839

5940
- name: Install uv for speed
60-
uses: astral-sh/setup-uv@v5
41+
uses: astral-sh/setup-uv@v6
6142
with:
6243
version: "0.5.26"
6344

6445
- name: Build and test wheels
65-
uses: pypa/cibuildwheel@v2.23.0
46+
uses: pypa/cibuildwheel@v2.23.2
6647

6748
- uses: actions/upload-artifact@v4
6849
with:

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ jobs:
4141
run: echo "VER=${GITHUB_REF_NAME#'release/'}" >> $GITHUB_OUTPUT
4242

4343
- name: Generate release attestation
44-
uses: actions/attest-build-provenance@v2.2.3
44+
uses: actions/attest-build-provenance@v2.3.0
4545
with:
4646
subject-path: "pygame-wheels/*"
4747

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,9 @@
3232
# mypy
3333
.mypy_cache/
3434

35+
# Ruff
36+
.ruff_cache
37+
3538
# Other
3639
envdev*
3740
.virtualenv*
@@ -49,4 +52,5 @@ buildconfig/win_dll_dirs.json
4952
# cython generated files
5053
src_c/_sdl2/*.c
5154
!/src_c/_sdl2/touch.c
55+
!/src_c/_sdl2/controller.c
5256
src_c/pypm.c

.pre-commit-config.yaml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
repos:
88
- repo: https://github.com/pre-commit/pre-commit-hooks
9-
rev: v4.6.0
9+
rev: v5.0.0
1010
hooks:
1111
- id: end-of-file-fixer
1212
exclude: |
@@ -26,13 +26,16 @@ repos:
2626
)$
2727
2828
- repo: https://github.com/astral-sh/ruff-pre-commit
29-
rev: v0.4.2
29+
rev: v0.11.12
3030
hooks: # See pyproject.toml for configuration options.
31+
- id: ruff
32+
name: ruff-sort-imports
33+
args: [ --select, I, --fix ]
3134
- id: ruff-format # Run the formatter
3235
types_or: [ python, pyi, jupyter ]
3336

3437
- repo: https://github.com/pre-commit/mirrors-clang-format
35-
rev: v18.1.4
38+
rev: v20.1.5
3639
hooks:
3740
- id: clang-format
3841
exclude: |

README.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ See docs/licenses for licenses of dependencies.
190190
.. |Python3| image:: https://img.shields.io/badge/python-3-blue.svg?v=1
191191

192192
.. |GithubCommits| image:: https://img.shields.io/github/commits-since/pygame-community/pygame-ce/2.5.2.svg
193-
:target: https://github.com/pygame-community/pygame-ce/compare/2.5.2...main
193+
:target: https://github.com/pygame-community/pygame-ce/compare/2.5.3...main
194194

195195
.. |DocsStatus| image:: https://img.shields.io/website?down_message=offline&label=docs&up_message=online&url=https%3A%2F%2Fpyga.me%2Fdocs%2F
196196
:target: https://pyga.me/docs/

0 commit comments

Comments
 (0)