From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 7C2EC15808B for ; Tue, 5 Apr 2022 13:12:26 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 1B536E0801; Tue, 5 Apr 2022 13:11:48 +0000 (UTC) Received: from smtp.gentoo.org (dev.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 582CFE07D4 for ; Tue, 5 Apr 2022 13:11:46 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id A546E3412A6 for ; Tue, 5 Apr 2022 13:11:41 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id DE267177 for ; Tue, 5 Apr 2022 13:11:39 +0000 (UTC) From: "Maciej Barć" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Maciej Barć" Message-ID: <1649159725.7c43f3153f726f05ae946a61afbf834ba5261be5.xgqt@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/spotipy/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-python/spotipy/Manifest dev-python/spotipy/metadata.xml dev-python/spotipy/spotipy-2.19.0.ebuild X-VCS-Directories: dev-python/spotipy/ X-VCS-Committer: xgqt X-VCS-Committer-Name: Maciej Barć X-VCS-Revision: 7c43f3153f726f05ae946a61afbf834ba5261be5 X-VCS-Branch: master Date: Tue, 5 Apr 2022 13:11:39 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 1269727b-220f-4164-9bf7-805089a5f0d1 X-Archives-Hash: 19cc46fe0ade2fa981a3313d1c0fda07 commit: 7c43f3153f726f05ae946a61afbf834ba5261be5 Author: Maciej Barć gentoo org> AuthorDate: Sun Apr 3 21:37:07 2022 +0000 Commit: Maciej Barć gentoo org> CommitDate: Tue Apr 5 11:55:25 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7c43f315 dev-python/spotipy: new package; add version 2.19.0 Bug: https://github.com/deepjyoti30/ytmdl/issues/222 Signed-off-by: Maciej Barć gentoo.org> dev-python/spotipy/Manifest | 1 + dev-python/spotipy/metadata.xml | 13 +++++++++ dev-python/spotipy/spotipy-2.19.0.ebuild | 48 ++++++++++++++++++++++++++++++++ 3 files changed, 62 insertions(+) diff --git a/dev-python/spotipy/Manifest b/dev-python/spotipy/Manifest new file mode 100644 index 000000000000..12c83ee2269b --- /dev/null +++ b/dev-python/spotipy/Manifest @@ -0,0 +1 @@ +DIST spotipy-2.19.0.tar.gz 102703 BLAKE2B bc132edb972236b43097c0bbc9d86932a3305d8bd3807e44e20767b123455950b8e01060efd83c87b3a162e329f5c48614205f131686af7f9312a44894a7f1e7 SHA512 fbaecd1a2cab3ef458d30de46cb89462021dfc3cfc85516d8bfe509af016a0b19af2f8de4f5cae36188b1ce1f5718c75edff0e71af2a87f4d720ee99d4541a6a diff --git a/dev-python/spotipy/metadata.xml b/dev-python/spotipy/metadata.xml new file mode 100644 index 000000000000..d6cea39e5dcb --- /dev/null +++ b/dev-python/spotipy/metadata.xml @@ -0,0 +1,13 @@ + + + + + + xgqt@gentoo.org + Maciej Barć + + + https://github.com/plamere/spotipy/issues/ + plamere/spotipy + + diff --git a/dev-python/spotipy/spotipy-2.19.0.ebuild b/dev-python/spotipy/spotipy-2.19.0.ebuild new file mode 100644 index 000000000000..91857474e8f3 --- /dev/null +++ b/dev-python/spotipy/spotipy-2.19.0.ebuild @@ -0,0 +1,48 @@ +# Copyright 2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{8..10} ) + +inherit distutils-r1 + +DESCRIPTION="A light weight Python library for the Spotify Web API" +HOMEPAGE="https://spotipy.readthedocs.io" +SRC_URI="https://github.com/plamere/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="MIT" +KEYWORDS="~amd64 ~x86" +SLOT="0" +IUSE="examples" + +RDEPEND=" + dev-python/requests[${PYTHON_USEDEP}] + dev-python/six[${PYTHON_USEDEP}] + dev-python/urllib3[${PYTHON_USEDEP}] +" +BDEPEND="test? ( dev-python/mock[${PYTHON_USEDEP}] )" + +distutils_enable_sphinx docs +distutils_enable_tests pytest + +python_prepare_all() { + # Requires user credentials + rm tests/integration/test_user_endpoints.py || die + + # Requires a spotify client ID + rm tests/integration/test_non_user_endpoints.py || die + + # Needs internet access + sed -i -e 's:test_spotify_client_credentials_get_access_token:_&:' \ + tests/unit/test_oauth.py || die + + distutils-r1_python_prepare_all +} + +python_install_all() { + distutils-r1_python_install_all + + use examples && dodoc -r examples +}