1 |
commit: a5e8e5f5a6825154bb29ea0ac2dc4860594eed79 |
2 |
Author: Maciej Barć <xgqt <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Oct 29 19:24:35 2022 +0000 |
4 |
Commit: Maciej Barć <xgqt <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Oct 29 23:06:22 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a5e8e5f5 |
7 |
|
8 |
dev-python/spotipy: bump to 2.21.0 |
9 |
|
10 |
Signed-off-by: Maciej Barć <xgqt <AT> gentoo.org> |
11 |
|
12 |
dev-python/spotipy/Manifest | 1 + |
13 |
dev-python/spotipy/spotipy-2.21.0.ebuild | 49 ++++++++++++++++++++++++++++++++ |
14 |
2 files changed, 50 insertions(+) |
15 |
|
16 |
diff --git a/dev-python/spotipy/Manifest b/dev-python/spotipy/Manifest |
17 |
index 6a5da472b855..94171c508e26 100644 |
18 |
--- a/dev-python/spotipy/Manifest |
19 |
+++ b/dev-python/spotipy/Manifest |
20 |
@@ -1,2 +1,3 @@ |
21 |
DIST spotipy-2.19.0.tar.gz 102703 BLAKE2B bc132edb972236b43097c0bbc9d86932a3305d8bd3807e44e20767b123455950b8e01060efd83c87b3a162e329f5c48614205f131686af7f9312a44894a7f1e7 SHA512 fbaecd1a2cab3ef458d30de46cb89462021dfc3cfc85516d8bfe509af016a0b19af2f8de4f5cae36188b1ce1f5718c75edff0e71af2a87f4d720ee99d4541a6a |
22 |
DIST spotipy-2.20.0.tar.gz 103437 BLAKE2B 78b026b9de04b0115c5621345e4f4c0ee47a51980221c77da8754c54fc8c321a1826983ceb9bcf9c415690906f3b3ea4657243e6b5d351d3edb48084baeca292 SHA512 8b5d0704fa84974ea0728dda0fe89d021b7b1550b464026d2b087671102745c7edcab116246399dd97de42d9c0cc7411295297c328b301712b6536aa6a3cd6fd |
23 |
+DIST spotipy-2.21.0.tar.gz 105500 BLAKE2B fa49c31da93efdac23fd5cbaa31b513f48e3a90c56dee8708bf695a20c1f6040c68a22a04d6589b3a890f503d54e7c0fb017f2911ae28abe54a9e7f5bff3b540 SHA512 8783261e43962b3e98cb9b680f908d38feecf784ff404352ba16d6bb3d2e4bf1d2308b60f1437c56402e1c2a993a5bba876103f968bb8bdd81be1aef1fe6d058 |
24 |
|
25 |
diff --git a/dev-python/spotipy/spotipy-2.21.0.ebuild b/dev-python/spotipy/spotipy-2.21.0.ebuild |
26 |
new file mode 100644 |
27 |
index 000000000000..3409dd977e02 |
28 |
--- /dev/null |
29 |
+++ b/dev-python/spotipy/spotipy-2.21.0.ebuild |
30 |
@@ -0,0 +1,49 @@ |
31 |
+# Copyright 2022 Gentoo Authors |
32 |
+# Distributed under the terms of the GNU General Public License v2 |
33 |
+ |
34 |
+EAPI=8 |
35 |
+ |
36 |
+DISTUTILS_USE_PEP517=setuptools |
37 |
+PYTHON_COMPAT=( python3_{8..10} ) |
38 |
+ |
39 |
+inherit distutils-r1 |
40 |
+ |
41 |
+DESCRIPTION="A light weight Python library for the Spotify Web API" |
42 |
+HOMEPAGE="https://spotipy.readthedocs.io" |
43 |
+SRC_URI="https://github.com/plamere/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" |
44 |
+ |
45 |
+LICENSE="MIT" |
46 |
+KEYWORDS="~amd64 ~x86" |
47 |
+SLOT="0" |
48 |
+IUSE="examples" |
49 |
+ |
50 |
+RDEPEND=" |
51 |
+ dev-python/redis-py[${PYTHON_USEDEP}] |
52 |
+ dev-python/requests[${PYTHON_USEDEP}] |
53 |
+ dev-python/six[${PYTHON_USEDEP}] |
54 |
+ dev-python/urllib3[${PYTHON_USEDEP}] |
55 |
+" |
56 |
+BDEPEND="test? ( dev-python/mock[${PYTHON_USEDEP}] )" |
57 |
+ |
58 |
+distutils_enable_sphinx docs |
59 |
+distutils_enable_tests pytest |
60 |
+ |
61 |
+python_prepare_all() { |
62 |
+ # Requires user credentials |
63 |
+ rm tests/integration/test_user_endpoints.py || die |
64 |
+ |
65 |
+ # Requires a spotify client ID |
66 |
+ rm tests/integration/test_non_user_endpoints.py || die |
67 |
+ |
68 |
+ # Needs internet access |
69 |
+ sed -i -e 's:test_spotify_client_credentials_get_access_token:_&:' \ |
70 |
+ tests/unit/test_oauth.py || die |
71 |
+ |
72 |
+ distutils-r1_python_prepare_all |
73 |
+} |
74 |
+ |
75 |
+python_install_all() { |
76 |
+ distutils-r1_python_install_all |
77 |
+ |
78 |
+ use examples && dodoc -r examples |
79 |
+} |