14
0

Accepting request 1246649 from devel:languages:python

OBS-URL: https://build.opensuse.org/request/show/1246649
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pyalsaaudio?expand=0&rev=6
This commit is contained in:
2025-02-18 18:12:46 +00:00
committed by Git OBS Bridge
4 changed files with 38 additions and 10 deletions

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:e21175500a2bd310ae3867e7991639defc1e2a5c92cf1b9f7083296b346738ab
size 637432

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:a78a9dca33524b2c9064b34e21f5ab874272313cf324a9a77592f396a5e0fddc
size 311152

View File

@@ -1,3 +1,28 @@
-------------------------------------------------------------------
Tue Feb 18 09:43:18 UTC 2025 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com>
- 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 <dmueller@suse.com>

View File

@@ -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