Gentoo Archives: gentoo-commits

From: Nicola Smaniotto <smaniotto.nicola@×××××.com>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/proj/guru:dev commit in: media-sound/spotify_dl/files/, media-sound/spotify_dl/
Date: Sun, 01 May 2022 10:28:21
Message-Id: 1651400894.55a5b3f38fcc577ac1ab605fa9dc71c694dd624e.smaniotto.nicola@gentoo
1 commit: 55a5b3f38fcc577ac1ab605fa9dc71c694dd624e
2 Author: Nicola Smaniotto <smaniotto.nicola <AT> gmail <DOT> com>
3 AuthorDate: Sun May 1 10:08:47 2022 +0000
4 Commit: Nicola Smaniotto <smaniotto.nicola <AT> gmail <DOT> com>
5 CommitDate: Sun May 1 10:28:14 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=55a5b3f3
7
8 media-sound/spotify_dl: add 8.3.0, drop older
9
10 All older ebuilds depend on packages that are now outside the tree
11
12 Signed-off-by: Nicola Smaniotto <smaniotto.nicola <AT> gmail.com>
13
14 media-sound/spotify_dl/Manifest | 4 +--
15 .../spotify_dl-8.0.0-fuzzy-requirements.patch | 20 -----------
16 media-sound/spotify_dl/spotify_dl-7.6.0.ebuild | 30 ----------------
17 media-sound/spotify_dl/spotify_dl-8.0.0.ebuild | 41 ----------------------
18 ..._dl-8.1.0-r1.ebuild => spotify_dl-8.3.0.ebuild} | 11 ++++--
19 5 files changed, 9 insertions(+), 97 deletions(-)
20
21 diff --git a/media-sound/spotify_dl/Manifest b/media-sound/spotify_dl/Manifest
22 index 24a07b1d5..5db202c7f 100644
23 --- a/media-sound/spotify_dl/Manifest
24 +++ b/media-sound/spotify_dl/Manifest
25 @@ -1,3 +1 @@
26 -DIST spotify_dl-7.6.0.tar.gz 319723 BLAKE2B 9b0bb4c4839226b83ce6b7f0e030c5136de47f84e4c5f069b9fe573755746a12e0b32a8ad488704aae4a5355920289d9f2e7e955a950b3e9d7c7d78f24f26928 SHA512 21f8111f679c028b71371aa3d8bd822c0e72474fb768834a5f3c84fd3491e74e56bbf7acf0c23a132cdb60ac99dbcb65d4ca60f388ee48cbaeb1b66528bd06a5
27 -DIST spotify_dl-8.0.0.tar.gz 320100 BLAKE2B a0ad0f732f244b8140f6278ca99c1a392d73455750fec1a97226fc607d3b7a1d226c2629ea3674173f8f9d0ef059c910c7e549f42b68fdbdc03efa4b07435818 SHA512 7c8d385b6777c89a4a75a7b1fc63bfcf20552a1c23e48a80d0688af0d51285085ebfb418ec5b94becd84870a07fc347ade31b6d2da511c000161489cccba23ed
28 -DIST spotify_dl-8.1.0.tar.gz 319957 BLAKE2B 667f57e74e9d725d26f94239dcd2d6d88d0b33c8d7fb73ea0554f3ce65477905fbd19e9e1fd36f0954dd690f6c0c45bd14af10b18ca8932d2d26bd6aa97023c5 SHA512 f906deac7396b2e1482582294cb81bee54582ccdc97f562cc6eba5d9352a52ac67a86f179a0a52a4e51bd3e59394952e1aa856ef0564123cb37d70ba82b4255c
29 +DIST spotify_dl-8.3.0.tar.gz 319579 BLAKE2B d61efe74a84704fef028df4d585b249eafdfbd2d48911f7fa36b72a33edf1a94eedb21b498bd53f4e53ce8a2b4b1b0f7e39caadf320485011717221e7c2eaef5 SHA512 739657d0f2f1bea741de8a2e51bc5be70dbb276d83d0e4555a7767d8c359dfd570c9348eaeccaac30d3097be1214648e798fc6c1de8deab3f346e2e0b89bb04a
30
31 diff --git a/media-sound/spotify_dl/files/spotify_dl-8.0.0-fuzzy-requirements.patch b/media-sound/spotify_dl/files/spotify_dl-8.0.0-fuzzy-requirements.patch
32 deleted file mode 100644
33 index fecc8e667..000000000
34 --- a/media-sound/spotify_dl/files/spotify_dl-8.0.0-fuzzy-requirements.patch
35 +++ /dev/null
36 @@ -1,20 +0,0 @@
37 -Accept a wider range of versions, the provided ones are too
38 -restrictive and sometimes outside the gentoo tree.
39 -Patch by Nicola Smaniotto.
40 -
41 -diff --git a/requirements.txt b/requirements.txt
42 -index 586b007..987eeb2 100644
43 ---- a/requirements.txt
44 -+++ b/requirements.txt
45 -@@ -1,5 +1,5 @@
46 --sentry_sdk==1.5.3
47 --yt-dlp>=2022.01.21
48 --spotipy==2.16.1
49 --mutagen==1.45.1
50 --rich==11.0.0
51 -\ No newline at end of file
52 -+sentry_sdk>=1.5, <2
53 -+yt-dlp>=2021.10.27
54 -+spotipy>=2.16, <3
55 -+mutagen>=1.45, <2
56 -+rich>=11.0, <12
57
58 diff --git a/media-sound/spotify_dl/spotify_dl-7.6.0.ebuild b/media-sound/spotify_dl/spotify_dl-7.6.0.ebuild
59 deleted file mode 100644
60 index 962c38845..000000000
61 --- a/media-sound/spotify_dl/spotify_dl-7.6.0.ebuild
62 +++ /dev/null
63 @@ -1,30 +0,0 @@
64 -# Copyright 2021 Gentoo Authors
65 -# Distributed under the terms of the GNU General Public License v2
66 -
67 -EAPI=8
68 -
69 -PYTHON_COMPAT=( python3_{8..9} )
70 -
71 -inherit distutils-r1
72 -
73 -MY_PN="${PN/_/-}"
74 -
75 -DESCRIPTION="Downloads songs from a Spotify Playlist/Track/Album that you provide"
76 -HOMEPAGE="https://github.com/SathyaBhat/spotify-dl/"
77 -SRC_URI="https://github.com/SathyaBhat/${MY_PN}/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
78 -
79 -LICENSE="MIT"
80 -SLOT="0"
81 -KEYWORDS="~amd64"
82 -
83 -RESTRICT="test" # tests require network access
84 -
85 -S="${WORKDIR}/${MY_PN}-${PV}"
86 -
87 -RDEPEND="
88 - dev-python/spotipy[${PYTHON_USEDEP}]
89 - media-libs/mutagen[${PYTHON_USEDEP}]
90 - dev-python/sentry-sdk[${PYTHON_USEDEP}]
91 - dev-python/peewee[${PYTHON_USEDEP}]
92 - >=net-misc/youtube-dl-2021.06.06[${PYTHON_USEDEP}]
93 -"
94
95 diff --git a/media-sound/spotify_dl/spotify_dl-8.0.0.ebuild b/media-sound/spotify_dl/spotify_dl-8.0.0.ebuild
96 deleted file mode 100644
97 index aebf95422..000000000
98 --- a/media-sound/spotify_dl/spotify_dl-8.0.0.ebuild
99 +++ /dev/null
100 @@ -1,41 +0,0 @@
101 -# Copyright 2022 Gentoo Authors
102 -# Distributed under the terms of the GNU General Public License v2
103 -
104 -EAPI=8
105 -
106 -PYTHON_COMPAT=( python3_{8..9} )
107 -
108 -inherit distutils-r1
109 -
110 -MY_PN="${PN/_/-}"
111 -
112 -DESCRIPTION="Downloads songs from a Spotify Playlist/Track/Album that you provide"
113 -HOMEPAGE="https://github.com/SathyaBhat/spotify-dl/"
114 -SRC_URI="https://github.com/SathyaBhat/${MY_PN}/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
115 -
116 -LICENSE="MIT"
117 -SLOT="0"
118 -KEYWORDS="~amd64"
119 -
120 -PROPERTIES="test_network"
121 -RESTRICT="test"
122 -
123 -S="${WORKDIR}/${MY_PN}-${PV}"
124 -
125 -RDEPEND="
126 - >=dev-python/sentry-sdk-1.5[${PYTHON_USEDEP}]
127 - <dev-python/sentry-sdk-2[${PYTHON_USEDEP}]
128 - net-misc/yt-dlp[${PYTHON_USEDEP}]
129 - >=dev-python/spotipy-2.16[${PYTHON_USEDEP}]
130 - <dev-python/spotipy-3[${PYTHON_USEDEP}]
131 - >=media-libs/mutagen-1.45[${PYTHON_USEDEP}]
132 - <media-libs/mutagen-2[${PYTHON_USEDEP}]
133 - >=dev-python/rich-11.0[${PYTHON_USEDEP}]
134 - <dev-python/rich-12[${PYTHON_USEDEP}]
135 -"
136 -
137 -PATCHES=(
138 - "${FILESDIR}"/"${P}"-fuzzy-requirements.patch
139 -)
140 -
141 -distutils_enable_tests pytest
142
143 diff --git a/media-sound/spotify_dl/spotify_dl-8.1.0-r1.ebuild b/media-sound/spotify_dl/spotify_dl-8.3.0.ebuild
144 similarity index 78%
145 rename from media-sound/spotify_dl/spotify_dl-8.1.0-r1.ebuild
146 rename to media-sound/spotify_dl/spotify_dl-8.3.0.ebuild
147 index b9df9dbba..26e98a14b 100644
148 --- a/media-sound/spotify_dl/spotify_dl-8.1.0-r1.ebuild
149 +++ b/media-sound/spotify_dl/spotify_dl-8.3.0.ebuild
150 @@ -26,12 +26,17 @@ RDEPEND="
151 >=dev-python/sentry-sdk-1.5[${PYTHON_USEDEP}]
152 <dev-python/sentry-sdk-2[${PYTHON_USEDEP}]
153 >=net-misc/yt-dlp-2022.1.21[${PYTHON_USEDEP}]
154 - >=dev-python/spotipy-2.16[${PYTHON_USEDEP}]
155 + >=dev-python/spotipy-2.19[${PYTHON_USEDEP}]
156 <dev-python/spotipy-3[${PYTHON_USEDEP}]
157 >=media-libs/mutagen-1.45[${PYTHON_USEDEP}]
158 <media-libs/mutagen-2[${PYTHON_USEDEP}]
159 - >=dev-python/rich-11.0[${PYTHON_USEDEP}]
160 - <dev-python/rich-12[${PYTHON_USEDEP}]
161 + >=dev-python/rich-12.0[${PYTHON_USEDEP}]
162 + <dev-python/rich-13[${PYTHON_USEDEP}]
163 "
164
165 distutils_enable_tests pytest
166 +
167 +src_prepare() {
168 + default
169 + sed -i "s/\.0$//" requirements.txt || die "Could not patch requrements"
170 +}