Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-PySDL2 for openSUSE:Factory checked in at 2022-08-01 21:32:03 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-PySDL2 (Old) and /work/SRC/openSUSE:Factory/.python-PySDL2.new.1533 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-PySDL2" Mon Aug 1 21:32:03 2022 rev:8 rq:992068 version:0.9.13 Changes: -------- --- /work/SRC/openSUSE:Factory/python-PySDL2/python-PySDL2.changes 2022-03-21 20:11:41.656420400 +0100 +++ /work/SRC/openSUSE:Factory/.python-PySDL2.new.1533/python-PySDL2.changes 2022-08-01 21:32:47.994069755 +0200 @@ -1,0 +2,23 @@ +Fri Jul 29 12:38:06 UTC 2022 - Matej Cepl <mc...@suse.com> + +- Update to 0.9.13: + - Updated to wrap new functions and constants in SDL_ttf + 2.20.0. + - Updated to wrap new functions and constants in SDL_mixer + 2.6.0. + - Updated to wrap new functions and constants in SDL_image + 2.6.0. + - Added experimental bindings for the new functions and + constants in the SDL 2.23.1 pre-release. + - Added a new function :func:sdl2.ext.load_svg that allows + loading simple SVG images at arbitrary resolutions with + SDL_image 2.6.0 or later. + - Added bindings for new functions and constants introduced in + SDL2 2.0.22 + - Added a stable API for accessing the raw ctypes function + objects for SDL2 functions + - Various bugfixes (see the project's news.rst for more info) +- Add mixer_tests_fix.patch to switch off failing tests + (gh#py-sdl/py-sdl2#241). + +------------------------------------------------------------------- Old: ---- PySDL2-0.9.11.tar.gz New: ---- PySDL2-0.9.13.tar.gz mixer_tests_fix.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-PySDL2.spec ++++++ --- /var/tmp/diff_new_pack.W7xrkR/_old 2022-08-01 21:32:48.610071522 +0200 +++ /var/tmp/diff_new_pack.W7xrkR/_new 2022-08-01 21:32:48.618071545 +0200 @@ -19,18 +19,23 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} %define X_display ":98" Name: python-PySDL2 -Version: 0.9.11 +Version: 0.9.13 Release: 0 Summary: Python ctypes wrapper around SDL2 License: SUSE-Public-Domain URL: https://github.com/py-sdl/py-sdl2 Source: https://files.pythonhosted.org/packages/source/P/PySDL2/PySDL2-%{version}.tar.gz +# PATCH-FIX-UPSTREAM mixer_tests_fix.patch gh#py-sdl/py-sdl2#241 mc...@suse.com +# allow dynamic configuration of libmpg123 +Patch0: mixer_tests_fix.patch +BuildRequires: %{python_module pip} BuildRequires: %{python_module setuptools} -BuildRequires: SDL2 >= 2.0.5 -BuildRequires: SDL2_gfx >= 1.0.3 -BuildRequires: SDL2_image >= 2.0.1 -BuildRequires: SDL2_mixer >= 2.0.1 -BuildRequires: SDL2_ttf >= 2.0.14 +BuildRequires: %{python_module wheel} +BuildRequires: SDL2 >= 2.0.22 +BuildRequires: SDL2_gfx >= 1.0.4 +BuildRequires: SDL2_image >= 2.6.0 +BuildRequires: SDL2_mixer >= 2.6.0 +BuildRequires: SDL2_ttf >= 2.20.0 BuildRequires: fdupes BuildRequires: python-rpm-macros # SECTION test requirements @@ -39,11 +44,11 @@ BuildRequires: %{python_module pytest} BuildRequires: xorg-x11-server # /SECTION -Requires: SDL2 >= 2.0.5 -Requires: SDL2_gfx >= 1.0.3 -Requires: SDL2_image >= 2.0.1 -Requires: SDL2_mixer >= 2.0.1 -Requires: SDL2_ttf >= 2.0.14 +Requires: SDL2 >= 2.0.22 +Requires: SDL2_gfx >= 1.0.4 +Requires: SDL2_image >= 2.6.0 +Requires: SDL2_mixer >= 2.6.0 +Requires: SDL2_ttf >= 2.20.0 BuildArch: noarch %python_subpackages @@ -55,13 +60,14 @@ %prep %autosetup -p1 -n PySDL2-%{version} + sed -i 's/\r$//' AUTHORS.txt COPYING.txt README.md %build -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitelib} %check @@ -98,7 +104,7 @@ %files %{python_files} %license COPYING.txt -%doc AUTHORS.txt README.md +%doc AUTHORS.txt README.md doc/ %{python_sitelib}/sdl2 %{python_sitelib}/PySDL2-%{version}*-info ++++++ PySDL2-0.9.11.tar.gz -> PySDL2-0.9.13.tar.gz ++++++ ++++ 23060 lines of diff (skipped) ++++++ mixer_tests_fix.patch ++++++ diff --git a/sdl2/test/sdlmixer_test.py b/sdl2/test/sdlmixer_test.py index 8d2db3e..dd50004 100644 --- a/sdl2/test/sdlmixer_test.py +++ b/sdl2/test/sdlmixer_test.py @@ -19,6 +19,14 @@ def _get_sound_path(fmt): testdir = os.path.dirname(os.path.abspath(__file__)) return os.path.join(testdir, "resources", fname) +def _has_decoder(decoder): + decoders = [] + num = sdlmixer.Mix_GetNumChunkDecoders() + for i in range(0, num): + name = sdlmixer.Mix_GetChunkDecoder(i) + decoders.append(name.decode('utf-8')) + return decoder.upper() in decoders + @pytest.fixture(scope="module") def with_sdl_mixer(): # Initialize SDL2 with video and audio subsystems @@ -41,6 +49,8 @@ def with_sdl_mixer(): @pytest.fixture def with_mixchunk(with_sdl_mixer): + if not _has_decoder("mp3"): + pytest.skip("No MP3 decoder available for SDL_mixer") fpath = _get_sound_path("mp3") chk = sdlmixer.Mix_LoadWAV(fpath.encode("utf-8")) err = sdlmixer.Mix_GetError() @@ -51,6 +61,8 @@ def with_mixchunk(with_sdl_mixer): @pytest.fixture def with_music(with_sdl_mixer): + if not _has_decoder("mp3"): + pytest.skip("No MP3 decoder available for SDL_mixer") fpath = _get_sound_path("mp3") mus = sdlmixer.Mix_LoadMUS(fpath.encode("utf-8")) err = sdlmixer.Mix_GetError() @@ -140,6 +152,8 @@ def test_Mix_QuerySpec(with_sdl_mixer): assert fmt.value in audio.AUDIO_FORMATS def test_Mix_LoadFreeWAV(with_sdl_mixer): + if not _has_decoder("mp3"): + pytest.skip("No MP3 decoder available for SDL_mixer") fpath = _get_sound_path("mp3") chk = sdlmixer.Mix_LoadWAV(fpath.encode("utf-8")) assert isinstance(chk.contents, sdlmixer.Mix_Chunk) @@ -147,6 +161,8 @@ def test_Mix_LoadFreeWAV(with_sdl_mixer): sdlmixer.Mix_FreeChunk(chk) def test_Mix_LoadWAV_RW(with_sdl_mixer): + if not _has_decoder("mp3"): + pytest.skip("No MP3 decoder available for SDL_mixer") fpath = _get_sound_path("mp3") rw = sdl2.SDL_RWFromFile(fpath.encode("utf-8"), b"r") chk = sdlmixer.Mix_LoadWAV_RW(rw, 1) @@ -155,6 +171,8 @@ def test_Mix_LoadWAV_RW(with_sdl_mixer): sdlmixer.Mix_FreeChunk(chk) def test_Mix_LoadFreeMUS(with_sdl_mixer): + if not _has_decoder("mp3"): + pytest.skip("No MP3 decoder available for SDL_mixer") fpath = _get_sound_path("mp3") mus = sdlmixer.Mix_LoadMUS(fpath.encode("utf-8")) assert isinstance(mus.contents, sdlmixer.Mix_Music) @@ -162,6 +180,8 @@ def test_Mix_LoadFreeMUS(with_sdl_mixer): sdlmixer.Mix_FreeMusic(mus) def test_Mix_LoadMUS_RW(with_sdl_mixer): + if not _has_decoder("mp3"): + pytest.skip("No MP3 decoder available for SDL_mixer") fpath = _get_sound_path("mp3") rw = sdl2.SDL_RWFromFile(fpath.encode("utf-8"), b"r") mus = sdlmixer.Mix_LoadMUS_RW(rw, 1)