Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v3.0 #171

Merged
merged 45 commits into from Feb 9, 2021
Merged

v3.0 #171

merged 45 commits into from Feb 9, 2021

Conversation

allerter
Copy link
Collaborator

@allerter allerter commented Nov 8, 2020

  • Sphinx displayed types attributes using the information in docstrings but they looked a bit messy. So I removed them and manually put them in a table in docs
  • added checking for song_info['instrumental'] when available to avoid fetching lyrics for instrumental songs.
  • renamed album.songs to album.tracks
  • added the Track type (Note: On Genius a track just has the number and song attributes, but since Track inherits BaseEntity it will have a redundant id attribute and Track.id == Track.song.id.)
  • refactored OAuth2 to only support code flow in get_user_token since the token flow already has the token in the redirected url.
  • added release notes to docs (not completed yet)

@allerter
Copy link
Collaborator Author

allerter commented Nov 8, 2020

  • Ready to be merged

@allerter allerter changed the title Moved types attributes from docstring to docs Moved types attributes from docstring to docs, etc Nov 10, 2020
…st_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
- added Track type
- docs: added 'release_data' to sort options in artist_songs
- docs: added track docs
@allerter allerter changed the title Moved types attributes from docstring to docs, etc renamed album.songs to album.tracks, etc Nov 21, 2020
- added __repr__ for track
- updated snippets
- added InvalidState for when self.state and passed state don't match
- moved InvalidState exception to errors.py
- fixed prompt_user to allow the code flow
@allerter allerter changed the title renamed album.songs to album.tracks, etc v3.0 Jan 27, 2021
This was linked to issues Jan 27, 2021
(genius adds this character before strings that their first letter is lower case)
lyricsgenius/api/api.py Outdated Show resolved Hide resolved
lyricsgenius/genius.py Show resolved Hide resolved
@johnwmillr
Copy link
Owner

The PR is ready to go. All tests are passing locally for me. Thank you for your hard work on this, @allerter.

Should we update the package version to 3.0.0?

@allerter
Copy link
Collaborator Author

allerter commented Feb 7, 2021

The tests passed on Travis CI too. I think we're ready to go.

@allerter
Copy link
Collaborator Author

allerter commented Feb 7, 2021

I forgot to update the release notes in the docs and on GitHub's Releases page. Please merge this PR after I commit the release notes.

johnwmillr
johnwmillr previously approved these changes Feb 7, 2021
Copy link
Owner

@johnwmillr johnwmillr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks again for the excellent PR, @allerter. I will merge it once you've finished the release notes.

@allerter
Copy link
Collaborator Author

allerter commented Feb 8, 2021

Happy to contribute, @johnwmillr.
I added the release notes but put question marks instead of the release day (2021-02-??). Please replace that when you release the new version.

@johnwmillr johnwmillr merged commit 4b89d42 into johnwmillr:master Feb 9, 2021
@johnwmillr
Copy link
Owner

3.0.0 is live on PyPi!

@johnwmillr johnwmillr mentioned this pull request Feb 9, 2021
@allerter allerter deleted the docs branch February 10, 2021 14:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Timeout raised on search Wrong file in the PyPi package Version 3
3 participants