-
Notifications
You must be signed in to change notification settings - Fork 166
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Added vcr support for consistent tests * added vcr to tests * changed displaying types attributes as table in docs * add vcrpy to requirements * test tox.ini * Revert "test tox.ini" This reverts commit 33f096c. * removed except in tests * merge pr/109 into docs * merge pr/109 into docs * - added checking for the instrumental attribute in song info - added a couple comments * added instrumental attribute to types.Song * Revert "merge pr/109 into docs" This reverts commit c1221ae. * add Song.instrumental to docs * - add instrumental to to_dict - use dict.get to determine instrumental value * set retries to 3 * - Genius: removed checking instrumental in search_artist (genius.artist_songs doesn't return that key in song info) - types.Song: removed Song.instrumental - clean_str(): change normalization method to NKFC - docs/snippets: changes in snippets titles * add some description for charts * remove Song.instrumental references * added raising TypeError when no token/empty token is passed * - renamed album.songs to album.tracks - added Track type - docs: added 'release_data' to sort options in artist_songs - docs: added track docs * added importing Track from types * - fixed issues in Track - added __repr__ for track * - reconfigured get_user_token to accept code and state parameters - updated snippets - added InvalidState for when self.state and passed state don't match * - updated get_user_token docstring - moved InvalidState exception to errors.py * - removed test_get_user_token_client_flow as its unnecessary - fixed prompt_user to allow the code flow * - refactored get_user_token to allow use by token flow - added some tests for auth * removed redundant requirements.txt file * fixed tests issue * - added page_data endpoint to PublicAPI - added newline after docstring where missing * handle instance where error response might not be json * added test for page_data * fix typo in artist ID in example and test * fixed TypeError when instantiating PublicAPI directly with no token present in env vars fixed page_data for song which returned 404 * use built-in class name to define public api constructor * genius.lyrics: broke down urlthing parameter into song_url and song_id * added non-breaking space to punctuation words (genius adds this character before strings that their first letter is lower case) * linked to the snippets page in the usage page * Revert "add vcrpy to requirements" This reverts commit 92816fd. * Revert adding vcrpy to tests * Remove VCR from test_base.py * Remove VCR from test_genius.py and test_public_methods.py * Update version to 3.0.0 * added release notes for 3.0.0 * Set release date to 2021-02-08 Co-authored-by: ludehon <[email protected]> Co-authored-by: johnwmillr <[email protected]>
- Loading branch information
1 parent
47109a3
commit 4b89d42
Showing
34 changed files
with
609 additions
and
195 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.