forked from pool/python-sox
- Convert to pip-based build
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-sox?expand=0&rev=7
This commit is contained in:
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal file
@@ -0,0 +1,23 @@
|
||||
## Default LFS
|
||||
*.7z filter=lfs diff=lfs merge=lfs -text
|
||||
*.bsp filter=lfs diff=lfs merge=lfs -text
|
||||
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.gem filter=lfs diff=lfs merge=lfs -text
|
||||
*.gz filter=lfs diff=lfs merge=lfs -text
|
||||
*.jar filter=lfs diff=lfs merge=lfs -text
|
||||
*.lz filter=lfs diff=lfs merge=lfs -text
|
||||
*.lzma filter=lfs diff=lfs merge=lfs -text
|
||||
*.obscpio filter=lfs diff=lfs merge=lfs -text
|
||||
*.oxt filter=lfs diff=lfs merge=lfs -text
|
||||
*.pdf filter=lfs diff=lfs merge=lfs -text
|
||||
*.png filter=lfs diff=lfs merge=lfs -text
|
||||
*.rpm filter=lfs diff=lfs merge=lfs -text
|
||||
*.tbz filter=lfs diff=lfs merge=lfs -text
|
||||
*.tbz2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.tgz filter=lfs diff=lfs merge=lfs -text
|
||||
*.ttf filter=lfs diff=lfs merge=lfs -text
|
||||
*.txz filter=lfs diff=lfs merge=lfs -text
|
||||
*.whl filter=lfs diff=lfs merge=lfs -text
|
||||
*.xz filter=lfs diff=lfs merge=lfs -text
|
||||
*.zip filter=lfs diff=lfs merge=lfs -text
|
||||
*.zst filter=lfs diff=lfs merge=lfs -text
|
||||
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
||||
.osc
|
||||
40
python-sox.changes
Normal file
40
python-sox.changes
Normal file
@@ -0,0 +1,40 @@
|
||||
-------------------------------------------------------------------
|
||||
Thu Jun 12 12:15:28 UTC 2025 - Markéta Machová <mmachova@suse.com>
|
||||
|
||||
- Convert to pip-based build
|
||||
|
||||
-------------------------------------------------------------------
|
||||
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>
|
||||
|
||||
- version 1.4.1
|
||||
changes up to version 1.4.0:
|
||||
* added .build_array() which supports file or in memory inputs and array outputs
|
||||
* added .build_file() - an alias to .build()
|
||||
* refactored .build() function to support file or in-memory array inputs and file outputs
|
||||
* the call to subprocess calls the binary directly (shell=False)
|
||||
* file_info methods return None instead of 0 when the value is not available
|
||||
* fixed bug in file_info.bitrate(), which was returning bitdepth
|
||||
* added file_info.bitdepth()
|
||||
* added Windows support for soxi
|
||||
* added configurable logging
|
||||
* .trim() can be called with only the start time specificed
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Jan 30 16:25:12 UTC 2020 - Todd R <toddrme2178@gmail.com>
|
||||
|
||||
- initial version
|
||||
72
python-sox.spec
Normal file
72
python-sox.spec
Normal file
@@ -0,0 +1,72 @@
|
||||
#
|
||||
# spec file for package python-sox
|
||||
#
|
||||
# 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
|
||||
# upon. The license for this file, and modifications and additions to the
|
||||
# file, is the same license as for the pristine package itself (unless the
|
||||
# license for the pristine package is not an Open Source License, in which
|
||||
# case the license is the MIT License). An "Open Source License" is a
|
||||
# license that conforms to the Open Source Definition (Version 1.9)
|
||||
# published by the Open Source Initiative.
|
||||
|
||||
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
||||
#
|
||||
|
||||
|
||||
Name: python-sox
|
||||
Version: 1.5.0
|
||||
Release: 0
|
||||
Summary: Python wrapper around SoX
|
||||
License: BSD-3-Clause
|
||||
Group: Development/Languages/Python
|
||||
URL: https://github.com/rabitt/pysox
|
||||
Source: https://github.com/marl/pysox/archive/v%{version}/sox-%{version}.tar.gz
|
||||
BuildRequires: %{python_module numpy}
|
||||
BuildRequires: %{python_module pip}
|
||||
BuildRequires: %{python_module pytest}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: %{python_module soundfile}
|
||||
BuildRequires: %{python_module typing-extensions}
|
||||
BuildRequires: %{python_module wheel}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
BuildRequires: sox
|
||||
Requires: python-numpy
|
||||
Requires: python-typing-extensions
|
||||
Requires: sox
|
||||
BuildArch: noarch
|
||||
%python_subpackages
|
||||
|
||||
%description
|
||||
SOX is intended to be the Swiss Army knife of sound processing tools.
|
||||
It does many things, it just does not do them all well. Sooner or later
|
||||
it will come in very handy. SOX is really only usable day-to-day if you
|
||||
hide the wacky options with one-line shell scripts.
|
||||
|
||||
This is a Python wrapper for SOX.
|
||||
|
||||
%prep
|
||||
%autosetup -p1 -n pysox-%{version}
|
||||
sed -i -e '/^#!\//, 1d' sox/*.py
|
||||
|
||||
%build
|
||||
%pyproject_wheel
|
||||
|
||||
%install
|
||||
%pyproject_install
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||
|
||||
%check
|
||||
# Fails in i586
|
||||
donttest="test_multichannel or test_valid"
|
||||
%pytest -k "not ($donttest)"
|
||||
|
||||
%files %{python_files}
|
||||
%license LICENSE
|
||||
%{python_sitelib}/sox-%{version}*-info/
|
||||
%{python_sitelib}/sox
|
||||
|
||||
%changelog
|
||||
3
sox-1.5.0.tar.gz
Normal file
3
sox-1.5.0.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:554b6e70dc0b2b2c0ec75bec7e51ea0462f15d4de9ea078111f9179bdbcf89ae
|
||||
size 4123476
|
||||
Reference in New Issue
Block a user