From 2adc54ba58879b57c3399a6b803ddaf7df5d68b1 Mon Sep 17 00:00:00 2001 From: morguldir Date: Fri, 9 Sep 2022 01:47:58 +0200 Subject: [PATCH] v0.7.0 --- HISTORY.rst | 53 ++++++++++++++++++++++++++++++++++++++++++++ README.rst | 9 ++++---- docs/conf.py | 2 +- docs/runtime.txt | 2 +- release.sh | 9 ++++++++ setup.py | 4 ++-- tests/test_page.py | 2 +- tidalapi/__init__.py | 2 +- 8 files changed, 72 insertions(+), 11 deletions(-) create mode 100755 release.sh diff --git a/HISTORY.rst b/HISTORY.rst index 40a4477..8b6cdf0 100644 --- a/HISTORY.rst +++ b/HISTORY.rst @@ -3,6 +3,53 @@ History ======= +v0.7.0 +------ + +* (BREAKING!) Removed obsolete parameter session_id from load_oauth_session - lutzbuerkle_ +* (BREAKING!) Drop support for python2.7 - morguldir_ +* (BREAKING!) Change the architecture of the library to allow for using more files, see the migration guide - morguldir_ +* Add support for tidal pages (e.g. home, videos and explore in the web ui) - morguldir_ +* Add support for parsing mixes and retrieving the media - morguldir_ +* Get rid of the old genre and mood support, you can now find them in the pages instead - morguldir_ +* Update almost all of the json parsing and classes to include more fields - morguldir_ +* Add complete docstrings to many of the functions - morguldir_ +* Tests now cover almost all of the code - morguldir_ +* Pylint scores are now much higher - morguldir_ +* Add option to retrieve master quality tracks (I can't test this, but I believe it works as of writing) - morguldir_ +* Add a few documentation pages explaining the basics - morguldir_ +* Add support for modifying playlists - morguldir_ +* Add a parameter to always fetch the track album if it's not provided - divadsn_ +* Add function to retrieve the year and date from either the release data or the stream start date - divadsn_ +* Improve the performance of the internal get_items() function by using extend - BlackLight_ +* Properly deal with the api returning non-json results - BlackLight_ +* Add support for retrieving the reviews of an album - retired-guy_ + + +v0.6.10 +------- +* Update the client secret - 1nikolas_ +* Use a track url endpoint compatible with the new secret - morguldir_ + +v0.6.9 +------ + +* Update the client secret - morguldir_ +* Fix token_refresh() not correctly including the client secret - morguldir_ + +v0.6.8 +------ + +* Support OAuth login through login_oauth_simple() and login_oauth() - morguldir_ +* Support loading an OAuth session through load_oauth_session() - morguldir_ +* Include more info when a request fails - morguldir_ + +v0.6.7 +------ + +* Fix wimp images not resolving - ktnrg45_ +* Made the favorite playlists function also return created playlists - morguldir_ + v0.6.6 ------ @@ -37,3 +84,9 @@ v0.6.2 .. _morguldir: https://github.com/morguldir .. _Husky22: https://github.com/Husky22 +.. _ktnrg45: https://github.com/ktnrg45 +.. _1nikolas: https://github.com/1nikolas +.. _divadsn: https://github.com/divadsn +.. _BlackLight: https://github.com/BlackLight +.. _lutzbuerkle: https://github.com/lutzbuerkle +.. _retired-guy: https://github.com/retired-guy diff --git a/README.rst b/README.rst index b35a855..506eb90 100644 --- a/README.rst +++ b/README.rst @@ -5,16 +5,15 @@ tidalapi :target: https://pypi.org/project/tidalapi .. image:: https://api.netlify.com/api/v1/badges/f05c0752-4565-4940-90df-d2b3fe91c84b/deploy-status - :target: https://0-7-x--tidalapi.netlify.com/ + :target: https://tidalapi.netlify.com/ Unofficial Python API for TIDAL music streaming service. - 0.7.0 Rewrite ------------- -This is the development branch for the 0.7.0 rewrite. See https://github.com/tamland/python-tidal/issues/109 for more details +The 0.7.0 rewrite is now complete, see the `migration guide `_ for dealing with it Installation ------------ @@ -37,7 +36,7 @@ Example usage session = tidalapi.Session() # Will run until you visit the printed url and link your account session.login_oauth_simple() - album = session.album(16909093) + album = session.album(66236918) tracks = album.tracks() for track in tracks: print(track.name) @@ -46,4 +45,4 @@ Example usage Documentation ------------- -Documentation is available at https://0-7-x--tidalapi.netlify.app/ +Documentation is available at https://tidalapi.netlify.app/ diff --git a/docs/conf.py b/docs/conf.py index 354f10c..e9a4e42 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -22,7 +22,7 @@ author = 'Thomas Amland, morguldir' # The full version, including alpha/beta/rc tags -release = '0.7.0rc1' +release = '0.7.0' # -- General configuration --------------------------------------------------- diff --git a/docs/runtime.txt b/docs/runtime.txt index 475ba51..cc1923a 100644 --- a/docs/runtime.txt +++ b/docs/runtime.txt @@ -1 +1 @@ -3.7 +3.8 diff --git a/release.sh b/release.sh new file mode 100755 index 0000000..da3d0aa --- /dev/null +++ b/release.sh @@ -0,0 +1,9 @@ +#!/bin/bash +python setup.py sdist + +python setup.py bdist_wheel + +version=$(python setup.py --version) +echo -n "Enter the upload URL" +read url +twine upload --repository "$url" --sign --verbose dist/tidalapi-$version* diff --git a/setup.py b/setup.py index 8088749..d13d127 100644 --- a/setup.py +++ b/setup.py @@ -17,11 +17,11 @@ with open('HISTORY.rst') as f: long_description += '\n\n' - long_description += f.read() .replace('.. :changelog:', '') + long_description += f.read().replace('.. :changelog:', '') setup( name='tidalapi', - version='0.7.0rc1', + version='0.7.0', description='Unofficial API for TIDAL music streaming service.', long_description=long_description, author='Thomas Amland', diff --git a/tests/test_page.py b/tests/test_page.py index 2bbe78a..6dcf635 100644 --- a/tests/test_page.py +++ b/tests/test_page.py @@ -101,7 +101,7 @@ def test_genres(session): def test_moods(session): moods = session.moods() first = next(iter(moods)) - assert first.title == 'Workout' + assert first.title == 'Music School' assert isinstance(next(iter(first.get())), tidalapi.Playlist) diff --git a/tidalapi/__init__.py b/tidalapi/__init__.py index 065ebac..a1f76ee 100644 --- a/tidalapi/__init__.py +++ b/tidalapi/__init__.py @@ -21,4 +21,4 @@ from .request import Requests -__version__ = "0.7.0rc1" +__version__ = "0.7.0"