commit python-praatio for openSUSE:Factory

2020-06-16 Thread root
Hello community,

here is the log from the commit of package python-praatio for openSUSE:Factory 
checked in at 2020-06-16 13:46:39

Comparing /work/SRC/openSUSE:Factory/python-praatio (Old)
 and  /work/SRC/openSUSE:Factory/.python-praatio.new.3606 (New)


Package is "python-praatio"

Tue Jun 16 13:46:39 2020 rev:7 rq:814866 version:4.1.0

Changes:

--- /work/SRC/openSUSE:Factory/python-praatio/python-praatio.changes
2020-02-10 21:56:27.546291672 +0100
+++ /work/SRC/openSUSE:Factory/.python-praatio.new.3606/python-praatio.changes  
2020-06-16 13:47:21.054448682 +0200
@@ -1,0 +2,7 @@
+Fri Jun 12 08:26:53 UTC 2020 - pgaj...@suse.com
+
+- version update to 4.1.0
+  * Textgrids can now be read "raw"
+- switch from nosetests to pytest
+
+---

Old:

  praatIO-4.0.0.tar.gz

New:

  praatIO-4.1.0.tar.gz



Other differences:
--
++ python-praatio.spec ++
--- /var/tmp/diff_new_pack.uUsoco/_old  2020-06-16 13:47:22.602453903 +0200
+++ /var/tmp/diff_new_pack.uUsoco/_new  2020-06-16 13:47:22.602453903 +0200
@@ -19,7 +19,7 @@
 %{?!python_module:%define python_module() python-%{**} python3-%{**}}
 %define skip_python2 1
 Name:   python-praatio
-Version:4.0.0
+Version:4.1.0
 Release:0
 Summary:A library for working with praat
 License:MIT
@@ -31,7 +31,7 @@
 BuildRequires:  python-rpm-macros
 Recommends: praat
 # SECTION test requirements
-BuildRequires:  %{python_module nose}
+BuildRequires:  %{python_module pytest}
 # /SECTION
 BuildArch:  noarch
 %python_subpackages
@@ -65,15 +65,7 @@
 %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}
-nosetests-%{$python_bin_suffix} --exe
-if [ -d examples-orig ]; then
-  rm -r examples
-  mv examples-orig examples
-fi
-}
+%pytest examples/test/*.py
 
 %files %{python_files}
 %license LICENSE

++ praatIO-4.0.0.tar.gz -> praatIO-4.1.0.tar.gz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/praatIO-4.0.0/README.md new/praatIO-4.1.0/README.md
--- old/praatIO-4.0.0/README.md 2020-02-05 05:02:20.0 +0100
+++ new/praatIO-4.1.0/README.md 2020-05-13 15:25:07.0 +0200
@@ -91,6 +91,10 @@
 
 *Praatio uses semantic versioning (Major.Minor.Patch)*
 
+Ver 4.1 (May 13, 2020)
+- Textgrids can now be read "raw"
+- For backwards compatibility, by default, unlabeled points and intervals 
are removed when opening textgrids
+
 Ver 4.0 (February 5, 2020)
 - Removed unlicensed xsampa.py file, along with associated utility 
sppas_util.py (originally added in Ver 3.4)
 - If you are not directly importing either of those files, you can upgrade 
without changing your code
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/praatIO-4.0.0/docs/tgio.html 
new/praatIO-4.1.0/docs/tgio.html
--- old/praatIO-4.0.0/docs/tgio.html2020-02-05 05:02:20.0 +0100
+++ new/praatIO-4.1.0/docs/tgio.html2020-05-13 15:25:07.0 +0200
@@ -69,7 +69,7 @@
 def _isclose(a, b, rel_tol=1e-14, abs_tol=0.0):
 return abs(a - b) = max(rel_tol * max(abs(a), abs(b)), abs_tol)
 
-  
+
 def _getWavDuration(wavFN):
 For internal use.  See praatio.audioio.WavQueryObj() for general 
use.
 audiofile = wave.open(wavFN, r)
@@ -81,6 +81,11 @@
 return duration
 
 
+def _removeBlanks(tier):
+entryList = [entry for entry in tier.entryList if entry[-1] != ]
+return tier.new(entryList=entryList)
+
+
 def _fillInBlanks(tier, blankLabel=, startTime=None, endTime=None):
 
 Fills in the space between intervals with empty space
@@ -1530,8 +1535,12 @@
 fd.write(outputTxt)
 
 
-def openTextgrid(fnFullPath):
-
+def openTextgrid(fnFullPath, readRaw=False):
+
+Opens a textgrid for editing
+
+readRaw: points and intervals with an empty label ie  are 
removed unless readRaw=True
+
 try:
 with io.open(fnFullPath, r, encoding=utf-16) as fd:
 data = fd.read()
@@ -1547,6 +1556,12 @@
 else:
 textgrid = _parseNormalTextgrid(data)
 
+if readRaw == False:
+for tierName in textgrid.tierNameList:
+tier = textgrid.tierDict[tierName]
+tier = _removeBlanks(tier)
+textgrid.replaceTier(tierName, tier)
+
 return textgrid
 
 
@@ -1613,8 +1628,6 @@
 break
 
 label = label.strip()
-if label == :
-continue
 tierEntryList.append((timeStart, timeEnd, label))
  

commit python-praatio for openSUSE:Factory

2020-02-10 Thread root
Hello community,

here is the log from the commit of package python-praatio for openSUSE:Factory 
checked in at 2020-02-10 21:56:24

Comparing /work/SRC/openSUSE:Factory/python-praatio (Old)
 and  /work/SRC/openSUSE:Factory/.python-praatio.new.26092 (New)


Package is "python-praatio"

Mon Feb 10 21:56:24 2020 rev:6 rq:773158 version:4.0.0

Changes:

--- /work/SRC/openSUSE:Factory/python-praatio/python-praatio.changes
2020-02-03 11:13:20.173845475 +0100
+++ /work/SRC/openSUSE:Factory/.python-praatio.new.26092/python-praatio.changes 
2020-02-10 21:56:27.546291672 +0100
@@ -1,0 +2,7 @@
+Mon Feb 10 15:15:29 UTC 2020 - Todd R 
+
+- Update to 4.0.0
+  * Removed unlicensed xsampa.py file, along with associated utility 
sppas_util.py (originally added in Ver 3.4)
+If you are not directly importing either of those files, you can upgrade 
without changing your code
+
+---

Old:

  praatIO-3.8.1.tar.gz

New:

  praatIO-4.0.0.tar.gz



Other differences:
--
++ python-praatio.spec ++
--- /var/tmp/diff_new_pack.7yLldB/_old  2020-02-10 21:56:28.234292052 +0100
+++ /var/tmp/diff_new_pack.7yLldB/_new  2020-02-10 21:56:28.234292052 +0100
@@ -19,7 +19,7 @@
 %{?!python_module:%define python_module() python-%{**} python3-%{**}}
 %define skip_python2 1
 Name:   python-praatio
-Version:3.8.1
+Version:4.0.0
 Release:0
 Summary:A library for working with praat
 License:MIT
@@ -55,9 +55,7 @@
 
 %prep
 %setup -q -n praatIO-%{version}
-# This file was from a different author, and its inclusion under MIT is not 
clear
-# See: https://github.com/timmahrt/praatIO/issues/16
-rm praatio/utilities/xsampa.py
+sed -i 's/\r$//' examples/files/mary.TextGrid
 
 %build
 %python_build

++ praatIO-3.8.1.tar.gz -> praatIO-4.0.0.tar.gz ++
 5658 lines of diff (skipped)




commit python-praatio for openSUSE:Factory

2020-02-03 Thread root
Hello community,

here is the log from the commit of package python-praatio for openSUSE:Factory 
checked in at 2020-02-03 11:13:15

Comparing /work/SRC/openSUSE:Factory/python-praatio (Old)
 and  /work/SRC/openSUSE:Factory/.python-praatio.new.26092 (New)


Package is "python-praatio"

Mon Feb  3 11:13:15 2020 rev:5 rq:768820 version:3.8.1

Changes:

--- /work/SRC/openSUSE:Factory/python-praatio/python-praatio.changes
2019-07-28 10:22:12.312568514 +0200
+++ /work/SRC/openSUSE:Factory/.python-praatio.new.26092/python-praatio.changes 
2020-02-03 11:13:20.173845475 +0100
@@ -1,0 +2,6 @@
+Thu Jan 30 15:14:20 UTC 2020 - Todd R 
+
+- Update to 3.8.1
+  * Verifying support for python 3.8
+
+---

Old:

  praatIO-3.8.0.tar.gz

New:

  praatIO-3.8.1.tar.gz



Other differences:
--
++ python-praatio.spec ++
--- /var/tmp/diff_new_pack.x8w7Vt/_old  2020-02-03 11:13:20.977845882 +0100
+++ /var/tmp/diff_new_pack.x8w7Vt/_new  2020-02-03 11:13:20.977845882 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package python-praatio
 #
-# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2020 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -19,7 +19,7 @@
 %{?!python_module:%define python_module() python-%{**} python3-%{**}}
 %define skip_python2 1
 Name:   python-praatio
-Version:3.8.0
+Version:3.8.1
 Release:0
 Summary:A library for working with praat
 License:MIT
@@ -27,10 +27,12 @@
 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
 Recommends: praat
+# SECTION test requirements
+BuildRequires:  %{python_module nose}
+# /SECTION
 BuildArch:  noarch
 %python_subpackages
 
@@ -54,10 +56,9 @@
 %prep
 %setup -q -n praatIO-%{version}
 # This file was from a different author, and its inclusion under MIT is not 
clear
+# See: https://github.com/timmahrt/praatIO/issues/16
 rm praatio/utilities/xsampa.py
 
-dos2unix examples/files/mary.TextGrid
-
 %build
 %python_build
 
@@ -69,9 +70,7 @@
 # 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 ..
+nosetests-%{$python_bin_suffix} --exe
 if [ -d examples-orig ]; then
   rm -r examples
   mv examples-orig examples

++ praatIO-3.8.0.tar.gz -> praatIO-3.8.1.tar.gz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/praatIO-3.8.0/.travis.yml 
new/praatIO-3.8.1/.travis.yml
--- old/praatIO-3.8.0/.travis.yml   2019-07-24 16:17:13.0 +0200
+++ new/praatIO-3.8.1/.travis.yml   2019-12-08 08:12:29.0 +0100
@@ -4,6 +4,8 @@
   - "3.4"
   - "3.5"
   - "3.6"
+  - "3.7"
+  - "3.8"
 install:
   - python setup.py install
   - pip install coveralls
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/praatIO-3.8.0/README.md new/praatIO-3.8.1/README.md
--- old/praatIO-3.8.0/README.md 2019-07-24 16:17:13.0 +0200
+++ new/praatIO-3.8.1/README.md 2019-12-08 08:12:29.0 +0100
@@ -1,9 +1,9 @@
 
 # praatIO
 
-[![](https://badges.gitter.im/praatio/Lobby.svg)](https://gitter.im/praatio/Lobby?utm_source=badge_medium=badge_campaign=pr-badge_content=badge)
 
[![](https://travis-ci.org/timmahrt/praatIO.svg?branch=master)](https://travis-ci.org/timmahrt/praatIO)
 
[![](https://coveralls.io/repos/github/timmahrt/praatIO/badge.svg?)](https://coveralls.io/github/timmahrt/praatIO?branch=master)
 
[![](https://img.shields.io/badge/license-MIT-blue.svg?)](http://opensource.org/licenses/MIT)
 
[![](https://img.shields.io/pypi/v/praatio.svg)](https://pypi.org/project/praatio/)
+[![](https://travis-ci.org/timmahrt/praatIO.svg?branch=master)](https://travis-ci.org/timmahrt/praatIO)
 
[![](https://coveralls.io/repos/github/timmahrt/praatIO/badge.svg?)](https://coveralls.io/github/timmahrt/praatIO?branch=master)
 
[![](https://img.shields.io/badge/license-MIT-blue.svg?)](http://opensource.org/licenses/MIT)
 
[![](https://img.shields.io/pypi/v/praatio.svg)](https://pypi.org/project/praatio/)
 
-*Questions?  Comments?  Feedback?  Chat with us on gitter!*
+*Questions?  Comments?  Feedback? 

commit python-praatio for openSUSE:Factory

2019-07-28 Thread root
Hello community,

here is the log from the commit of package python-praatio for openSUSE:Factory 
checked in at 2019-07-28 10:22:10

Comparing /work/SRC/openSUSE:Factory/python-praatio (Old)
 and  /work/SRC/openSUSE:Factory/.python-praatio.new.4126 (New)


Package is "python-praatio"

Sun Jul 28 10:22:10 2019 rev:4 rq:718978 version:3.8.0

Changes:

--- /work/SRC/openSUSE:Factory/python-praatio/python-praatio.changes
2019-05-07 23:20:49.449172595 +0200
+++ /work/SRC/openSUSE:Factory/.python-praatio.new.4126/python-praatio.changes  
2019-07-28 10:22:12.312568514 +0200
@@ -1,0 +2,8 @@
+Fri Jul 26 16:49:55 UTC 2019 - Todd R 
+
+- Update to 3.8.0
+  * Textgrids can be saved in the Textgrid long file format with .save(fn, 
useShortForm=False).
+> For backwards compatibility, by default, it saves in the short file 
format.
+  * Textgrid output formatting is now closer to what Praat outputs.
+
+---

Old:

  praatio-3.7.1.tar.gz

New:

  praatIO-3.8.0.tar.gz



Other differences:
--
++ python-praatio.spec ++
--- /var/tmp/diff_new_pack.FOrU8S/_old  2019-07-28 10:22:12.788568503 +0200
+++ /var/tmp/diff_new_pack.FOrU8S/_new  2019-07-28 10:22:12.792568503 +0200
@@ -17,14 +17,15 @@
 
 
 %{?!python_module:%define python_module() python-%{**} python3-%{**}}
+%define skip_python2 1
 Name:   python-praatio
-Version:3.7.1
+Version:3.8.0
 Release:0
 Summary:A library for working with praat
 License:MIT
 Group:  Development/Languages/Python
 URL:https://github.com/timmahrt/praatIO
-Source0:
https://github.com/timmahrt/praatIO/archive/v%{version}.tar.gz#/praatio-%{version}.tar.gz
+Source0:
https://github.com/timmahrt/praatIO/archive/v%{version}.tar.gz#/praatIO-%{version}.tar.gz
 BuildRequires:  %{python_module setuptools}
 BuildRequires:  dos2unix
 BuildRequires:  fdupes




commit python-praatio for openSUSE:Factory

2019-05-07 Thread root
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 
+
+- 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




commit python-praatio for openSUSE:Factory

2019-01-08 Thread root
Hello community,

here is the log from the commit of package python-praatio for openSUSE:Factory 
checked in at 2019-01-08 12:26:11

Comparing /work/SRC/openSUSE:Factory/python-praatio (Old)
 and  /work/SRC/openSUSE:Factory/.python-praatio.new.28833 (New)


Package is "python-praatio"

Tue Jan  8 12:26:11 2019 rev:2 rq:660795 version:3.6.13

Changes:

--- /work/SRC/openSUSE:Factory/python-praatio/python-praatio.changes
2018-11-06 14:40:33.628489815 +0100
+++ /work/SRC/openSUSE:Factory/.python-praatio.new.28833/python-praatio.changes 
2019-01-08 12:28:24.744276502 +0100
@@ -1,0 +2,8 @@
+Sat Dec 22 03:48:06 UTC 2018 - Todd R 
+
+- Update to 3.6.13
+  * Include license in wheels
+  * BUGFIX: Python 3.x incompatibility
+  * BUGFIX: Python 2 vs 3 compatibility
+
+---

Old:

  LICENSE
  praatio-3.6.12-py2.py3-none-any.whl

New:

  praatio-3.6.13-py2.py3-none-any.whl



Other differences:
--
++ python-praatio.spec ++
--- /var/tmp/diff_new_pack.AVCBE9/_old  2019-01-08 12:28:25.224275977 +0100
+++ /var/tmp/diff_new_pack.AVCBE9/_new  2019-01-08 12:28:25.228275973 +0100
@@ -18,7 +18,7 @@
 
 %{?!python_module:%define python_module() python-%{**} python3-%{**}}
 Name:   python-praatio
-Version:3.6.12
+Version:3.6.13
 Release:0
 %define minor   3.6
 Summary:A library for working with praat
@@ -26,11 +26,9 @@
 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
-Source10:   
https://raw.githubusercontent.com/timmahrt/praatIO/v%{minor}/LICENSE
 BuildRequires:  %{python_module pip}
 BuildRequires:  fdupes
 BuildRequires:  python-rpm-macros
-BuildRequires:  unzip
 BuildArch:  noarch
 Recommends: praat
 
@@ -47,7 +45,6 @@
 
 %prep
 %setup -c -T
-cp %{SOURCE10} .
 
 %build
 # not needed
@@ -60,7 +57,8 @@
 %python_expand %fdupes %{buildroot}%{$python_sitelib}
 
 %files %{python_files}
-%license LICENSE
-%{python_sitelib}/*
+%license %{python_sitelib}/praatio-%{version}.dist-info/LICENSE.txt
+%{python_sitelib}/praatio-%{version}.dist-info/
+%{python_sitelib}/praatio/
 
 %changelog