forked from pool/python-spotipy
- Update to 2.13.0:
* Added + Added `SpotifyImplicitGrant` as an auth manager option. It provides user authentication without a client secret but sacrifices the ability to refresh the token without user input. (However, read the class docstring for security advisory.) + Added built-in verification of the `state` query parameter + Added two new attributes: error and error_description to `SpotifyOauthError` exception class to show + authorization/authentication web api errors details. + Added `SpotifyStateError` subclass of `SpotifyOauthError` + Allow extending `SpotifyClientCredentials` and `SpotifyOAuth` + Added the market paramter to `album_tracks` + Added a method to update the auth token. + Support for shows/podcasts and episodes + Added CONTRIBUTING.md * Deprecated + Deprecated `util.prompt_for_user_token` in favor of `spotipy.Spotify(auth_manager=SpotifyOAuth())` * Fixed + Logging regression due to the addition of `logging.basicConfig()` which was unneeded. + Issue where using `http://localhost` as redirect_uri would cause the authorization process to hang. + Fixed miscellaneous issues with parsing of callback URL + Close session when Spotipy object is unloaded + Propagate refresh token error * Changed + Updated the documentation to give more details on the authorization + process and reflect 2020 Spotify Application jargon and practices. + The local webserver is only started for localhost redirect_uri which specify a port, + i.e. it is started for `http://localhost:8080` or `http://127.0.0.1:8080`, not for `http://localhost`. + Client retry logic has changed as it now uses urllib3's `Retry` in conjunction with requests `Session` + The session is customizable as it allows for: - status_forcelist - retries - status_retries - backoff_factor + Spin up a local webserver to auto-fill authentication URL + Use session in SpotifyAuthBase + Logging used instead of print statements - Skip one test that requires external internet access OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-spotipy?expand=0&rev=12
This commit is contained in:
@@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:bf2453bb15a7c6010f36da77b5da34d433bf1c420abc2d305b708d8cec7da1ec
|
|
||||||
size 82414
|
|
3
2.13.0.tar.gz
Normal file
3
2.13.0.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:1349174616421adafe2275e20b1507530b5ceea03b9b78755cd2920279588f5b
|
||||||
|
size 89735
|
@@ -1,3 +1,45 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Jul 7 06:56:38 UTC 2020 - Steve Kowalik <steven.kowalik@suse.com>
|
||||||
|
|
||||||
|
- Update to 2.13.0:
|
||||||
|
* Added
|
||||||
|
+ Added `SpotifyImplicitGrant` as an auth manager option. It provides
|
||||||
|
user authentication without a client secret but sacrifices the ability
|
||||||
|
to refresh the token without user input. (However, read the class
|
||||||
|
docstring for security advisory.)
|
||||||
|
+ Added built-in verification of the `state` query parameter
|
||||||
|
+ Added two new attributes: error and error_description to `SpotifyOauthError` exception class to show
|
||||||
|
+ authorization/authentication web api errors details.
|
||||||
|
+ Added `SpotifyStateError` subclass of `SpotifyOauthError`
|
||||||
|
+ Allow extending `SpotifyClientCredentials` and `SpotifyOAuth`
|
||||||
|
+ Added the market paramter to `album_tracks`
|
||||||
|
+ Added a method to update the auth token.
|
||||||
|
+ Support for shows/podcasts and episodes
|
||||||
|
+ Added CONTRIBUTING.md
|
||||||
|
* Deprecated
|
||||||
|
+ Deprecated `util.prompt_for_user_token` in favor of `spotipy.Spotify(auth_manager=SpotifyOAuth())`
|
||||||
|
* Fixed
|
||||||
|
+ Logging regression due to the addition of `logging.basicConfig()` which was unneeded.
|
||||||
|
+ Issue where using `http://localhost` as redirect_uri would cause the authorization process to hang.
|
||||||
|
+ Fixed miscellaneous issues with parsing of callback URL
|
||||||
|
+ Close session when Spotipy object is unloaded
|
||||||
|
+ Propagate refresh token error
|
||||||
|
* Changed
|
||||||
|
+ Updated the documentation to give more details on the authorization
|
||||||
|
+ process and reflect 2020 Spotify Application jargon and practices.
|
||||||
|
+ The local webserver is only started for localhost redirect_uri which specify a port,
|
||||||
|
+ i.e. it is started for `http://localhost:8080` or `http://127.0.0.1:8080`, not for `http://localhost`.
|
||||||
|
+ Client retry logic has changed as it now uses urllib3's `Retry` in conjunction with requests `Session`
|
||||||
|
+ The session is customizable as it allows for:
|
||||||
|
- status_forcelist
|
||||||
|
- retries
|
||||||
|
- status_retries
|
||||||
|
- backoff_factor
|
||||||
|
+ Spin up a local webserver to auto-fill authentication URL
|
||||||
|
+ Use session in SpotifyAuthBase
|
||||||
|
+ Logging used instead of print statements
|
||||||
|
- Skip one test that requires external internet access
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Thu Mar 26 14:45:02 UTC 2020 - Marketa Calabkova <mcalabkova@suse.com>
|
Thu Mar 26 14:45:02 UTC 2020 - Marketa Calabkova <mcalabkova@suse.com>
|
||||||
|
|
||||||
|
@@ -18,11 +18,10 @@
|
|||||||
|
|
||||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||||
Name: python-spotipy
|
Name: python-spotipy
|
||||||
Version: 2.10.0
|
Version: 2.13.0
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: Client for the Spotify Web API
|
Summary: Client for the Spotify Web API
|
||||||
License: MIT
|
License: MIT
|
||||||
Group: Development/Languages/Python
|
|
||||||
URL: https://spotipy.readthedocs.org/
|
URL: https://spotipy.readthedocs.org/
|
||||||
# https://github.com/plamere/spotipy/issues/454
|
# https://github.com/plamere/spotipy/issues/454
|
||||||
Source: https://github.com/plamere/spotipy/archive/%{version}.tar.gz
|
Source: https://github.com/plamere/spotipy/archive/%{version}.tar.gz
|
||||||
@@ -60,7 +59,7 @@ https://spotipy.readthedocs.io/
|
|||||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||||
|
|
||||||
%check
|
%check
|
||||||
%pytest tests/unit/
|
%pytest tests/unit/ -k 'not credentials_get_access_token'
|
||||||
|
|
||||||
%files %{python_files}
|
%files %{python_files}
|
||||||
%license LICENSE.md
|
%license LICENSE.md
|
||||||
|
Reference in New Issue
Block a user