Hello community, here is the log from the commit of package python-praatio for openSUSE:Factory checked in at 2019-05-07 23:20:42 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-praatio (Old) and /work/SRC/openSUSE:Factory/.python-praatio.new.5148 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Package is "python-praatio" Tue May 7 23:20:42 2019 rev:3 rq:701408 version:3.7.1 Changes: -------- --- /work/SRC/openSUSE:Factory/python-praatio/python-praatio.changes 2019-01-08 12:28:24.744276502 +0100 +++ /work/SRC/openSUSE:Factory/.python-praatio.new.5148/python-praatio.changes 2019-05-07 23:20:49.449172595 +0200 @@ -1,0 +2,17 @@ +Tue May 7 13:04:06 UTC 2019 - John Vandenberg <jayvdb@gmail.com> + +- Activated test suite +- Removed praatio/utilities/xsampa.py with unclear license +- Added documentation, examples and tutorials to -doc subpackage +- Update to v3.7.1 + * FIX: removeUltrashortIntervals respects tg's minTimestamp +- from v3.7.0 + * Speaker normalization and normalization within local context + added to pitch and intensity query functions +- from v3.6.15 + * Hertz, semitones, etc. can now be extracted. The default + is pitch, maintaining pre-existing behaviour +- from v3.6.14 + * Documentation enhancements + +------------------------------------------------------------------- Old: ---- praatio-3.6.13-py2.py3-none-any.whl New: ---- praatio-3.7.1.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-praatio.spec ++++++ --- /var/tmp/diff_new_pack.UwjLiy/_old 2019-05-07 23:20:50.613175384 +0200 +++ /var/tmp/diff_new_pack.UwjLiy/_new 2019-05-07 23:20:50.617175395 +0200 @@ -1,7 +1,7 @@ # # spec file for package python-praatio # -# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -18,22 +18,29 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-praatio -Version: 3.6.13 +Version: 3.7.1 Release: 0 -%define minor 3.6 Summary: A library for working with praat License: MIT Group: Development/Languages/Python -Url: https://github.com/timmahrt/praatIO -Source0: https://files.pythonhosted.org/packages/py2.py3/p/praatio/praatio-%{version}-py2.py3-none-any.whl -BuildRequires: %{python_module pip} +URL: https://github.com/timmahrt/praatIO +Source0: https://github.com/timmahrt/praatIO/archive/v%{version}.tar.gz#/praatio-%{version}.tar.gz +BuildRequires: %{python_module setuptools} +BuildRequires: dos2unix BuildRequires: fdupes BuildRequires: python-rpm-macros -BuildArch: noarch Recommends: praat - +BuildArch: noarch %python_subpackages +%package -n %{name}-doc +Summary: Documentation files for praatio +Group: Documentation/HTML +Provides: %{python_module praatio-doc = %{version}} + +%description -n %{name}-doc +HTML Documentation and examples for praatio. + %description A library for working with praat, time aligned audio transcripts, and audio files. @@ -44,21 +51,38 @@ use with praat. %prep -%setup -c -T +%setup -q -n praatIO-%{version} +# This file was from a different author, and its inclusion under MIT is not clear +rm praatio/utilities/xsampa.py + +dos2unix examples/files/mary.TextGrid %build -# not needed +%python_build %install -%python_expand pip%{$python_bin_suffix} install --root=%{buildroot} %{SOURCE0} -%python_expand sed -i -e '/^#!\//, 1d' %{buildroot}%{$python_sitelib}/praatio/applied_scripts/xsampa.py -%python_expand $python -m compileall -d %{$python_sitelib} %{buildroot}%{$python_sitelib}/praatio/applied_scripts/ -%python_expand $python -O -m compileall -d %{$python_sitelib} %{buildroot}%{$python_sitelib}/praatio/applied_scripts/ +%python_install %python_expand %fdupes %{buildroot}%{$python_sitelib} +%check +# Reset examples after Python 2 test run +cp -rp examples examples-orig +%{python_expand export PYTHONPATH=%{buildroot}%{$python_sitelib} +cd examples +$python -m unittest test.io_tests test.integration_tests test.tg_tests +cd .. +if [ -d examples-orig ]; then + rm -r examples + mv examples-orig examples +fi +} + %files %{python_files} -%license %{python_sitelib}/praatio-%{version}.dist-info/LICENSE.txt -%{python_sitelib}/praatio-%{version}.dist-info/ -%{python_sitelib}/praatio/ +%license LICENSE +%{python_sitelib}/* + +%files -n %{name}-doc +%license LICENSE +%doc README.md docs/* examples tutorials %changelog