2.5.2.dev2
Pre-release
Pre-release
Pre release version of 2.5.2 for testing, we appreciate everyone who tests out our dev releases!
Release highlights
- Promoted pygame.Window to public API. Allows use of multiple windows at once, new window operations.
- Various rect optimizations
- Dependency updates: SDL and lower level C libraries
- New module pygame.typing
- Fixed segfault in antialiased draw functions with non 32 bit surfaces
What's Changed
- 2.5.2.dev1 by @ankith26 in #3042
- Fixed a couple of versionadded tags that should have been versionaddedold in
display
docs by @oddbookworm in #3046 - Bump docker/build-push-action from 6.5.0 to 6.6.1 by @dependabot in #3051
- Bump actions/attest-build-provenance from 1.4.0 to 1.4.1 by @dependabot in #3050
- Improved geometry docs by @itzpr3d4t0r in #3043
- Fix imposter opengl by @Starbuck5 in #3059
- Add
Window.flash(operation)
by @damusss in #3054 - Add pygame.typing module by @damusss in #3002
- Use PyObject_Vectorcall in rect by @Starbuck5 in #3048
- Version-getters SDL2/SDL3 by @Starbuck5 in #2975
- Coverage CI created, hopefully it works first time lol by @oddbookworm in #2990
- Bump docker/build-push-action from 6.6.1 to 6.7.0 by @dependabot in #3065
- Optimized
Rect.clipline()
by @itzpr3d4t0r in #3067 - Optimized tuple creation for Rect getters by @itzpr3d4t0r in #3072
- Update
FRect
repr to handle larger values by @ankith26 in #3077 - Bump actions/attest-build-provenance from 1.4.1 to 1.4.2 by @dependabot in #3081
- Fix average_color docs and stubs to match implementation by @Starbuck5 in #3076
- Fix and improve
pygame.typing
module by @aatle in #3080 - Add
Window.focused
by @damusss in #3079 - Add alias
pygame.Sound
by @damusss in #3063 - Port the controller module to C. by @zoldalma999 in #2056
- Fix break when the OS resizes our window in
set_mode
by @oddbookworm in #2992 - Make experimental API not hidden in the docs anymore by @bilhox in #3068
Vector{2,3}.__delattr__
messaging fixed when deletingx, y, {z}
and removedVector4
zombies by @oddbookworm in #3069- Use PyObject_CallOneArg where applicable by @ankith26 in #3023
- migrate importlib to resolve warning about pkg_resources by @raspofabs in #3061
- Make
pygame.typing.PathLike
internal/private by @aatle in #3086 - Updated SDL version to 2.30.7 by @oddbookworm in #3094
- Fix test_inflate_ip__larger. by @avpai-dinosaur in #3098
- Bump actions/attest-build-provenance from 1.4.2 to 1.4.3 by @dependabot in #3095
- Add
Circle.intersect()
by @itzpr3d4t0r in #3071 - Remove RGBATuple by @Starbuck5 in #3102
- Fix component bounds checking by @ankith26 in #3087
- Bump build dependencies by @ankith26 in #3100
- Enhance
pygame.mouse.get_pressed
docs by @damusss in #3084 - Bump pypa/cibuildwheel from 2.20.0 to 2.21.0 by @dependabot in #3103
- Bump pypa/cibuildwheel from 2.21.0 to 2.21.1 by @dependabot in #3112
- Drop MSYS2 clang32 from our CI by @ankith26 in #3116
- Fix whitespace and eof formatting with pre-commit by @ankith26 in #3104
- Fix segfault with antialiased draw functions with a depth different than 32bits by @bilhox in #3008
- Add japanese readme by @hisa10 in #3114
- Update the dependency section of zh-cn README by @yunline in #3119
- Add
desktop
argument tomouse.get_pos
andmouse.get_pressed
by @damusss in #3105 - added example on how Window behaves with WINDOWCLOSE and QUIT events by @MrValdez in #3115
- Fix editable install on windows by @ankith26 in #3117
- Add
Circle.collidelist/collidelistall()
by @damusss in #2880 - Fix midi timer reset when quit by @MyreMylar in #3018
- Make
copy
methods explicit for linting by @damusss in #3129 - Fix a compiler warning in debug mode by @ankith26 in #3124
- Set error when too many numbers of argument in
pygame.Color.from_colorspace
by @bilhox in #3125 - Bump actions/checkout from 4.1.7 to 4.2.0 by @dependabot in #3135
- Bump docker/build-push-action from 6.7.0 to 6.8.0 by @dependabot in #3136
- Added additional circle attributes by @MrRedstone058 in #3127
- Bump ubuntu to 24.04 on CI, fix cppcheck by @ankith26 in #3123
- Clarify how Rect and positions relate in the intro tutorial by @datapythonista in #3111
- Fix aalines overlap by @mzivic7 in #2912
- wasm: controller is not multiphase init + workaround for wasm 313t by @pmp-p in #3137
- Rename
pygame.typing.Coordinate
toPoint
, fix related grammar by @aatle in #3139 - Fix
(F)Rect.scale_by(_ip)
handling of thescale_by
parameter by @ankith26 in #3078 - Add 9-patch to examples by @damusss in #2985
- transform.solid_overlay by @ScriptLineStudios in #2304
- Add draw.aaline width argument by @mzivic7 in #3140
- New up-to-date review of french readme + note of when it was last reviewed by @bilhox in #3142
- Missing pixels in
aalines
when using integer coordinates by @mzivic7 in #3144 - Add meson flag for compiling with SDL3 by @ankith26 in #3141
- SDL3: compile rect, bufferproxy, math, newbuffer, geometry by @ankith26 in #3145
- Fixes for rwobject (now iostream) SDL3 by @Starbuck5 in #2933
- SDL3 support for pygame.system by @Starbuck5 in #3146
- Fix stubcheck error on windows, mark typealiases as such in typing by @zoldalma999 in #3147
- Bump docker/build-push-action from 6.8.0 to 6.9.0 by @dependabot in #3151
- Bump actions/cache from 4.0.2 to 4.1.0 by @dependabot in #3153
- Add Italian README by @damusss in #3120
- Bump pypa/cibuildwheel from 2.21.1 to 2.21.3 by @dependabot in #3161
- Adjust pg_MappedColorFromObj API for SDL3-porting by @Starbuck5 in #3160
- Fix handling all color types in
pygame.transform.threshold
by @damusss in #3156 - Improve color notation in the docs by @damusss in #3165
- SDL 2.30.8 by @Starbuck5 in #3168
- Add basic pygame.typing unit test, remove problematic TypeAlias usage by @ankith26 in #3150
- Added
geometry.Line
base by @itzpr3d4t0r in #3131 - wasm: better wasm fencing by @pmp-p in #3163
- Publicize window docs by @Starbuck5 in #3170
- mac/manylinux deps updates 2024 by @ankith26 in #3118
New Contributors
- @aatle made their first contribution in #3080
- @raspofabs made their first contribution in #3061
- @avpai-dinosaur made their first contribution in #3098
- @hisa10 made their first contribution in #3114
- @MrValdez made their first contribution in #3115
- @MrRedstone058 made their first contribution in #3127
- @datapythonista made their first contribution in #3111
Full Changelog: 2.5.1...2.5.2.dev2