14
0
forked from pool/python-sox

Accepting request 1173977 from devel:languages:python

- Build package from source
- Run tests
- Update to 1.5.0
  - This is the first stable release of the 1.5 series. It is
    functionally identical to 1.5-rc1. Compared to 1.4, the main
    change is that we have dropped support for EOL Python (3.7 and
    earlier) and have added support for Python up to 3.12 (@hugovk and
    @lostanlen).
  - New features:
    * pathlib support (#124), @cjacoby
    * type hints (#129), @hadware and @rabitt

OBS-URL: https://build.opensuse.org/request/show/1173977
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-sox?expand=0&rev=3
This commit is contained in:
2024-05-15 19:26:22 +00:00
committed by Git OBS Bridge
4 changed files with 40 additions and 15 deletions

View File

@@ -1,3 +1,18 @@
-------------------------------------------------------------------
Tue May 14 11:32:32 UTC 2024 - Daniel Garcia <daniel.garcia@suse.com>
- Build package from source
- Run tests
- Update to 1.5.0
- This is the first stable release of the 1.5 series. It is
functionally identical to 1.5-rc1. Compared to 1.4, the main
change is that we have dropped support for EOL Python (3.7 and
earlier) and have added support for Python up to 3.12 (@hugovk and
@lostanlen).
- New features:
* pathlib support (#124), @cjacoby
* type hints (#129), @hadware and @rabitt
------------------------------------------------------------------- -------------------------------------------------------------------
Tue Oct 26 12:45:07 UTC 2021 - Axel Braun <axel.braun@gmx.de> Tue Oct 26 12:45:07 UTC 2021 - Axel Braun <axel.braun@gmx.de>

View File

@@ -1,7 +1,7 @@
# #
# spec file for package python-sox # spec file for package python-sox
# #
# Copyright (c) 2021 SUSE LLC # Copyright (c) 2024 SUSE LLC
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@@ -16,18 +16,24 @@
# #
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-sox Name: python-sox
Version: 1.4.1 Version: 1.5.0
Release: 0 Release: 0
License: BSD-3-Clause License: BSD-3-Clause
Summary: Python wrapper around SoX Summary: Python wrapper around SoX
URL: https://github.com/rabitt/pysox URL: https://github.com/rabitt/pysox
Group: Development/Languages/Python Group: Development/Languages/Python
Source0: https://files.pythonhosted.org/packages/py2.py3/s/sox/sox-%{version}-py2.py3-none-any.whl Source: https://github.com/marl/pysox/archive/v%{version}/sox-%{version}.tar.gz
BuildRequires: %{python_module pip} BuildRequires: %{python_module numpy}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module soundfile}
BuildRequires: %{python_module typing-extensions}
BuildRequires: fdupes BuildRequires: fdupes
BuildRequires: python-rpm-macros BuildRequires: python-rpm-macros
BuildRequires: sox
Requires: python-numpy
Requires: python-typing-extensions
Requires: sox Requires: sox
BuildArch: noarch BuildArch: noarch
@@ -42,20 +48,24 @@ hide the wacky options with one-line shell scripts.
This is a Python wrapper for SOX. This is a Python wrapper for SOX.
%prep %prep
%setup -q -c -T %autosetup -p1 -n pysox-%{version}
sed -i -e '/^#!\//, 1d' sox/*.py
%build %build
# not needed %python_build
%install %install
cp -a %{SOURCE0} . %python_install
%pyproject_install
%python_expand sed -i -e '/^#!\//, 1d' %{buildroot}%{$python_sitelib}/sox/*.py
%python_expand %fdupes %{buildroot}%{$python_sitelib} %python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
# Fails in i586
donttest="test_multichannel or test_valid"
%pytest -k "not ($donttest)"
%files %{python_files} %files %{python_files}
%license %{python_sitelib}/sox-%{version}.dist-info/LICENSE %license LICENSE
%{python_sitelib}/sox-%{version}.dist-info/ %{python_sitelib}/sox-%{version}*-info/
%{python_sitelib}/sox %{python_sitelib}/sox
%changelog %changelog

View File

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

3
sox-1.5.0.tar.gz Normal file
View File

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