From c335fdda25e7aa7b2d48c95d18e14a02c04910cb3e6cfd304ab9f810b80f09ac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20S=C3=BAkup?= Date: Thu, 13 Apr 2023 12:36:11 +0000 Subject: [PATCH 1/3] Accepting request 1079124 from home:pgajdos:python - switch to active fork - version update to 2.6 - python-six is not required OBS-URL: https://build.opensuse.org/request/show/1079124 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-discogs-client?expand=0&rev=12 --- .gitattributes | 23 ++++++++++++ .gitignore | 1 + LICENSE | 26 ++++++++++++++ discogs-client-2.3.0.tar.gz | 3 ++ python-discogs-client.changes | 40 +++++++++++++++++++++ python-discogs-client.spec | 66 +++++++++++++++++++++++++++++++++++ v2.6.tar.gz | 3 ++ 7 files changed, 162 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 LICENSE create mode 100644 discogs-client-2.3.0.tar.gz create mode 100644 python-discogs-client.changes create mode 100644 python-discogs-client.spec create mode 100644 v2.6.tar.gz diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -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 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..522b0cd --- /dev/null +++ b/LICENSE @@ -0,0 +1,26 @@ +Copyright © 2015 Discogs. All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, +are permitted provided that the following conditions are met: + + 1. Redistributions of source code must retain the above copyright notice, this + list of conditions and the following disclaimer. + + 2. Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + +THIS SOFTWARE IS PROVIDED BY DISCOGS ''AS IS'' AND ANY EXPRESS OR IMPLIED +WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT +SHALL DISCOGS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, +PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR +BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN +CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING +IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY +OF SUCH DAMAGE. + +The views and conclusions contained in the software and documentation are those +of the authors and should not be interpreted as representing official policies, +either expressed or implied, of Discogs. diff --git a/discogs-client-2.3.0.tar.gz b/discogs-client-2.3.0.tar.gz new file mode 100644 index 0000000..e69e4c8 --- /dev/null +++ b/discogs-client-2.3.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:cc979fcbb5283f74d388c7111c8ed6bef920b01614a014d6b1c5d6fbb554bfc3 +size 24716 diff --git a/python-discogs-client.changes b/python-discogs-client.changes new file mode 100644 index 0000000..1dff2fb --- /dev/null +++ b/python-discogs-client.changes @@ -0,0 +1,40 @@ +------------------------------------------------------------------- +Thu Apr 13 11:02:51 UTC 2023 - pgajdos@suse.com + +- switch to active fork +- version update to 2.6 +- python-six is not required + +------------------------------------------------------------------- +Tue Sep 27 18:26:10 UTC 2022 - Yogalakshmi Arunachalam + +- Update to 2.3.0 + This project is no longer maintained. You can still use a REST client like Requests or other + third-party Python library to access the Discogs REST API. + +------------------------------------------------------------------- +Tue May 25 06:52:41 UTC 2021 - pgajdos@suse.com + +- %check: use %pyunittest rpm macro + +------------------------------------------------------------------- +Fri Mar 8 13:12:53 UTC 2019 - Tomáš Chvátal + +- Update to 2.2.2: + * Dependency updates + +------------------------------------------------------------------- +Tue Dec 4 12:47:18 UTC 2018 - Matej Cepl + +- Remove superfluous devel dependency for noarch package + +------------------------------------------------------------------- +Thu Sep 7 20:07:01 UTC 2017 - toddrme2178@gmail.com + +- Implement single-spec version. + +------------------------------------------------------------------- +Tue Oct 20 23:08:08 UTC 2015 - hpj@urpla.net + +- version 0.5: initial build + diff --git a/python-discogs-client.spec b/python-discogs-client.spec new file mode 100644 index 0000000..8981da4 --- /dev/null +++ b/python-discogs-client.spec @@ -0,0 +1,66 @@ +# +# spec file for package python-discogs-client +# +# Copyright (c) 2023 SUSE LLC +# Copyright (c) 2015 LISA GmbH, Bingen, Germany. +# +# 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-discogs-client +Version: 2.6 +Release: 0 +Summary: Official Python API client for Discogs +License: BSD-2-Clause +Group: Development/Languages/Python +# URL: https://github.com/discogs/discogs_client discontinued +URL: https://github.com/joalla/discogs_client/ +Source: https://github.com/joalla/discogs_client/archive/refs/tags/v%{version}.tar.gz +BuildRequires: %{python_module oauthlib} +BuildRequires: %{python_module python-dateutil} +BuildRequires: %{python_module requests} +BuildRequires: %{python_module setuptools} +BuildRequires: fdupes +BuildRequires: python-rpm-macros +Requires: python-oauthlib +Requires: python-python-dateutil +Requires: python-requests +BuildArch: noarch +%python_subpackages + +%description +This is the official Discogs API client for Python. It enables you to query the +Discogs database for information on artists, releases, labels, users, +Marketplace listings, and more. It also supports OAuth 1.0a authorization, +which allows you to change user data such as profile information, collections +and wantlists, inventory, and orders. + +%prep +%autosetup -p1 -n discogs_client-%{version} + +%build +%python_build + +%install +%python_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%check +%pyunittest discover -v discogs_client/tests + +%files %{python_files} +%license LICENSE +%{python_sitelib}/discogs_client/ +%{python_sitelib}/*discogs_client-%{version}-py*.egg-info + +%changelog diff --git a/v2.6.tar.gz b/v2.6.tar.gz new file mode 100644 index 0000000..fdbabd6 --- /dev/null +++ b/v2.6.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b11545cbaf27cdfab1ae44f5fa439eb39c5803e3a4f659d6d5c4bed17c9bc15d +size 55315 From 0467a03bbc6c15f1cd1311a72f0f5a4dcaef0a0f80b26068e0fb7a6d8e8bb7d4 Mon Sep 17 00:00:00 2001 From: Steve Kowalik Date: Thu, 28 Nov 2024 03:14:43 +0000 Subject: [PATCH 2/3] - Update to 2.7.1: * Small fixes for Python 3.12 references * Parse artist role field - Drop seperate LICENSE file OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-discogs-client?expand=0&rev=13 --- LICENSE | 26 -------------------------- python-discogs-client.changes | 8 ++++++++ python-discogs-client.spec | 19 ++++++++++--------- v2.6.tar.gz | 3 --- v2.7.1.tar.gz | 3 +++ 5 files changed, 21 insertions(+), 38 deletions(-) delete mode 100644 LICENSE delete mode 100644 v2.6.tar.gz create mode 100644 v2.7.1.tar.gz diff --git a/LICENSE b/LICENSE deleted file mode 100644 index 522b0cd..0000000 --- a/LICENSE +++ /dev/null @@ -1,26 +0,0 @@ -Copyright © 2015 Discogs. All rights reserved. - -Redistribution and use in source and binary forms, with or without modification, -are permitted provided that the following conditions are met: - - 1. Redistributions of source code must retain the above copyright notice, this - list of conditions and the following disclaimer. - - 2. Redistributions in binary form must reproduce the above copyright notice, - this list of conditions and the following disclaimer in the documentation - and/or other materials provided with the distribution. - -THIS SOFTWARE IS PROVIDED BY DISCOGS ''AS IS'' AND ANY EXPRESS OR IMPLIED -WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF -MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT -SHALL DISCOGS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, -PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR -BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN -CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING -IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY -OF SUCH DAMAGE. - -The views and conclusions contained in the software and documentation are those -of the authors and should not be interpreted as representing official policies, -either expressed or implied, of Discogs. diff --git a/python-discogs-client.changes b/python-discogs-client.changes index 1dff2fb..bd75c10 100644 --- a/python-discogs-client.changes +++ b/python-discogs-client.changes @@ -1,3 +1,11 @@ +------------------------------------------------------------------- +Thu Nov 28 03:14:29 UTC 2024 - Steve Kowalik + +- Update to 2.7.1: + * Small fixes for Python 3.12 references + * Parse artist role field +- Drop seperate LICENSE file + ------------------------------------------------------------------- Thu Apr 13 11:02:51 UTC 2023 - pgajdos@suse.com diff --git a/python-discogs-client.spec b/python-discogs-client.spec index 8981da4..bcaca70 100644 --- a/python-discogs-client.spec +++ b/python-discogs-client.spec @@ -1,7 +1,7 @@ # # spec file for package python-discogs-client # -# Copyright (c) 2023 SUSE LLC +# Copyright (c) 2024 SUSE LLC # Copyright (c) 2015 LISA GmbH, Bingen, Germany. # # All modifications and additions to the file contributed by third parties @@ -18,18 +18,18 @@ Name: python-discogs-client -Version: 2.6 +Version: 2.7.1 Release: 0 -Summary: Official Python API client for Discogs +Summary: Python API client for Discogs License: BSD-2-Clause -Group: Development/Languages/Python -# URL: https://github.com/discogs/discogs_client discontinued URL: https://github.com/joalla/discogs_client/ Source: https://github.com/joalla/discogs_client/archive/refs/tags/v%{version}.tar.gz BuildRequires: %{python_module oauthlib} +BuildRequires: %{python_module pip} BuildRequires: %{python_module python-dateutil} BuildRequires: %{python_module requests} BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros Requires: python-oauthlib @@ -49,10 +49,10 @@ and wantlists, inventory, and orders. %autosetup -p1 -n discogs_client-%{version} %build -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitelib} %check @@ -60,7 +60,8 @@ and wantlists, inventory, and orders. %files %{python_files} %license LICENSE -%{python_sitelib}/discogs_client/ -%{python_sitelib}/*discogs_client-%{version}-py*.egg-info +%doc README.md +%{python_sitelib}/discogs_client +%{python_sitelib}/python3_discogs_client-%{version}.dist-info %changelog diff --git a/v2.6.tar.gz b/v2.6.tar.gz deleted file mode 100644 index fdbabd6..0000000 --- a/v2.6.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:b11545cbaf27cdfab1ae44f5fa439eb39c5803e3a4f659d6d5c4bed17c9bc15d -size 55315 diff --git a/v2.7.1.tar.gz b/v2.7.1.tar.gz new file mode 100644 index 0000000..95c181f --- /dev/null +++ b/v2.7.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:6cc7fd29aa99181cf119ca14100290d3ebf5f5dfa19df4e94f1e4f551d1db28f +size 56452 From d4d23c482e74ba91ccc529f7652bd46b5507a9fa7a7276397fe7985290ac378d Mon Sep 17 00:00:00 2001 From: Steve Kowalik Date: Thu, 28 Nov 2024 04:39:23 +0000 Subject: [PATCH 3/3] Fix doc link OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-discogs-client?expand=0&rev=14 --- python-discogs-client.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python-discogs-client.spec b/python-discogs-client.spec index bcaca70..17cb8a7 100644 --- a/python-discogs-client.spec +++ b/python-discogs-client.spec @@ -60,7 +60,7 @@ and wantlists, inventory, and orders. %files %{python_files} %license LICENSE -%doc README.md +%doc README.mkd %{python_sitelib}/discogs_client %{python_sitelib}/python3_discogs_client-%{version}.dist-info