[gentoo-commits] repo/proj/guru:dev commit in: dev-python/spotipy/files/, dev-python/spotipy/

2020-02-13 Thread Andrew Ammerlaan
commit: 1b5499afda02bb048e8049191abfd8294bac3050
Author: Andrew Ammerlaan  riseup  net>
AuthorDate: Thu Feb 13 10:20:15 2020 +
Commit: Andrew Ammerlaan  riseup  net>
CommitDate: Thu Feb 13 10:20:15 2020 +
URL:https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=1b5499af

dev-python/spotipy: Version bump 2.8.0

Package-Manager: Portage-2.3.88, Repoman-2.3.20
Signed-off-by: Andrew Ammerlaan  riseup.net>

 dev-python/spotipy/Manifest|   2 +-
 .../files/spotipy-2.7.1-skip-online-test.patch | 515 -
 .../{spotipy-2.7.1.ebuild => spotipy-2.8.0.ebuild} |  12 +-
 3 files changed, 12 insertions(+), 517 deletions(-)

diff --git a/dev-python/spotipy/Manifest b/dev-python/spotipy/Manifest
index b3343ca..30f8d3e 100644
--- a/dev-python/spotipy/Manifest
+++ b/dev-python/spotipy/Manifest
@@ -1 +1 @@
-DIST spotipy-2.7.1.tar.gz 80050 BLAKE2B 
f4c4be4c8284a0c1fe12d7f963dc1a92c0c9f73ac9981debc193f21502b9106e13311a7ca97bfe00384892da73df7f964a8e8d786371551079902aebf3c32815
 SHA512 
8751f78e51778ff595ddf4f511bfd9c81b7c46789d91a86c1a6dcd169b55668d48b812e6c6e2befd85a12a3e622127a9ba466c6a5008b1e3cafe25939f26e705
+DIST spotipy-2.8.0.tar.gz 81270 BLAKE2B 
25f17a3fbf368157bf5c8a2e9262eb7573da48e05e545fbf530c87751c07abf1945dad082681115946ac8574d40ddb548660ba4dc398bc3bba06f5919b162ba3
 SHA512 
b7be4d30a5935970c432b5faab19d58683e2cb9ce41fdadb132199fc4be4314e3f32c4fcb4dc44fbfba096b38a6f2a4cce3cf476b8d929639cf773aaac94ab8a

diff --git a/dev-python/spotipy/files/spotipy-2.7.1-skip-online-test.patch 
b/dev-python/spotipy/files/spotipy-2.7.1-skip-online-test.patch
deleted file mode 100644
index 0386b96..000
--- a/dev-python/spotipy/files/spotipy-2.7.1-skip-online-test.patch
+++ /dev/null
@@ -1,515 +0,0 @@
-diff --git a/tests/test_auth.py b/tests/test_auth.py
-deleted file mode 100644
-index 438e88f..000
 a/tests/test_auth.py
-+++ /dev/null
-@@ -1,363 +0,0 @@
--# -*- coding: utf-8 -*-
--
--"""
--These tests require user authentication - provide client credentials using the
--following environment variables
--
--::
--
--'SPOTIPY_CLIENT_USERNAME'
--'SPOTIPY_CLIENT_ID'
--'SPOTIPY_CLIENT_SECRET'
--'SPOTIPY_REDIRECT_URI'
--"""
--
--from __future__ import print_function
--
--from spotipy import (
--CLIENT_CREDS_ENV_VARS as CCEV,
--prompt_for_user_token,
--Spotify,
--SpotifyException,
--)
--import os
--import sys
--import unittest
--import warnings
--import requests
--
--sys.path.insert(0, os.path.abspath(os.pardir))
--
--
--class AuthTestSpotipy(unittest.TestCase):
--"""
--These tests require user authentication - provide client credentials using
--the following environment variables
--
--::
--
--'SPOTIPY_CLIENT_USERNAME'
--'SPOTIPY_CLIENT_ID'
--'SPOTIPY_CLIENT_SECRET'
--'SPOTIPY_REDIRECT_URI'
--"""
--
--playlist = "spotify:user:plamere:playlist:2oCEWyyAPbZp9xhVSxZavx"
--playlist_new_id = "spotify:playlist:7GlxpQjjxRjmbb3RP2rDqI"
--four_tracks = ["spotify:track:6RtPijgfPKROxEzTHNRiDp",
--   "spotify:track:7IHOIqZUUInxjVkko181PB",
--   "4VrWlk8IQxevMvERoX08iC",
--   "http://open.spotify.com/track/3cySlItpiPiIAzU3NyHCJf;]
--
--two_tracks = ["spotify:track:6RtPijgfPKROxEzTHNRiDp",
--  "spotify:track:7IHOIqZUUInxjVkko181PB"]
--
--other_tracks = ["spotify:track:2wySlB6vMzCbQrRnNGOYKa",
--"spotify:track:29xKs5BAHlmlX1u4gzQAbJ",
--"spotify:track:1PB7gRWcvefzu7t3LJLUlf"]
--
--album_ids = ["spotify:album:6kL09DaURb7rAoqqaA51KU",
-- "spotify:album:6RTzC0rDbvagTSJLlY7AKl"]
--
--bad_id = 'BAD_ID'
--
--@classmethod
--def setUpClass(self):
--if sys.version_info >= (3, 2):
--# >= Python3.2 only
--warnings.filterwarnings(
--"ignore",
--category=ResourceWarning,
--message="unclosed.*")
--
--missing = list(filter(lambda var: not os.getenv(CCEV[var]), CCEV))
--
--if missing:
--raise Exception(
--('Please set the client credentials for the test application'
-- ' using the following environment variables: {}').format(
--CCEV.values()))
--
--self.username = os.getenv(CCEV['client_username'])
--
--self.scope = (
--'playlist-modify-public '
--'user-library-read '
--'user-follow-read '
--'user-library-modify '
--'user-read-private '
--'user-top-read '
--'user-follow-modify '
--'ugc-image-upload'
--)
--
--self.token = prompt_for_user_token(self.username, scope=self.scope)
--
--self.spotify = Spotify(auth=self.token)
--
--# Helper
--def get_or_create_spotify_playlist(self, playlist_name):
--playlists = self.spotify.user_playlists(self.username)

[gentoo-commits] repo/proj/guru:dev commit in: dev-python/spotipy/files/, dev-python/spotipy/

2020-01-21 Thread Andrew Ammerlaan
commit: 70b71a5584b9d40d8df84ac717c73128ef687fec
Author: Andrew Ammerlaan  riseup  net>
AuthorDate: Tue Jan 21 14:34:31 2020 +
Commit: Andrew Ammerlaan  riseup  net>
CommitDate: Tue Jan 21 14:34:31 2020 +
URL:https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=70b71a55

dev-python/spotipy: A light weight Py library for Spotify Web API

Package-Manager: Portage-2.3.84, Repoman-2.3.20
Signed-off-by: Andrew Ammerlaan  riseup.net>

 dev-python/spotipy/Manifest|   1 +
 .../files/spotipy-2.7.1-skip-online-test.patch | 515 +
 dev-python/spotipy/metadata.xml|  13 +
 dev-python/spotipy/spotipy-2.7.1.ebuild|  41 ++
 4 files changed, 570 insertions(+)

diff --git a/dev-python/spotipy/Manifest b/dev-python/spotipy/Manifest
new file mode 100644
index 000..b3343ca
--- /dev/null
+++ b/dev-python/spotipy/Manifest
@@ -0,0 +1 @@
+DIST spotipy-2.7.1.tar.gz 80050 BLAKE2B 
f4c4be4c8284a0c1fe12d7f963dc1a92c0c9f73ac9981debc193f21502b9106e13311a7ca97bfe00384892da73df7f964a8e8d786371551079902aebf3c32815
 SHA512 
8751f78e51778ff595ddf4f511bfd9c81b7c46789d91a86c1a6dcd169b55668d48b812e6c6e2befd85a12a3e622127a9ba466c6a5008b1e3cafe25939f26e705

diff --git a/dev-python/spotipy/files/spotipy-2.7.1-skip-online-test.patch 
b/dev-python/spotipy/files/spotipy-2.7.1-skip-online-test.patch
new file mode 100644
index 000..0386b96
--- /dev/null
+++ b/dev-python/spotipy/files/spotipy-2.7.1-skip-online-test.patch
@@ -0,0 +1,515 @@
+diff --git a/tests/test_auth.py b/tests/test_auth.py
+deleted file mode 100644
+index 438e88f..000
+--- a/tests/test_auth.py
 /dev/null
+@@ -1,363 +0,0 @@
+-# -*- coding: utf-8 -*-
+-
+-"""
+-These tests require user authentication - provide client credentials using the
+-following environment variables
+-
+-::
+-
+-'SPOTIPY_CLIENT_USERNAME'
+-'SPOTIPY_CLIENT_ID'
+-'SPOTIPY_CLIENT_SECRET'
+-'SPOTIPY_REDIRECT_URI'
+-"""
+-
+-from __future__ import print_function
+-
+-from spotipy import (
+-CLIENT_CREDS_ENV_VARS as CCEV,
+-prompt_for_user_token,
+-Spotify,
+-SpotifyException,
+-)
+-import os
+-import sys
+-import unittest
+-import warnings
+-import requests
+-
+-sys.path.insert(0, os.path.abspath(os.pardir))
+-
+-
+-class AuthTestSpotipy(unittest.TestCase):
+-"""
+-These tests require user authentication - provide client credentials using
+-the following environment variables
+-
+-::
+-
+-'SPOTIPY_CLIENT_USERNAME'
+-'SPOTIPY_CLIENT_ID'
+-'SPOTIPY_CLIENT_SECRET'
+-'SPOTIPY_REDIRECT_URI'
+-"""
+-
+-playlist = "spotify:user:plamere:playlist:2oCEWyyAPbZp9xhVSxZavx"
+-playlist_new_id = "spotify:playlist:7GlxpQjjxRjmbb3RP2rDqI"
+-four_tracks = ["spotify:track:6RtPijgfPKROxEzTHNRiDp",
+-   "spotify:track:7IHOIqZUUInxjVkko181PB",
+-   "4VrWlk8IQxevMvERoX08iC",
+-   "http://open.spotify.com/track/3cySlItpiPiIAzU3NyHCJf;]
+-
+-two_tracks = ["spotify:track:6RtPijgfPKROxEzTHNRiDp",
+-  "spotify:track:7IHOIqZUUInxjVkko181PB"]
+-
+-other_tracks = ["spotify:track:2wySlB6vMzCbQrRnNGOYKa",
+-"spotify:track:29xKs5BAHlmlX1u4gzQAbJ",
+-"spotify:track:1PB7gRWcvefzu7t3LJLUlf"]
+-
+-album_ids = ["spotify:album:6kL09DaURb7rAoqqaA51KU",
+- "spotify:album:6RTzC0rDbvagTSJLlY7AKl"]
+-
+-bad_id = 'BAD_ID'
+-
+-@classmethod
+-def setUpClass(self):
+-if sys.version_info >= (3, 2):
+-# >= Python3.2 only
+-warnings.filterwarnings(
+-"ignore",
+-category=ResourceWarning,
+-message="unclosed.*")
+-
+-missing = list(filter(lambda var: not os.getenv(CCEV[var]), CCEV))
+-
+-if missing:
+-raise Exception(
+-('Please set the client credentials for the test application'
+- ' using the following environment variables: {}').format(
+-CCEV.values()))
+-
+-self.username = os.getenv(CCEV['client_username'])
+-
+-self.scope = (
+-'playlist-modify-public '
+-'user-library-read '
+-'user-follow-read '
+-'user-library-modify '
+-'user-read-private '
+-'user-top-read '
+-'user-follow-modify '
+-'ugc-image-upload'
+-)
+-
+-self.token = prompt_for_user_token(self.username, scope=self.scope)
+-
+-self.spotify = Spotify(auth=self.token)
+-
+-# Helper
+-def get_or_create_spotify_playlist(self, playlist_name):
+-playlists = self.spotify.user_playlists(self.username)
+-while playlists:
+-for item in playlists['items']:
+-if item['name'] == playlist_name:
+-return item
+-playlists = self.spotify.next(playlists)
+-return