Moved util module into main package

This commit is contained in:
Paul Lamere 2014-08-14 06:39:24 -04:00
parent 05a459e1bd
commit e35ef206d5
11 changed files with 12 additions and 13 deletions

View File

@ -3,4 +3,5 @@ v1.42, June 19, 2014 -- Removed dependency on simplejson
v1.43, June 27, 2014 -- Fixed JSON handling issue v1.43, June 27, 2014 -- Fixed JSON handling issue
v1.44, July 3, 2014 -- Added show_tracks.py exampole v1.44, July 3, 2014 -- Added show_tracks.py exampole
v1.45, July 7, 2014 -- Support for related artists endpoint. Don't used cache auth codes when scope changes v1.45, July 7, 2014 -- Support for related artists endpoint. Don't used cache auth codes when scope changes
v1.50, August 14, 2014 -- Refactored util out of examples and into the main package

View File

@ -6,7 +6,7 @@ import sys
import spotipy import spotipy
import spotipy.oauth2 as oauth2 import spotipy.oauth2 as oauth2
import util import spotipy.util as util
scope = 'user-library-modify' scope = 'user-library-modify'

View File

@ -6,7 +6,7 @@ import sys
import spotipy import spotipy
import spotipy.oauth2 as oauth2 import spotipy.oauth2 as oauth2
import util import spotipy.util as util
if len(sys.argv) > 3: if len(sys.argv) > 3:
username = sys.argv[1] username = sys.argv[1]

View File

@ -7,8 +7,8 @@ import subprocess
import spotipy import spotipy
import util
import spotipy.oauth2 as oauth2 import spotipy.oauth2 as oauth2
import spotipy.util as util
if len(sys.argv) > 2: if len(sys.argv) > 2:

View File

@ -5,7 +5,7 @@ import sys
import spotipy import spotipy
import spotipy.oauth2 as oauth2 import spotipy.oauth2 as oauth2
import util import spotipy.util as util
scope = 'user-library-modify' scope = 'user-library-modify'

View File

@ -6,7 +6,7 @@ import sys
import spotipy import spotipy
import spotipy.oauth2 as oauth2 import spotipy.oauth2 as oauth2
import util import spotipy.util as util
scope = 'user-library-read' scope = 'user-library-read'

View File

@ -7,9 +7,8 @@ import subprocess
import spotipy import spotipy
import util
import spotipy.oauth2 as oauth2 import spotipy.oauth2 as oauth2
import spotipy.util as util
if len(sys.argv) > 1: if len(sys.argv) > 1:

View File

@ -6,9 +6,8 @@ import os
import subprocess import subprocess
import spotipy import spotipy
import util
import spotipy.oauth2 as oauth2 import spotipy.oauth2 as oauth2
import spotipy.util as util
def show_tracks(results): def show_tracks(results):

View File

@ -2,7 +2,7 @@
import sys import sys
import spotipy import spotipy
import util import spotipy.util as util
import spotipy.oauth2 as oauth2 import spotipy.oauth2 as oauth2

View File

@ -3,11 +3,11 @@ from setuptools import setup
setup( setup(
name='SpotipyWebApi', name='SpotipyWebApi',
version='1.49', version='1.50',
description='simple client for the Spotify Web API', description='simple client for the Spotify Web API',
author="@plamere", author="@plamere",
author_email="paul@echonest.com", author_email="paul@echonest.com",
url='http://github.com/plamere/spotipy', url='http://github.com/plamere/spotipy',
install_requires=['requests>=1.0'], install_requires=['requests>=1.0'],
license='LICENSE.txt', license='LICENSE.txt',
py_modules=['spotipy', 'spotipy.oauth2'],) py_modules=['spotipy', 'spotipy.oauth2', 'spotipy.util'],)

View File

@ -4,7 +4,7 @@
import os import os
import subprocess import subprocess
import sys import sys
import spotipy.oauth2 as oauth2 import oauth2
def prompt_for_user_token(username, scope=None): def prompt_for_user_token(username, scope=None):
''' prompts the user to login if necessary and returns ''' prompts the user to login if necessary and returns