From d8983e764839069dc17378007bcb666081331fa748d933285a2b5e5902c876f6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Tue, 18 Feb 2025 11:47:37 +0000 Subject: [PATCH] Accepting request 1246606 from home:glaubitz:branches:devel:languages:python - Update to 0.11.0 * Fixed `Mixer.getvolume()` returning outdated value * Fixed PCM crashing with some sample formats due to buffer size miscalculation * Fixed `PCM.read()` ignoring overruns (regression in 0.10.0) * Reverted to `PCM.write()` not throwing an exception on playback buffer underrun; instead, return -EPIPE like `PCM.read()` does on overrun * Added `PCM.avail()` and `PCM.polldescriptors_revents()` functions * Added `nominal_bits` and `physical_bits` entries to `PCM.info()`'s return value * Added Python type hint file, and adjusted documentation accordingly * Improvements to the examples, in particular isine.py - Ignore PollDescriptorArgsTest when running testsuite - Limit Python files matched in %files section - Switch build system from setuptools to pyproject.toml * Add python-pip and python-wheel to BuildRequires * Replace %python_build with %pyproject_wheel * Replace %python_install with %pyproject_install - Switch package to modern Python Stack on SLE-15 * Use Python 3.11 on SLE-15 by default * Drop support for older Python versions OBS-URL: https://build.opensuse.org/request/show/1246606 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyalsaaudio?expand=0&rev=17 --- pyalsaaudio-0.10.0.tar.gz | 3 --- pyalsaaudio-0.11.0.tar.gz | 3 +++ python-pyalsaaudio.changes | 25 +++++++++++++++++++++++++ python-pyalsaaudio.spec | 17 ++++++++++------- 4 files changed, 38 insertions(+), 10 deletions(-) delete mode 100644 pyalsaaudio-0.10.0.tar.gz create mode 100644 pyalsaaudio-0.11.0.tar.gz diff --git a/pyalsaaudio-0.10.0.tar.gz b/pyalsaaudio-0.10.0.tar.gz deleted file mode 100644 index a00d94e..0000000 --- a/pyalsaaudio-0.10.0.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:e21175500a2bd310ae3867e7991639defc1e2a5c92cf1b9f7083296b346738ab -size 637432 diff --git a/pyalsaaudio-0.11.0.tar.gz b/pyalsaaudio-0.11.0.tar.gz new file mode 100644 index 0000000..8628b39 --- /dev/null +++ b/pyalsaaudio-0.11.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:a78a9dca33524b2c9064b34e21f5ab874272313cf324a9a77592f396a5e0fddc +size 311152 diff --git a/python-pyalsaaudio.changes b/python-pyalsaaudio.changes index d4e50f0..da9faa3 100644 --- a/python-pyalsaaudio.changes +++ b/python-pyalsaaudio.changes @@ -1,3 +1,28 @@ +------------------------------------------------------------------- +Tue Feb 18 09:43:18 UTC 2025 - John Paul Adrian Glaubitz + +- Update to 0.11.0 + * Fixed `Mixer.getvolume()` returning outdated value + * Fixed PCM crashing with some sample formats due to buffer size + miscalculation + * Fixed `PCM.read()` ignoring overruns (regression in 0.10.0) + * Reverted to `PCM.write()` not throwing an exception on playback buffer + underrun; instead, return -EPIPE like `PCM.read()` does on overrun + * Added `PCM.avail()` and `PCM.polldescriptors_revents()` functions + * Added `nominal_bits` and `physical_bits` entries to `PCM.info()`'s + return value + * Added Python type hint file, and adjusted documentation accordingly + * Improvements to the examples, in particular isine.py +- Ignore PollDescriptorArgsTest when running testsuite +- Limit Python files matched in %files section +- Switch build system from setuptools to pyproject.toml + * Add python-pip and python-wheel to BuildRequires + * Replace %python_build with %pyproject_wheel + * Replace %python_install with %pyproject_install +- Switch package to modern Python Stack on SLE-15 + * Use Python 3.11 on SLE-15 by default + * Drop support for older Python versions + ------------------------------------------------------------------- Thu May 4 21:30:05 UTC 2023 - Dirk Müller diff --git a/python-pyalsaaudio.spec b/python-pyalsaaudio.spec index 2efb067..6bb2bb6 100644 --- a/python-pyalsaaudio.spec +++ b/python-pyalsaaudio.spec @@ -1,7 +1,7 @@ # # spec file for package python-pyalsaaudio # -# Copyright (c) 2023 SUSE LLC +# Copyright (c) 2025 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -16,17 +16,19 @@ # -%{?!python_module:%define python_module() python-%{**} python3-%{**}} +%{?sle15_python_module_pythons} Name: python-pyalsaaudio -Version: 0.10.0 +Version: 0.11.0 Release: 0 Summary: ALSA bindings for Python License: Python-2.0 URL: https://larsimmisch.github.io/pyalsaaudio/ Source: https://files.pythonhosted.org/packages/source/p/pyalsaaudio/pyalsaaudio-%{version}.tar.gz BuildRequires: %{python_module devel} +BuildRequires: %{python_module pip} BuildRequires: %{python_module pytest} BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} BuildRequires: alsa-devel BuildRequires: fdupes BuildRequires: python-rpm-macros @@ -41,18 +43,19 @@ It is fairly complete for PCM devices and Mixer access. %build export CFLAGS="%{optflags}" -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitearch} %check -%pytest_arch test.py -k 'not (testMixerAll or testMixerClose or testPCMAll or testPCMClose or testPCMDeprecated)' +%pytest_arch test.py -k 'not (testMixerAll or testMixerClose or testPCMAll or testPCMClose or testPCMDeprecated or PollDescriptorArgsTest)' %files %{python_files} %license LICENSE %doc doc/*.rst -%{python_sitearch}/* +%{python_sitearch}/alsaaudio*so +%{python_sitearch}/pyalsaaudio-%{version}.dist-info %changelog