From 30b7ea198fd09604a507844b1daf53ba6acb45a7 Mon Sep 17 00:00:00 2001 From: Stephane Bruckert Date: Mon, 20 Jan 2020 21:56:54 +0000 Subject: [PATCH] Bump to 2.7.0 --- CHANGELOG.md | 4 +++- README.md | 38 +++++++------------------------------- setup.py | 2 +- 3 files changed, 11 insertions(+), 33 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 043a626..686ae8b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +## [2.7.0] - 2020-01-20 + ### Added - Support for `playlist_tracks` @@ -13,7 +15,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Changed - - `user_playlist_tracks` doesn't require a user anymore + - `user_playlist_tracks` doesn't require a user anymore (accepts `None`) ### Deprecated diff --git a/README.md b/README.md index a82dbcf..2a359bf 100644 --- a/README.md +++ b/README.md @@ -4,35 +4,13 @@ [![Documentation Status](https://readthedocs.org/projects/spotipy/badge/?version=latest)](https://spotipy.readthedocs.io/en/latest/?badge=latest) - ## Documentation Spotipy's full documentation is online at [Spotipy Documentation](http://spotipy.readthedocs.org/). - ## Installation -If you already have [Python](http://www.python.org/) on your system you can install the library simply by downloading the distribution, unpack it and install in the usual fashion: - -```bash -python setup.py install -``` - -You can also install it using a popular package manager with - -```bash -pip install spotipy -``` - -or - -```bash -easy_install spotipy -``` - -## Dependencies - -- [Requests](https://github.com/kennethreitz/requests) - spotipy requires the requests package to be installed + pip install spotipy ## Quick Start @@ -46,16 +24,14 @@ Add your new ID and SECRET to your environment: Then, create a Spotify object and call methods: -```python -import spotipy -from spotipy.oauth2 import SpotifyClientCredentials + import spotipy + from spotipy.oauth2 import SpotifyClientCredentials -sp = spotipy.Spotify(client_credentials_manager=SpotifyClientCredentials()) + sp = spotipy.Spotify(client_credentials_manager=SpotifyClientCredentials()) -results = sp.search(q='weezer', limit=20) -for i, t in enumerate(results['tracks']['items']): - print(' ', i, t['name']) -``` + results = sp.search(q='weezer', limit=20) + for idx, track in enumerate(results['tracks']['items']): + print(idx, track['name']) ## Reporting Issues diff --git a/setup.py b/setup.py index f5d3dd8..1e9e6a6 100644 --- a/setup.py +++ b/setup.py @@ -5,7 +5,7 @@ with open("README.md", "r") as f: setup( name='spotipy', - version='2.6.3', + version='2.7.0', description='A light weight Python library for the Spotify Web API', long_description=long_description, long_description_content_type="text/markdown",