From f85f065bb9fef7ef7298a72916126a520e75335f63875a358189954af9af9183 Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Tue, 19 Oct 2021 17:15:45 +0000 Subject: [PATCH 1/3] Accepting request 926328 from home:mia:branches:devel:languages:python - Update to 3.0.4 * expose failure responses in CommandError exceptions - Changes in 3.0.3: * asyncio: tolerate early disconnects - Changes in 3.0.2: * asyncio: fix disconnect happen before connect * asyncio: better protection against request cancellation * asyncio: idle iterator raises error when connection closed - Changes in 3.0.0/3.0.1: * Breaking changes: albumart now returns dictionary `{"size": "...", "binary": b"..."}` instead of just a string * add readpicture command * add partition, newpartition and delpartition commands * add moveoutput command * removed deprecated send_ and fetch_ commands. Use the asyncio or twisted API instead for asynchronous mpd commands. - Changes in 2.0.0: * Minimum python version was increased to python3.6, python2.7 support was dropped * asyncio: fix parsing delimiters * add support for albumart command - Changes in 1.1.0: * Fix list command to work with grouping. Always returns list of dictionaries now. Make sure to adopt your code since this is an API change. * fix compatibility with python3.9 * fix connecting to unix socket in asyncio version * close asyncio transports on disconnect * create TCP socket with TCP_NODELAY for better responsiveness OBS-URL: https://build.opensuse.org/request/show/926328 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-python-mpd2?expand=0&rev=5 --- python-mpd2-1.0.0.tar.bz2 | 3 --- python-mpd2-3.0.4.tar.gz | 3 +++ python-python-mpd2.changes | 32 ++++++++++++++++++++++++++++++++ python-python-mpd2.spec | 11 ++++++----- 4 files changed, 41 insertions(+), 8 deletions(-) delete mode 100644 python-mpd2-1.0.0.tar.bz2 create mode 100644 python-mpd2-3.0.4.tar.gz diff --git a/python-mpd2-1.0.0.tar.bz2 b/python-mpd2-1.0.0.tar.bz2 deleted file mode 100644 index 2c6ca85..0000000 --- a/python-mpd2-1.0.0.tar.bz2 +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:772fa6861273bb9f363a97987c2c45ca3965eb770570f1f02566efec9c89fc5f -size 42827 diff --git a/python-mpd2-3.0.4.tar.gz b/python-mpd2-3.0.4.tar.gz new file mode 100644 index 0000000..0c72503 --- /dev/null +++ b/python-mpd2-3.0.4.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:7a67834e22d97e7cd77f8951c8baf87c149285c67d67d73550ce034302561ae5 +size 57445 diff --git a/python-python-mpd2.changes b/python-python-mpd2.changes index dce489e..5894e65 100644 --- a/python-python-mpd2.changes +++ b/python-python-mpd2.changes @@ -1,3 +1,35 @@ +------------------------------------------------------------------- +Tue Oct 19 16:32:13 UTC 2021 - Mia Herkt + +- Update to 3.0.4 + * expose failure responses in CommandError exceptions +- Changes in 3.0.3: + * asyncio: tolerate early disconnects +- Changes in 3.0.2: + * asyncio: fix disconnect happen before connect + * asyncio: better protection against request cancellation + * asyncio: idle iterator raises error when connection closed +- Changes in 3.0.0/3.0.1: + * Breaking changes: albumart now returns dictionary + `{"size": "...", "binary": b"..."}` instead of just a string + * add readpicture command + * add partition, newpartition and delpartition commands + * add moveoutput command + * removed deprecated send_ and fetch_ commands. Use the asyncio + or twisted API instead for asynchronous mpd commands. +- Changes in 2.0.0: + * Minimum python version was increased to python3.6, python2.7 support was dropped + * asyncio: fix parsing delimiters + * add support for albumart command +- Changes in 1.1.0: + * Fix list command to work with grouping. Always returns list of + dictionaries now. Make sure to adopt your code since this is an + API change. + * fix compatibility with python3.9 + * fix connecting to unix socket in asyncio version + * close asyncio transports on disconnect + * create TCP socket with TCP_NODELAY for better responsiveness + ------------------------------------------------------------------- Wed Aug 29 10:58:41 UTC 2018 - tchvatal@suse.com diff --git a/python-python-mpd2.spec b/python-python-mpd2.spec index 9a6617f..2e407f4 100644 --- a/python-python-mpd2.spec +++ b/python-python-mpd2.spec @@ -1,7 +1,7 @@ # # spec file for package python-python-mpd2 # -# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2021 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -12,19 +12,20 @@ # 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/ # +%define skip_python2 1 %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-python-mpd2 -Version: 1.0.0 +Version: 3.0.4 Release: 0 Summary: A Python MPD client library License: LGPL-3.0-only Group: Development/Languages/Python URL: https://github.com/Mic92/python-mpd2 -Source: https://files.pythonhosted.org/packages/source/p/python-mpd2/python-mpd2-%{version}.tar.bz2 +Source: https://files.pythonhosted.org/packages/source/p/python-mpd2/python-mpd2-%{version}.tar.gz BuildRequires: %{python_module Twisted} BuildRequires: %{python_module mock} BuildRequires: %{python_module setuptools} @@ -57,7 +58,7 @@ backward compatibles with the original python-mpd package. %files %{python_files} %license LICENSE.txt -%doc README.rst +%doc README.rst doc %{python_sitelib}/python_mpd2-%{version}-py*.egg-info %{python_sitelib}/mpd From 7dc1e816f1c81f379ca575d3816988b5c6797f1a2965ffd704ed7aab1573e81f Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Tue, 19 Oct 2021 17:18:25 +0000 Subject: [PATCH 2/3] - Use %pyunittest macro instead of the homebrewn solution. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-python-mpd2?expand=0&rev=6 --- python-python-mpd2.changes | 5 +++++ python-python-mpd2.spec | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/python-python-mpd2.changes b/python-python-mpd2.changes index 5894e65..c78ba67 100644 --- a/python-python-mpd2.changes +++ b/python-python-mpd2.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue Oct 19 17:17:54 UTC 2021 - Matej Cepl + +- Use %pyunittest macro instead of the homebrewn solution. + ------------------------------------------------------------------- Tue Oct 19 16:32:13 UTC 2021 - Mia Herkt diff --git a/python-python-mpd2.spec b/python-python-mpd2.spec index 2e407f4..27f5407 100644 --- a/python-python-mpd2.spec +++ b/python-python-mpd2.spec @@ -54,7 +54,7 @@ backward compatibles with the original python-mpd package. %python_expand %fdupes %{buildroot}%{$python_sitelib} %check -%python_expand PYTHON_SITEPATH=%{buildroot}%{$python_sitelib} $python -m unittest mpd.tests +%pyunittest -v mpd.tests %files %{python_files} %license LICENSE.txt From c07eb61037891210a86cab2a0841a10eea2ae368cba426db2caff2da0c9696ef Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Tue, 19 Oct 2021 17:19:54 +0000 Subject: [PATCH 3/3] - Just Recommends python-Twisted. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-python-mpd2?expand=0&rev=7 --- python-python-mpd2.changes | 1 + python-python-mpd2.spec | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/python-python-mpd2.changes b/python-python-mpd2.changes index c78ba67..343f892 100644 --- a/python-python-mpd2.changes +++ b/python-python-mpd2.changes @@ -2,6 +2,7 @@ Tue Oct 19 17:17:54 UTC 2021 - Matej Cepl - Use %pyunittest macro instead of the homebrewn solution. +- Just Recommends python-Twisted. ------------------------------------------------------------------- Tue Oct 19 16:32:13 UTC 2021 - Mia Herkt diff --git a/python-python-mpd2.spec b/python-python-mpd2.spec index 27f5407..7be0d29 100644 --- a/python-python-mpd2.spec +++ b/python-python-mpd2.spec @@ -31,7 +31,7 @@ BuildRequires: %{python_module mock} BuildRequires: %{python_module setuptools} BuildRequires: fdupes BuildRequires: python-rpm-macros -Requires: python-Twisted +Recommends: python-Twisted BuildArch: noarch %python_subpackages