Hello community,

here is the log from the commit of package python-pyacoustid for 
openSUSE:Leap:15.2 checked in at 2020-03-09 18:11:05
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Leap:15.2/python-pyacoustid (Old)
 and      /work/SRC/openSUSE:Leap:15.2/.python-pyacoustid.new.26092 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-pyacoustid"

Mon Mar  9 18:11:05 2020 rev:11 rq:776953 version:1.1.7

Changes:
--------
--- /work/SRC/openSUSE:Leap:15.2/python-pyacoustid/python-pyacoustid.changes    
2020-01-15 15:51:46.951540786 +0100
+++ 
/work/SRC/openSUSE:Leap:15.2/.python-pyacoustid.new.26092/python-pyacoustid.changes
 2020-03-09 18:11:06.193173994 +0100
@@ -1,0 +2,18 @@
+Sat May 25 13:01:58 UTC 2019 - Tomáš Chvátal <[email protected]>
+
+- Update to 1.1.7:
+  * Distribute license
+
+-------------------------------------------------------------------
+Sat May 25 09:50:00 UTC 2019 - Tomáš Chvátal <[email protected]>
+
+- Update to 1.1.6:
+  * In submission, avoid an error on non-integer durations.
+    A new function, get_submission_status, abstracts the API endpoint for 
monitoring submissions using the (new) result from the submit function.
+
+-------------------------------------------------------------------
+Tue Dec  4 12:51:53 UTC 2018 - Matej Cepl <[email protected]>
+
+- Remove superfluous devel dependency for noarch package
+
+-------------------------------------------------------------------

Old:
----
  pyacoustid-1.1.5.tar.gz

New:
----
  pyacoustid-1.1.7.tar.gz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python-pyacoustid.spec ++++++
--- /var/tmp/diff_new_pack.rnkHhC/_old  2020-03-09 18:11:06.673174682 +0100
+++ /var/tmp/diff_new_pack.rnkHhC/_new  2020-03-09 18:11:06.673174682 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package python-pyacoustid
 #
-# Copyright (c) 2017 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
@@ -12,29 +12,27 @@
 # license that conforms to the Open Source Definition (Version 1.9)
 # published by the Open Source Initiative.
 
-# Please submit bugfixes or comments via http://bugs.opensuse.org/
+# Please submit bugfixes or comments via https://bugs.opensuse.org/
 #
 
 
 %{?!python_module:%define python_module() python-%{**} python3-%{**}}
 Name:           python-pyacoustid
-Version:        1.1.5
+Version:        1.1.7
 Release:        0
-Summary:        bindings for Chromaprint acoustic fingerprinting and the 
Acoustid API
+Summary:        Bindings for Chromaprint acoustic fingerprinting and the 
Acoustid API
 License:        MIT
 Group:          Development/Languages/Python
-Url:            https://github.com/sampsyo/pyacoustid
+URL:            https://github.com/sampsyo/pyacoustid
 Source:         
https://files.pythonhosted.org/packages/source/p/pyacoustid/pyacoustid-%{version}.tar.gz
 BuildRequires:  %{python_module audioread}
-BuildRequires:  %{python_module devel}
 BuildRequires:  %{python_module requests}
 BuildRequires:  %{python_module setuptools}
+BuildRequires:  fdupes
 BuildRequires:  python-rpm-macros
 Requires:       python-audioread
 Requires:       python-requests
-BuildRoot:      %{_tmppath}/%{name}-%{version}-build
 BuildArch:      noarch
-
 %python_subpackages
 
 %description
@@ -53,10 +51,11 @@
 
 %install
 %python_install
+%python_expand %fdupes %{buildroot}%{$python_sitelib}
 
 %files %{python_files}
-%defattr(-,root,root,-)
 %doc README.rst
+%license LICENSE
 %{python_sitelib}/*
 
 %changelog

++++++ pyacoustid-1.1.5.tar.gz -> pyacoustid-1.1.7.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pyacoustid-1.1.5/LICENSE new/pyacoustid-1.1.7/LICENSE
--- old/pyacoustid-1.1.5/LICENSE        1970-01-01 01:00:00.000000000 +0100
+++ new/pyacoustid-1.1.7/LICENSE        2019-05-25 14:44:37.000000000 +0200
@@ -0,0 +1,21 @@
+The MIT License
+
+Copyright (c) 2011-2019 Adrian Sampson
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in
+all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+THE SOFTWARE.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pyacoustid-1.1.5/MANIFEST.in 
new/pyacoustid-1.1.7/MANIFEST.in
--- old/pyacoustid-1.1.5/MANIFEST.in    2014-03-30 21:37:10.000000000 +0200
+++ new/pyacoustid-1.1.7/MANIFEST.in    2019-05-25 14:44:51.000000000 +0200
@@ -1,5 +1,6 @@
 # Documentation.
 include README.rst
+include LICENSE
 # Example scripts.
 include aidmatch.py
 include fpcalc.py
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pyacoustid-1.1.5/PKG-INFO 
new/pyacoustid-1.1.7/PKG-INFO
--- old/pyacoustid-1.1.5/PKG-INFO       2017-04-08 18:23:35.000000000 +0200
+++ new/pyacoustid-1.1.7/PKG-INFO       2019-05-25 14:47:25.000000000 +0200
@@ -1,6 +1,6 @@
 Metadata-Version: 1.1
 Name: pyacoustid
-Version: 1.1.5
+Version: 1.1.7
 Summary: bindings for Chromaprint acoustic fingerprinting and the Acoustid API
 Home-page: https://github.com/sampsyo/pyacoustid
 Author: Adrian Sampson
@@ -112,6 +112,14 @@
         Version History
         ---------------
         
+        1.1.7
+          Include a LICENSE file.
+        
+        1.1.6
+          In submission, avoid an error on non-integer durations.
+          A new function, `get_submission_status`, abstracts the API endpoint 
for
+          monitoring submissions using the (new) result from the `submit` 
function.
+        
         1.1.5
           Fix compatibility with Python 3 in the `submit` function.
           Errors in `submit` are now also handled correctly (i.e., they raise 
an
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pyacoustid-1.1.5/README.rst 
new/pyacoustid-1.1.7/README.rst
--- old/pyacoustid-1.1.5/README.rst     2016-12-23 16:52:22.000000000 +0100
+++ new/pyacoustid-1.1.7/README.rst     2019-05-25 14:46:32.000000000 +0200
@@ -104,6 +104,14 @@
 Version History
 ---------------
 
+1.1.7
+  Include a LICENSE file.
+
+1.1.6
+  In submission, avoid an error on non-integer durations.
+  A new function, `get_submission_status`, abstracts the API endpoint for
+  monitoring submissions using the (new) result from the `submit` function.
+
 1.1.5
   Fix compatibility with Python 3 in the `submit` function.
   Errors in `submit` are now also handled correctly (i.e., they raise an
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pyacoustid-1.1.5/acoustid.py 
new/pyacoustid-1.1.7/acoustid.py
--- old/pyacoustid-1.1.5/acoustid.py    2016-12-23 16:51:22.000000000 +0100
+++ new/pyacoustid-1.1.7/acoustid.py    2018-11-20 22:19:28.000000000 +0100
@@ -39,8 +39,8 @@
 
 API_BASE_URL = 'http://api.acoustid.org/v2/'
 DEFAULT_META = 'recordings'
-REQUEST_INTERVAL = 0.33 # 3 requests/second.
-MAX_AUDIO_LENGTH = 120 # Seconds.
+REQUEST_INTERVAL = 0.33  # 3 requests/second.
+MAX_AUDIO_LENGTH = 120  # Seconds.
 FPCALC_COMMAND = 'fpcalc'
 FPCALC_ENVVAR = 'FPCALC'
 
@@ -112,6 +112,9 @@
     """Get the URL of the submission API endpoint."""
     return API_BASE_URL + 'submit'
 
+def _get_submission_status_url():
+    """Get the URL of the submission status API endpoint."""
+    return API_BASE_URL + 'submission_status'
 
 # Compressed HTTP request bodies.
 
@@ -137,7 +140,7 @@
 
 # Utilities.
 
-class _rate_limit(object):
+class _rate_limit(object):  # noqa: N801
     """A decorator that limits the rate at which the function may be
     called.  The rate is controlled by the REQUEST_INTERVAL module-level
     constant; set the value to zero to disable rate limiting. The
@@ -201,10 +204,10 @@
         fper = chromaprint.Fingerprinter()
         fper.start(samplerate, channels)
 
-        position = 0 # Samples of audio fed to the fingerprinter.
+        position = 0  # Samples of audio fed to the fingerprinter.
         for block in pcmiter:
             fper.feed(block)
-            position += len(block) // 2 # 2 bytes/sample.
+            position += len(block) // 2  # 2 bytes/sample.
             if position >= endposition:
                 break
 
@@ -351,6 +354,8 @@
 
     If the required keys are not present in a dictionary, a
     FingerprintSubmissionError is raised.
+
+    Returns the parsed JSON response.
     """
     if isinstance(data, dict):
         data = [data]
@@ -366,6 +371,10 @@
     for i, d in enumerate(data):
         if "duration" not in d or "fingerprint" not in d:
             raise FingerprintSubmissionError("missing required parameters")
+
+        # The duration needs to be an integer.
+        d["duration"] = int(d["duration"])
+
         for k, v in d.items():
             args["%s.%s" % (k, i)] = v
 
@@ -377,3 +386,16 @@
         except KeyError:
             raise WebServiceError("response: {0}".format(response))
         raise WebServiceError("error {0}: {1}".format(code, message))
+    return response
+
+def get_submission_status(apikey, submission_id):
+    """Get the status of a submission to the acoustid server.
+    ``submission_id`` is the id of a fingerprint submission, as returned
+    in the response object of a call to the ``submit`` endpoint.
+    """
+    params = {
+        'format': 'json',
+        'client': apikey,
+        'id': submission_id,
+    }
+    return _api_request(_get_submission_status_url(), params)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pyacoustid-1.1.5/chromaprint.py 
new/pyacoustid-1.1.7/chromaprint.py
--- old/pyacoustid-1.1.5/chromaprint.py 2016-10-29 22:28:57.000000000 +0200
+++ new/pyacoustid-1.1.7/chromaprint.py 2018-08-22 15:41:03.000000000 +0200
@@ -11,9 +11,9 @@
 if sys.version_info[0] >= 3:
     BUFFER_TYPES = (memoryview, bytearray,)
 elif sys.version_info[1] >= 7:
-    BUFFER_TYPES = (buffer, memoryview, bytearray,)
+    BUFFER_TYPES = (buffer, memoryview, bytearray,)  # noqa: F821
 else:
-    BUFFER_TYPES = (buffer, bytearray,)
+    BUFFER_TYPES = (buffer, bytearray,)  # noqa: F821
 
 
 # Find the base library and declare prototypes.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pyacoustid-1.1.5/fpcalc.py 
new/pyacoustid-1.1.7/fpcalc.py
--- old/pyacoustid-1.1.5/fpcalc.py      2014-03-30 22:22:20.000000000 +0200
+++ new/pyacoustid-1.1.7/fpcalc.py      2018-08-22 15:41:03.000000000 +0200
@@ -21,11 +21,13 @@
 from __future__ import absolute_import
 from __future__ import print_function
 
-import sys
 import argparse
+import sys
+
 import acoustid
 import chromaprint
 
+
 def main():
     parser = argparse.ArgumentParser()
     parser.add_argument('-length', metavar='SECS', type=int, default=120,
@@ -37,7 +39,8 @@
                         help='audio file to be fingerprinted')
 
     args = parser.parse_args()
-    del sys.argv[1:] # to make gst not try to parse the args
+    # make gst not try to parse the args
+    del sys.argv[1:]
 
     first = True
     for i, path in enumerate(args.paths):
@@ -57,5 +60,6 @@
         print('DURATION=%d' % duration)
         print('FINGERPRINT=%s' % fp.decode('utf8'))
 
+
 if __name__ == '__main__':
     main()
Binary files old/pyacoustid-1.1.5/pyacoustid.egg-info/.pbr.json.icloud and 
new/pyacoustid-1.1.7/pyacoustid.egg-info/.pbr.json.icloud differ
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pyacoustid-1.1.5/pyacoustid.egg-info/PKG-INFO 
new/pyacoustid-1.1.7/pyacoustid.egg-info/PKG-INFO
--- old/pyacoustid-1.1.5/pyacoustid.egg-info/PKG-INFO   2017-04-08 
18:23:35.000000000 +0200
+++ new/pyacoustid-1.1.7/pyacoustid.egg-info/PKG-INFO   2019-05-25 
14:47:25.000000000 +0200
@@ -1,6 +1,6 @@
 Metadata-Version: 1.1
 Name: pyacoustid
-Version: 1.1.5
+Version: 1.1.7
 Summary: bindings for Chromaprint acoustic fingerprinting and the Acoustid API
 Home-page: https://github.com/sampsyo/pyacoustid
 Author: Adrian Sampson
@@ -112,6 +112,14 @@
         Version History
         ---------------
         
+        1.1.7
+          Include a LICENSE file.
+        
+        1.1.6
+          In submission, avoid an error on non-integer durations.
+          A new function, `get_submission_status`, abstracts the API endpoint 
for
+          monitoring submissions using the (new) result from the `submit` 
function.
+        
         1.1.5
           Fix compatibility with Python 3 in the `submit` function.
           Errors in `submit` are now also handled correctly (i.e., they raise 
an
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pyacoustid-1.1.5/pyacoustid.egg-info/SOURCES.txt 
new/pyacoustid-1.1.7/pyacoustid.egg-info/SOURCES.txt
--- old/pyacoustid-1.1.5/pyacoustid.egg-info/SOURCES.txt        2017-04-08 
18:23:35.000000000 +0200
+++ new/pyacoustid-1.1.7/pyacoustid.egg-info/SOURCES.txt        2019-05-25 
14:47:25.000000000 +0200
@@ -1,3 +1,4 @@
+LICENSE
 MANIFEST.in
 README.rst
 acoustid.py
@@ -5,9 +6,9 @@
 chromaprint.py
 fpcalc.py
 setup.py
+pyacoustid.egg-info/.pbr.json.icloud
 pyacoustid.egg-info/PKG-INFO
 pyacoustid.egg-info/SOURCES.txt
 pyacoustid.egg-info/dependency_links.txt
-pyacoustid.egg-info/pbr.json
 pyacoustid.egg-info/requires.txt
 pyacoustid.egg-info/top_level.txt
\ No newline at end of file
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pyacoustid-1.1.5/pyacoustid.egg-info/pbr.json 
new/pyacoustid-1.1.7/pyacoustid.egg-info/pbr.json
--- old/pyacoustid-1.1.5/pyacoustid.egg-info/pbr.json   2017-04-08 
18:23:35.000000000 +0200
+++ new/pyacoustid-1.1.7/pyacoustid.egg-info/pbr.json   1970-01-01 
01:00:00.000000000 +0100
@@ -1 +0,0 @@
-{"is_release": false, "git_version": "0d56b1d"}
\ No newline at end of file
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pyacoustid-1.1.5/setup.cfg 
new/pyacoustid-1.1.7/setup.cfg
--- old/pyacoustid-1.1.5/setup.cfg      2017-04-08 18:23:35.000000000 +0200
+++ new/pyacoustid-1.1.7/setup.cfg      2019-05-25 14:47:25.000000000 +0200
@@ -1,5 +1,4 @@
 [egg_info]
 tag_build = 
 tag_date = 0
-tag_svn_revision = 0
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pyacoustid-1.1.5/setup.py 
new/pyacoustid-1.1.7/setup.py
--- old/pyacoustid-1.1.5/setup.py       2016-12-23 16:45:18.000000000 +0100
+++ new/pyacoustid-1.1.7/setup.py       2019-05-25 14:46:06.000000000 +0200
@@ -31,10 +31,9 @@
 
 
 setup(name='pyacoustid',
-      version='1.1.5',
-      description=
-        'bindings for Chromaprint acoustic fingerprinting and the '
-        'Acoustid API',
+      version='1.1.7',
+      description=('bindings for Chromaprint acoustic fingerprinting and the '
+                   'Acoustid API'),
       author='Adrian Sampson',
       author_email='[email protected]',
       url='https://github.com/sampsyo/pyacoustid',
@@ -42,7 +41,7 @@
       platforms='ALL',
       long_description=_read('README.rst'),
 
-      install_requires = ['audioread', 'requests'],
+      install_requires=['audioread', 'requests'],
 
       py_modules=[
           'chromaprint',
@@ -55,4 +54,4 @@
           'Programming Language :: Python :: 2',
           'Programming Language :: Python :: 3',
       ],
-)
+      )


Reply via email to