Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sound copy #2

Open
wants to merge 355 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
355 commits
Select commit Hold shift + click to select a range
ec76793
Merge pull request #2972 from Matiiss/matiiss-fix-surface-docs-premul…
ankith26 Jul 6, 2024
9778f43
Remove obsolete surflock functions
Starbuck5 Jul 6, 2024
05ed1ad
Use PyObject_CallMethod in resource loaders
Starbuck5 Jul 6, 2024
2400f14
Version-getters SDL2/SDL3
Starbuck5 Jun 21, 2024
ad1aa9c
Merge pull request #2965 from Mega-JC/ce-logos
MyreMylar Jul 7, 2024
fca0333
Fix homepage and release notes link in pypi urls
ankith26 Jul 7, 2024
47d7aeb
get rid of useless block
Notenlish Jul 7, 2024
c570480
Merge pull request #2977 from pygame-community/ankith26-pyproject-urls
oddbookworm Jul 7, 2024
d3d815e
Merge pull request #2974 from Starbuck5/use-callmethod-in-resource-lo…
ankith26 Jul 7, 2024
d766565
Merge pull request #2959 from Notenlish/main
ankith26 Jul 7, 2024
e8d517e
Merge pull request #2973 from Starbuck5/remove-obsolete-surflock-func…
damusss Jul 7, 2024
5d806f8
restore inlining for fblits internal functionality
itzpr3d4t0r Jul 7, 2024
6b00267
ensure premul_alpha_ip works consistently
itzpr3d4t0r Jul 7, 2024
88ac7a1
format
itzpr3d4t0r Jul 7, 2024
2c734cb
Bump pypa/cibuildwheel from 2.19.1 to 2.19.2
dependabot[bot] Jul 8, 2024
1398ed2
Bump docker/build-push-action from 6.2.0 to 6.3.0
dependabot[bot] Jul 8, 2024
13d3e70
Merge pull request #2983 from pygame-community/dependabot/github_acti…
ankith26 Jul 8, 2024
79a1c58
Merge pull request #2980 from itzpr3d4t0r/fix-premul-alpha-ip
ankith26 Jul 8, 2024
38ad688
Bump cibw on circleci
ankith26 Jul 8, 2024
1fbeb32
Merge pull request #2982 from pygame-community/dependabot/github_acti…
ankith26 Jul 8, 2024
6ce3380
Centralize CI config and make it more uniform
ankith26 Jun 20, 2024
9f1c0ee
Switch build frontend to build[uv] for speed
ankith26 Jun 20, 2024
bb792ec
Add numpy test dependency where possible
ankith26 Jun 20, 2024
2b088c9
Merge pull request #2978 from itzpr3d4t0r/restore_fblits_inline
damusss Jul 8, 2024
dbc6622
Optimized `mask.from_surface()` when converting an alpha surface. (#2…
itzpr3d4t0r Jul 8, 2024
85967e2
Merge pull request #2925 from pygame-community/ankith26-display-setmode
damusss Jul 8, 2024
2de60f3
Optimized all `Rect/FRect` methods via `pgRect_FromObject` (#2908)
itzpr3d4t0r Jul 10, 2024
423fdb7
General example changes (#2581)
bilhox Jul 11, 2024
18fa73e
python -m buildconfig now works again...
oddbookworm Jul 13, 2024
cdc2756
Merge pull request #2989 from oddbookworm/fix-buildconfig-oops
damusss Jul 13, 2024
d136d38
Emit warning in set_mode when the requested size gets rejected by the OS
oddbookworm Jul 14, 2024
e7346e1
initialize h_actual and w_actual
oddbookworm Jul 14, 2024
8b2bcdc
Use python 3.8 isms in the type stubs
ankith26 Jul 15, 2024
d2c8ec2
Fix editable install test fixtures logic
ankith26 Jul 15, 2024
1896765
Remove extra pg_flip_internal that is unnecessary now
oddbookworm Jul 16, 2024
970e2b3
Merge pull request #2995 from pygame-community/ankith26-typing-py38
damusss Jul 16, 2024
31a2df0
Merge pull request #2890 from pygame-community/add-license-identifier…
ankith26 Jul 16, 2024
b35e1ce
Make deprecated API raise deprecation warnings
ankith26 Jul 16, 2024
932b5f6
Polish stubs with deprecated decorator (#2984)
damusss Jul 16, 2024
f387636
Removed unnecessary call to SDL getter, and swapped to snake-case
oddbookworm Jul 16, 2024
9f015ec
Use `SDL_TTF_VERSION_ATLEAST`
zoldalma999 Jul 16, 2024
0b0d4c2
Minor correction 🤓
Mic-lab Jul 16, 2024
7281e52
Merge pull request #3001 from pygame-community/ankith26-deprecation
oddbookworm Jul 17, 2024
3521e57
Merge pull request #3003 from zoldalma999/ttf-versionatleast
Starbuck5 Jul 17, 2024
2260c46
Merge pull request #3004 from Mic-lab/patch-1
damusss Jul 17, 2024
13fe906
Merge pull request #2996 from pygame-community/ankith26-fix-editable-…
zoldalma999 Jul 18, 2024
88f3660
Coverage CI created, hopefully it works first time lol
oddbookworm Jul 13, 2024
1cca3e7
Do coverage build with meson
ankith26 Jul 15, 2024
b62ed96
minor cleanups on the coverage action
oddbookworm Jul 20, 2024
aabeed9
Support iterable in display.update
ankith26 Jul 12, 2024
6d8007c
Merge pull request #2987 from pygame-community/ankith26-update-iterable
damusss Jul 21, 2024
f55a2e4
3.13 source support
Starbuck5 Jul 15, 2024
5371e59
Merge pull request #2994 from Starbuck5/3.13-support
Starbuck5 Jul 21, 2024
bf4d301
Merge pull request #2945 from pygame-community/ankith26-ci-upgrade
ankith26 Jul 22, 2024
ba6d659
Optimize draw.aacircle and fix typo (#3012)
mzivic7 Jul 22, 2024
14da773
Bump docker/build-push-action from 6.3.0 to 6.4.1
dependabot[bot] Jul 22, 2024
59b3419
Pin all build dependencies
ankith26 Jul 22, 2024
1dd93ae
bump meson to latest version
ankith26 Jul 22, 2024
bc28809
Merge pull request #3015 from pygame-community/ankith26-pin-build
oddbookworm Jul 22, 2024
8b48d66
Remove unnecessary pixeloffset member of subsurface data
Starbuck5 Jul 22, 2024
666f92f
Merge pull request #3013 from pygame-community/dependabot/github_acti…
ankith26 Jul 23, 2024
bb7a634
Skip flaky window tests on pypy
ankith26 Jul 23, 2024
0547247
Merge pull request #3017 from pygame-community/ankith26-window-pypy
oddbookworm Jul 23, 2024
ff88969
Fix interactive midi test_time with pytest test -s
MyreMylar Jul 25, 2024
c65d5fa
Merge pull request #2966 from pygame-community/ankith26-tobytes-premul
MyreMylar Jul 25, 2024
cd4826f
Update OpenGL Viewport when Window resizes (#2915)
damusss Jul 25, 2024
da19260
Use PyObject_CallNoArgs where applicable
Starbuck5 Jul 26, 2024
6492217
draw.c: better strategy for 24bpp writes
Starbuck5 Jul 26, 2024
ef3ef20
Merge pull request #3020 from Starbuck5/use-callnoargs
ankith26 Jul 28, 2024
4b5d83d
Changed dark theme slightly to make code more readable in some cases …
oddbookworm Jul 28, 2024
6a1560c
Merge pull request #3014 from Starbuck5/remove-unnecessary-subsurf-data
ankith26 Jul 28, 2024
ad0d2b0
Bump docker/build-push-action from 6.4.1 to 6.5.0
dependabot[bot] Jul 29, 2024
73ddf36
Bump docker/login-action from 3.2.0 to 3.3.0
dependabot[bot] Jul 29, 2024
36bf6d6
Merge pull request #3021 from Starbuck5/write-24-bit-colors-better
damusss Jul 29, 2024
5d107dc
Merge pull request #3025 from pygame-community/dependabot/github_acti…
ankith26 Jul 30, 2024
d3e1806
Merge pull request #3024 from pygame-community/dependabot/github_acti…
ankith26 Jul 30, 2024
f6d5f88
Add python 3.13 wheel support
ankith26 Aug 4, 2024
73dd899
Skip yet another flaky pypy test
ankith26 Aug 4, 2024
61c2a97
Updated SDL to 2.30.6
oddbookworm Aug 4, 2024
d8ea99c
Merge pull request #3034 from pygame-community/oddbookworm-SDL-2.30.6
ankith26 Aug 5, 2024
93cba30
Merge pull request #3031 from pygame-community/ankith26-skip-flaky
damusss Aug 5, 2024
ba48b56
Merge pull request #3030 from pygame-community/ankith26-py313
oddbookworm Aug 6, 2024
f6042ec
2.5.1.dev2
Starbuck5 Aug 6, 2024
db9dd3e
Merge pull request #3038 from pygame-community/release/2.5.1.dev2
ankith26 Aug 6, 2024
1a6a4e2
2.5.1.dev3
ankith26 Aug 6, 2024
a6e4941
Merge pull request #3039 from pygame-community/ankith26-bump-dev
ankith26 Aug 6, 2024
2640077
release machinery: fix attestation and circleci
ankith26 Aug 6, 2024
8e0c592
Merge pull request #3040 from pygame-community/ankith26-release-machi…
ankith26 Aug 7, 2024
ade9f24
2.5.2.dev1
ankith26 Aug 7, 2024
e41fd30
Merge pull request #3042 from pygame-community/ankith26-bump-main-dev
ankith26 Aug 7, 2024
8fc5dd4
Fixed a couple of versionadded tags that should have been versionadde…
oddbookworm Aug 9, 2024
9c999fc
Merge pull request #3046 from oddbookworm/fix-display-set-mode-2.0.0-…
damusss Aug 9, 2024
a761a11
Use PyObject_Vectorcall in rect
Starbuck5 Aug 11, 2024
71eecdf
Bump actions/attest-build-provenance from 1.4.0 to 1.4.1
dependabot[bot] Aug 12, 2024
31e0d35
Bump docker/build-push-action from 6.5.0 to 6.6.1
dependabot[bot] Aug 12, 2024
1f527c4
Merge pull request #3051 from pygame-community/dependabot/github_acti…
ankith26 Aug 12, 2024
c1e5802
Merge pull request #3050 from pygame-community/dependabot/github_acti…
ankith26 Aug 12, 2024
e04c75a
Remove unnecessary parts of action
oddbookworm Aug 15, 2024
3a0cc5a
Merge branch 'main' of https://github.com/pygame-community/pygame-ce …
oddbookworm Aug 15, 2024
0fb59bf
Improved geometry docs (#3043)
itzpr3d4t0r Aug 15, 2024
75fb65a
Fix imposter opengl
Starbuck5 Aug 17, 2024
ebf7edd
Merge pull request #3059 from Starbuck5/fix-imposter-opengl
Starbuck5 Aug 17, 2024
94bdfc2
Add `Window.flash(operation)` (#3054)
damusss Aug 17, 2024
c336c51
migrate importlib to resolve warning about pkg_resources
raspofabs Aug 18, 2024
dfce5f4
actually follow the migration guide this time...
raspofabs Aug 18, 2024
9208ee5
Add pygame.typing module (#3002)
damusss Aug 18, 2024
f4fedbc
handle python 3.8 case
raspofabs Aug 18, 2024
75834b1
ah, using importlib directly in both cases
raspofabs Aug 18, 2024
cd825a2
Update src_py/pkgdata.py
raspofabs Aug 18, 2024
6dda4f1
fix of/or mixup and take root of _package_or_requirement
raspofabs Aug 18, 2024
201f934
Merge pull request #3048 from Starbuck5/use-vectorcall-rect
itzpr3d4t0r Aug 18, 2024
aff0705
Merge pull request #2975 from Starbuck5/sdl3-version-compiling
MyreMylar Aug 18, 2024
3183d16
Merge pull request #2990 from pygame-community/coverage-ci
MyreMylar Aug 18, 2024
6dcd0f3
Bump docker/build-push-action from 6.6.1 to 6.7.0
dependabot[bot] Aug 19, 2024
184e670
optimized rect clipline
itzpr3d4t0r Aug 19, 2024
85154fb
lil fix
itzpr3d4t0r Aug 19, 2024
693fd53
experimental API not hidden anymore
bilhox Aug 19, 2024
9c94273
Fixed __delattr__ messaging when trying to delete vector properties, …
oddbookworm Aug 20, 2024
4dab9d7
Merge pull request #3065 from pygame-community/dependabot/github_acti…
ankith26 Aug 20, 2024
141a75d
Merge pull request #3067 from itzpr3d4t0r/rect-clipline-opt
ankith26 Aug 20, 2024
46f68c9
front page update
bilhox Aug 20, 2024
10f94e0
Added Circle.intersect()
itzpr3d4t0r Aug 20, 2024
8c724da
Merge branch 'main' into circle-intersect
itzpr3d4t0r Aug 20, 2024
bf94e72
fixes
itzpr3d4t0r Aug 20, 2024
5d3688f
add missing newlines
itzpr3d4t0r Aug 20, 2024
aad47ec
use const
itzpr3d4t0r Aug 20, 2024
cb36b97
Use optimized tuple creation functions
itzpr3d4t0r Aug 20, 2024
0f7953e
disable pylint deprecation warnings on code intended for older Python
raspofabs Aug 20, 2024
2e0800b
Removed vector3-specific check because vector2 shouldn't ever hit it
oddbookworm Aug 21, 2024
dbdcd90
Merge pull request #3072 from itzpr3d4t0r/optimize-rect-getters
ankith26 Aug 21, 2024
0020f72
Use PyObject_CallOneArg where applicable
ankith26 Jul 28, 2024
c330b69
module list update + new import way
bilhox Aug 21, 2024
0916bf6
Update `FRect` repr to handle larger values
ankith26 Aug 22, 2024
5e9ff00
new layout
bilhox Aug 22, 2024
d043f26
Add Window.focused
damusss Aug 22, 2024
cf918f1
Add Window.focused
damusss Aug 22, 2024
25e736f
Merge branch 'pygame-community:main' into experimental-docs
bilhox Aug 22, 2024
9436621
Make _CanBeRect stricter
aatle Aug 23, 2024
b18604f
Fix type var of _PathProtocol
aatle Aug 23, 2024
d7ae971
Add more typing test cases
aatle Aug 23, 2024
7961b95
Format typing_sample_app.py
aatle Aug 23, 2024
cced2e8
Change index type to int in SequenceLike
aatle Aug 23, 2024
7ce777f
Change _HasRectAttribute attr to non-writeable
aatle Aug 23, 2024
c053b7d
Use abstractmethod on pygame.typing protocols
aatle Aug 23, 2024
53ea6cc
Type annotate MySequence in typing_sample_app.py
aatle Aug 23, 2024
bf4c5a6
Copy typing.py to stub typing.pyi
aatle Aug 23, 2024
8a5fa43
Fix faulty typing test case
aatle Aug 24, 2024
0052d97
Create __all__ list for typing module
aatle Aug 24, 2024
4c8b1f0
Add another abstractmethod, remove SupportsIndex in typing
aatle Aug 24, 2024
ae066f8
Merge pull request #3077 from pygame-community/ankith26-frect-repr-fix
ankith26 Aug 24, 2024
fe8f985
Fix docs typo
damusss Aug 24, 2024
c0761a1
Remove internal _CanBeRect type
aatle Aug 25, 2024
923cadc
Remove abstractmethod from rect protocol property
aatle Aug 25, 2024
64267dd
Del abstractmethod at end of typing module
aatle Aug 25, 2024
b028d2d
Bump actions/attest-build-provenance from 1.4.1 to 1.4.2
dependabot[bot] Aug 26, 2024
0aeef1c
Merge pull request #3081 from pygame-community/dependabot/github_acti…
ankith26 Aug 26, 2024
c507028
Fix average_color docs and stubs to match implementation (#3076)
Starbuck5 Aug 26, 2024
d2c254f
Replace raise error with empty body in _HasRectAttribute
aatle Aug 27, 2024
c3d5fdc
Merge pull request #3080 from aatle/fix-typing
ankith26 Aug 27, 2024
4a4814f
Merge pull request #3079 from damusss/Window-get_focus
bilhox Aug 27, 2024
e01a44e
Add alias `pygame.Sound` (#3063)
damusss Aug 27, 2024
6ed4d45
remove unused import
itzpr3d4t0r Aug 27, 2024
9f3151c
Merge remote-tracking branch 'upstream/main' into controller-c
zoldalma999 Aug 27, 2024
72ea8f0
Fix meson build of controller module
zoldalma999 Aug 27, 2024
5cfbfae
Revert change to get_axis return range
zoldalma999 Aug 27, 2024
e412119
Fix get_mapping segfault, misc changes
zoldalma999 Aug 27, 2024
4eff7e1
Fix meson build
zoldalma999 Aug 28, 2024
bd3dbe0
Make typing.PathLike private
aatle Aug 30, 2024
7af301d
Undocument typing._PathLike type
aatle Aug 30, 2024
11317c6
Merge pull request #2056 from zoldalma999/controller-c
MyreMylar Aug 30, 2024
e5d6b89
Merge pull request #2992 from oddbookworm/linux-resize-fix
MyreMylar Aug 30, 2024
803154e
Merge pull request #3068 from bilhox/experimental-docs
MyreMylar Aug 30, 2024
431e35c
Merge pull request #3069 from oddbookworm/vector-fixes
MyreMylar Aug 30, 2024
2f1bb76
Merge pull request #3023 from pygame-community/ankith26-simple-call
MyreMylar Aug 30, 2024
42104e3
Fix component bounds checking
ankith26 Aug 30, 2024
06177e7
Merge pull request #3061 from raspofabs/main
ankith26 Aug 30, 2024
e9aeb03
List possible types for FileLike docs
aatle Aug 31, 2024
b0d45d1
Merge pull request #3086 from aatle/change-pathlike
damusss Aug 31, 2024
e0c5ac9
Updated SDL version to 2.30.7
oddbookworm Sep 8, 2024
5773632
Bump actions/attest-build-provenance from 1.4.2 to 1.4.3
dependabot[bot] Sep 9, 2024
2844f24
Merge pull request #3094 from pygame-community/oddbookworm-SDL-2.30.7
oddbookworm Sep 9, 2024
9bfdbe0
Fix test_inflate_ip__larger.
avpai-dinosaur Sep 11, 2024
961763e
Docstrings for test_inflate and test_inflate_ip are more descriptive.
avpai-dinosaur Sep 12, 2024
ca640b7
Merge pull request #3098 from avpai-dinosaur/fix-rect-inflate-tests
MyreMylar Sep 13, 2024
72af0f0
Merge pull request #3095 from pygame-community/dependabot/github_acti…
bilhox Sep 13, 2024
5d77348
Bump build dependencies
ankith26 Sep 15, 2024
15ee198
Merge pull request #3071 from itzpr3d4t0r/circle-intersect
ankith26 Sep 15, 2024
227d1f5
Remove RGBATuple
Starbuck5 Sep 16, 2024
e5f62f5
Merge pull request #3102 from Starbuck5/remove-rgbatuple
damusss Sep 16, 2024
0989f32
Merge pull request #3087 from pygame-community/ankith26-fix-set-comp-err
zoldalma999 Sep 16, 2024
f1bd7f3
Merge pull request #3100 from pygame-community/ankith26-bump-ci-deps
zoldalma999 Sep 16, 2024
d6e61c9
Enhance `pygame.mouse.get_pressed` docs (#3084)
damusss Sep 17, 2024
64c50db
Fix whitespace and eof formatting with pre-commit
ankith26 Sep 16, 2024
8204655
Bump pypa/cibuildwheel from 2.20.0 to 2.21.0
dependabot[bot] Sep 16, 2024
4320875
Sync docker base image version with cibuildwheel
ankith26 Sep 17, 2024
929d89a
Bump cibuildwheel on circleci
ankith26 Sep 17, 2024
32222d2
Merge pull request #3103 from pygame-community/dependabot/github_acti…
ankith26 Sep 18, 2024
9a1162f
Bump pypa/cibuildwheel from 2.21.0 to 2.21.1
dependabot[bot] Sep 23, 2024
004ed1f
Bump cibw on circleci
ankith26 Sep 23, 2024
85ef531
added example on how Window behaves with WINDOWCLOSE and QUIT events
MrValdez Sep 23, 2024
1b520b8
Drop MSYS2 clang32 from our CI
ankith26 Sep 23, 2024
aa7d279
reformatted to fit character limit
MrValdez Sep 23, 2024
2c782e7
Merge pull request #3112 from pygame-community/dependabot/github_acti…
ankith26 Sep 23, 2024
c0ffea2
Merge pull request #3116 from pygame-community/ankith26-drop-mingw-cl…
ankith26 Sep 24, 2024
c0d17a4
Merge pull request #3104 from pygame-community/ankith26-whitespace-fixer
zoldalma999 Sep 24, 2024
98170b3
Fix editable install on windows
ankith26 Sep 23, 2024
faef6d4
Fix segfault with antialiased draw functions with a depth different t…
bilhox Sep 24, 2024
c1cadfd
Add japanese readme (#3114)
hisa10 Sep 24, 2024
ea0a0ed
Update the dependency section of zh-cn README
yunline Sep 25, 2024
2e952dc
Merge pull request #3119 from yunline/update-zh-cn-readme
bilhox Sep 25, 2024
ded57ba
Add desktop argument to get_pos and get_pressed (#3105)
damusss Sep 26, 2024
f6998d4
fixed Sphinx errors
MrValdez Sep 27, 2024
6f598c0
Fix cppcheck warnings in color lerp
ankith26 Sep 26, 2024
4d4819d
Bump ubuntu to 24.04 on CI
ankith26 Sep 26, 2024
14f4535
Skip wavpack tests with system deps
ankith26 Sep 27, 2024
f554e77
Merge pull request #3115 from MrValdez/window-api
zoldalma999 Sep 27, 2024
ddc900e
Merge pull request #3117 from pygame-community/ankith26-fix-editable
oddbookworm Sep 27, 2024
5b1cebb
Fix a compiler warning in debug mode
ankith26 Sep 28, 2024
0ef95bd
Added additional circle attributes
MrRedstone058 Sep 28, 2024
4aa600f
Update circle.c
MrRedstone058 Sep 28, 2024
52a36e1
Update circle.c
MrRedstone058 Sep 28, 2024
e56dca4
Update docs
MrRedstone058 Sep 28, 2024
d4a8141
Invert copy and __copy__
damusss Sep 28, 2024
4e97903
small changes
MrRedstone058 Sep 29, 2024
b63588b
Update geometry.pyi
MrRedstone058 Sep 29, 2024
f224675
Update geometry.pyi
MrRedstone058 Sep 29, 2024
66e32e0
Update geometry.pyi
MrRedstone058 Sep 29, 2024
8b8766b
Fix stopping midi timer on midi.quit()
MyreMylar Sep 29, 2024
f455947
Replace inversion with explicitness
damusss Sep 29, 2024
a4eec3a
Add `Circle.collidelist/collidelistall()` (#2880)
damusss Sep 29, 2024
5d9b30e
Merge pull request #3018 from pygame-community/fix-interactive-midi-test
zoldalma999 Sep 29, 2024
e9ee4c7
Merge pull request #3129 from damusss/copy-__copy__-invert
zoldalma999 Sep 29, 2024
c00b777
Merge pull request #3124 from pygame-community/ankith26-fix-comp-warning
zoldalma999 Sep 29, 2024
fd47664
Set error when too many numbers of argument in ``pygame.Color.from_co…
bilhox Sep 29, 2024
3f0ecbe
Bump actions/checkout from 4.1.7 to 4.2.0
dependabot[bot] Sep 30, 2024
a6774ae
Bump docker/build-push-action from 6.7.0 to 6.8.0
dependabot[bot] Sep 30, 2024
068c214
Merge pull request #3135 from pygame-community/dependabot/github_acti…
ankith26 Sep 30, 2024
0fe6832
Merge pull request #3136 from pygame-community/dependabot/github_acti…
ankith26 Sep 30, 2024
b03251e
Merge pull request #3127 from MrRedstone058/geometry_circle_attributes
MyreMylar Oct 1, 2024
eae1944
Merge pull request #3123 from pygame-community/ankith26-ci-ubuntu-upg…
MyreMylar Oct 1, 2024
3076513
Clarify how Rect and positions relate in the intro tutorial (#3111)
datapythonista Oct 1, 2024
532482a
sound copy part 1
bilhox Oct 5, 2024
40bacbb
error message
bilhox Oct 23, 2024
1fd41e2
snd_cpoy tests
Borishkof Nov 24, 2024
aec7da7
sound copy first fix and better tests
Borishkof Nov 24, 2024
3be9a1c
Documentation for pygame.Sound.copy.
Borishkof Nov 27, 2024
726244d
Better documentation for pygame.sound.copy
Borishkof Nov 27, 2024
4bfd1e8
stubs addition and fixing mp3 test
Borishkof Nov 28, 2024
446c2f1
"Add xm and opus to tested formats
Borishkof Nov 29, 2024
cc67e0d
safe loading files format
Borishkof Nov 30, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 11 additions & 6 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,9 @@ jobs:

environment:
# these environment variables will be passed to the docker container
- CIBW_ENVIRONMENT: SDL_VIDEODRIVER=dummy SDL_AUDIODRIVER=disk
- CIBW_BUILD: "cp3{8,9,10,11,12}-* pp3{8,9,10}-*"
- CIBW_ARCHS: aarch64
- CIBW_SKIP: '*-musllinux_*'
- CIBW_MANYLINUX_AARCH64_IMAGE: manylinux2014_base_aarch64
- CIBW_MANYLINUX_PYPY_AARCH64_IMAGE: manylinux2014_base_aarch64
- CIBW_TEST_COMMAND: python -m pygame.tests -v --exclude opengl,music,timing --time_out 300
- CIBW_BUILD_VERBOSITY: 2

steps:
- checkout
Expand All @@ -47,7 +42,7 @@ jobs:
- run:
name: Build the Linux wheels.
command: |
pip3 install --user cibuildwheel==2.18.1
pip3 install --user cibuildwheel==2.21.1
PATH="$HOME/.local/bin:$PATH" cibuildwheel --output-dir wheelhouse

- store_artifacts:
Expand All @@ -57,5 +52,15 @@ jobs:
# See: https://circleci.com/docs/2.0/configuration-reference/#workflows
workflows:
build-arm:
when:
equal: [ "", << pipeline.parameters.GHA_Actor >> ]
jobs:
- linux-arm-wheels

# run a separate, identical release job only if triggered
build-arm-release:
when:
not:
equal: [ "", << pipeline.parameters.GHA_Actor >> ]
jobs:
- linux-arm-wheels
4 changes: 2 additions & 2 deletions .github/ISSUE_TEMPLATE/blank_issue.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
name: 🗎 Blank Issue
about: A blank issue. For those who know what they are doing.
title: ''
labels:
labels:
assignees: ''

---
---
4 changes: 2 additions & 2 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ assignees: ''

**Environment:**

If possible, please include the output of `pygame.print_debug_info()` from your program in your bug report. It looks something
If possible, please include the output of `pygame.print_debug_info()` from your program in your bug report. It looks something
like this:

```
Expand All @@ -33,7 +33,7 @@ Freetype versions: Linked: 2.11.1 Compiled: 2.11.1
Display Driver: windows
Mixer Driver: wasapi
```
If you can't get the debug output, any of the environment details included in it that you do know would be useful
If you can't get the debug output, any of the environment details included in it that you do know would be useful
in diagnosing the issue & helping you.

Other environment details, not included in `print_debug_info()`, that might help:
Expand Down
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/enhancement.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ assignees: ''

**Description**

Describe your enhancement, as clearly as possible.
Describe your enhancement, as clearly as possible.
8 changes: 4 additions & 4 deletions .github/workflows/build-debian-multiarch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ env:
jobs:
build-multiarch:
name: Debian (Bookworm - 12) [${{ matrix.arch }}]
runs-on: ubuntu-22.04
runs-on: ubuntu-24.04

strategy:
fail-fast: false # if a particular matrix build fails, don't skip the rest
Expand All @@ -65,7 +65,7 @@ jobs:
- { arch: armv7, base_image: 'balenalib/raspberrypi3-debian:bookworm' }

steps:
- uses: actions/checkout@v4.1.6
- uses: actions/checkout@v4.2.0

- name: Build sources and run tests
uses: uraimo/[email protected]
Expand Down Expand Up @@ -107,7 +107,7 @@ jobs:
export SDL_VIDEODRIVER=dummy
export SDL_AUDIODRIVER=disk
python3 -m pygame.tests -v --exclude opengl,music,timing --time_out 300

# Upload the generated files under github actions assets section
- name: Upload dist
uses: actions/upload-artifact@v4
Expand All @@ -120,7 +120,7 @@ jobs:
test-armv7-on-armv6:
needs: build-multiarch
name: Debian (Bookworm - 12) [build - armv7, test - armv6]
runs-on: ubuntu-22.04
runs-on: ubuntu-24.04
steps:
- name: Download all multiarch artifacts
uses: actions/download-artifact@v4
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/build-emsdk.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ jobs:
SDKROOT: /opt/python-wasm-sdk

steps:
- uses: actions/checkout@v4.1.6
- uses: actions/checkout@v4.2.0

- name: Regen with latest cython (using system python3)
run: |
Expand Down
78 changes: 17 additions & 61 deletions .github/workflows/build-macos.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: macOS

# Run CI only when a release is created, on changes to main branch, or any PR
# to main. Do not run CI on any other branch. Also, skip any non-source changes
# Run CI only when a release is created, on changes to main branch, or any PR
# to main. Do not run CI on any other branch. Also, skip any non-source changes
# from running on CI
on:
push:
Expand All @@ -27,7 +27,7 @@ on:
- '.github/workflows/*.yml'
# re-include current file to not be excluded
- '!.github/workflows/build-macos.yml'

# the github release drafter can call this workflow
workflow_call:

Expand All @@ -47,14 +47,14 @@ jobs:
- { macarch: x86_64, os: macos-13 }

steps:
- uses: actions/checkout@v4.1.6
- uses: actions/checkout@v4.2.0

- name: Test for Mac Deps cache hit
id: macdep-cache
uses: actions/[email protected]
with:
path: ${{ github.workspace }}/pygame_mac_deps_${{ matrix.macarch }}
# The hash of all files in buildconfig manylinux-build and macdependencies is
# The hash of all files in buildconfig manylinux-build and macdependencies is
# the key to the cache. If anything changes here, the deps are built again
key: macdep-${{ hashFiles('buildconfig/manylinux-build/**') }}-${{ hashFiles('buildconfig/macdependencies/*.sh') }}-${{ matrix.macarch }}-${{ matrix.os }}
lookup-only: true
Expand All @@ -76,58 +76,18 @@ jobs:
# path: ${{ github.workspace }}/pygame_mac_deps_${{ matrix.macarch }}

build:
name: ${{ matrix.name }}
name: ${{ matrix.macarch }}
needs: deps
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false # if a particular matrix build fails, don't skip the rest
matrix:
# Split job into 5 matrix builds, because GH actions provides 5 concurrent
# builds on macOS. This needs to be manually kept updated so that each
# of these builds take roughly the same time
include:
- {
name: "x86_64 (CPython 3.9 - 3.12)",
macarch: x86_64,
os: macos-13,
pyversions: "cp3{9,10,11,12}-*",
}

- {
name: "x86_64 (Python 3.8)",
macarch: x86_64,
os: macos-13,
# CPython/PyPy 3.8
pyversions: "?p38-*",
}

- {
name: "x86_64 (PyPy 3.9 and 3.10)",
macarch: x86_64,
os: macos-13,
pyversions: "pp39-* pp310-*",
}

- {
name: "arm64 (CPython 3.8 - 3.10)",
macarch: arm64,
os: macos-14,
pyversions: "cp3{8,9,10}-*",
}

- {
name: "arm64 (CPython 3.11 - 3.12)",
macarch: arm64,
os: macos-14,
pyversions: "cp3{11,12}-*",
}
- { macarch: arm64, os: macos-14 }
- { macarch: x86_64, os: macos-13 }

env:
MAC_ARCH: ${{ matrix.macarch }}
# load pip config from this file. Define this in 'CIBW_ENVIRONMENT'
# because this should not affect cibuildwheel machinery
# also define environment variables needed for testing
CIBW_ENVIRONMENT: SDL_VIDEODRIVER=dummy SDL_AUDIODRIVER=disk

# Explicitly tell CIBW what the wheel arch deployment target should be
# There seems to be no better way to set this than this env
Expand All @@ -140,8 +100,6 @@ jobs:
# should be for 10.11 on x86
MACOSX_DEPLOYMENT_TARGET: ${{ matrix.macarch == 'x86_64' && '10.11' || '11.0' }}

CIBW_BUILD: ${{ matrix.pyversions }}

CIBW_ARCHS: ${{ matrix.macarch }}

# Setup macOS dependencies
Expand All @@ -152,25 +110,19 @@ jobs:
bash ./install_mac_deps.sh

CIBW_BEFORE_BUILD: |
pip install numpy
cp -r ${{ github.workspace }}/pygame_mac_deps_${{ matrix.macarch }} ${{ github.workspace }}/pygame_mac_deps

# To remove any speculations about the wheel not being self-contained
CIBW_BEFORE_TEST: rm -rf ${{ github.workspace }}/pygame_mac_deps

CIBW_TEST_COMMAND: python -m pygame.tests -v --exclude opengl,timing --time_out 300

# Increase pip debugging output
CIBW_BUILD_VERBOSITY: 2

steps:
- uses: actions/checkout@v4.1.6
- uses: actions/checkout@v4.2.0

- name: pip cache
uses: actions/[email protected]
with:
path: ~/Library/Caches/pip # This cache path is only right on mac
key: pip-cache-${{ matrix.name }}
key: pip-cache-${{ matrix.macarch }}-${{ matrix.os }}

- name: Fetch Mac deps
id: macdep-cache
Expand All @@ -180,12 +132,16 @@ jobs:
key: macdep-${{ hashFiles('buildconfig/manylinux-build/**') }}-${{ hashFiles('buildconfig/macdependencies/*.sh') }}-${{ matrix.macarch }}
fail-on-cache-miss: true

- name: Install uv for speed
uses: yezz123/setup-uv@v4
with:
uv-version: "0.4.10"

- name: Build and test wheels
uses: pypa/cibuildwheel@v2.18.1
uses: pypa/cibuildwheel@v2.21.1

- uses: actions/upload-artifact@v4
with:
name: pygame-wheels-macos-${{ matrix.name }}
name: pygame-wheels-macos-${{ matrix.macarch }}
path: ./wheelhouse/*.whl
compression-level: 0 # wheels are already zip files, no need for more compression

45 changes: 11 additions & 34 deletions .github/workflows/build-manylinux.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: ManyLinux

# Run CI only when a release is created, on changes to main branch, or any PR
# to main. Do not run CI on any other branch. Also, skip any non-source changes
# Run CI only when a release is created, on changes to main branch, or any PR
# to main. Do not run CI on any other branch. Also, skip any non-source changes
# from running on CI
on:
push:
Expand All @@ -27,7 +27,7 @@ on:
- '.github/workflows/*.yml'
# re-include current file to not be excluded
- '!.github/workflows/build-manylinux.yml'

# the github release drafter can call this workflow
workflow_call:

Expand All @@ -38,51 +38,29 @@ concurrency:
jobs:
build:
name: ${{ matrix.arch }}
runs-on: ubuntu-22.04
runs-on: ubuntu-24.04
permissions:
contents: read
packages: write

strategy:
fail-fast: false # if a particular matrix build fails, don't skip the rest
matrix:
arch: [x86_64, i686]

env:
# load pip config from this file. Define this in 'CIBW_ENVIRONMENT'
# because this should not affect cibuildwheel machinery
# also define environment variables needed for testing
CIBW_ENVIRONMENT: SDL_VIDEODRIVER=dummy SDL_AUDIODRIVER=disk

CIBW_BUILD: "cp3{8,9,10,11,12}-* pp3{8,9,10}-*"
env:
CIBW_ARCHS: ${{ matrix.arch }}

# skip musllinux for now
CIBW_SKIP: '*-musllinux_*'

CIBW_TEST_COMMAND: python -m pygame.tests -v --exclude opengl,music,timing --time_out 300

# To 'solve' this issue:
# >>> process 338: D-Bus library appears to be incorrectly set up; failed to read
# machine uuid: Failed to open "/var/lib/dbus/machine-id": No such file or directory
CIBW_BEFORE_TEST: |
if [ ! -f /var/lib/dbus/machine-id ]; then
dbus-uuidgen > /var/lib/dbus/machine-id
fi

# Increase pip debugging output
CIBW_BUILD_VERBOSITY: 2

steps:
- uses: actions/checkout@v4.1.6
- uses: actions/checkout@v4.2.0

- name: Log in to the Container registry
uses: docker/login-action@0d4c9c5ea7693da7b068278f7b52bda2a190a446
uses: docker/login-action@9780b0c442fbb1117ed29e0efdff1e18412f7567
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Inspect image, skip build if image exists
id: inspect
continue-on-error: true
Expand All @@ -97,7 +75,7 @@ jobs:

- name: Build and push Docker image
if: steps.inspect.outcome == 'failure'
uses: docker/build-push-action@2cdde995de11925a030ce8070c3d77a52ffcf1c0
uses: docker/build-push-action@32945a339266b759abcbdc89316275140b0fc960
with:
context: ${{ github.workspace }}/buildconfig/manylinux-build/docker_base
file: ${{ github.workspace }}/buildconfig/manylinux-build/docker_base/Dockerfile-${{ matrix.arch }}
Expand All @@ -113,7 +91,7 @@ jobs:
CIBW_MANYLINUX_I686_IMAGE: ghcr.io/${{ github.repository }}_i686:${{ steps.meta.outputs.version }}
CIBW_MANYLINUX_PYPY_I686_IMAGE: ghcr.io/${{ github.repository }}_i686:${{ steps.meta.outputs.version }}

uses: pypa/cibuildwheel@v2.18.1
uses: pypa/cibuildwheel@v2.21.1

# We upload the generated files under github actions assets
- name: Upload dist
Expand All @@ -122,4 +100,3 @@ jobs:
name: pygame-wheels-manylinux-${{ matrix.arch }}
path: ./wheelhouse/*.whl
compression-level: 0 # wheels are already zip files, no need for more compression

3 changes: 1 addition & 2 deletions .github/workflows/build-on-msys2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,11 @@ jobs:
- { sys: mingw64, env: x86_64 }
- { sys: mingw32, env: i686 }
- { sys: ucrt64, env: ucrt-x86_64 }
- { sys: clang32, env: clang-i686 }
- { sys: clang64, env: clang-x86_64 }
# - { sys: clangarm64, env: clang-aarch64 }

steps:
- uses: actions/checkout@v4.1.6
- uses: actions/checkout@v4.2.0
- uses: msys2/setup-msys2@v2
with:
msystem: ${{ matrix.sys }}
Expand Down
Loading