Commit graph

1039 commits

Author SHA1 Message Date
Hugo 4329080457 Cache pre-commit, use tox-travis to simplify config, only coverage for non-lint 2019-12-17 22:55:33 +02:00
Hugo ec43b92c27 Use extras_require for tox deps 2019-12-17 22:48:05 +02:00
Hugo 3673c07994 Concatenate strings, post-Black 2019-12-17 22:47:39 +02:00
Hugo 6b04456c55 Mock is part of stdlib in Python 3 2019-12-17 22:32:53 +02:00
Hugo e8429b07bc Don't pin to a Python version 2019-12-17 22:23:16 +02:00
Hugo d28c0ec167 Xfail those two to allow the rest to pass 2019-12-17 22:19:57 +02:00
Hugo 44e47d84ce Add support for Python 3.8 2019-12-17 22:17:17 +02:00
Hugo van Kemenade 782040dc28
Merge pull request #312 from pylast/rm-py2-warnings
Remove Python 2 warnings, apply lint updates
2019-12-14 14:23:19 +02:00
Hugo 109315d93d Remove Python 2 warnings, apply lint updates 2019-09-26 11:10:52 +03:00
Hugo van Kemenade 7383fa20cf
Update get_weekly_artist_charts docstring (#311)
Update get_weekly_artist_charts docstring
2019-09-26 11:01:14 +03:00
Hugo 99c434c0ef Run lint on Python 3.7 2019-09-26 10:36:16 +03:00
Hugo 3fd8280e33 Update docstring: since 2016 get_weekly_artist_charts is only for users, not tags 2019-09-26 10:34:22 +03:00
Hugo d589c5ef8a Add pre-commit and fix isort 2019-09-26 10:31:49 +03:00
Hugo van Kemenade 695a11a4cd
Respect get_recent_tracks' limit when there's a now playing track (#310)
Respect get_recent_tracks' limit when there's a now playing track
2019-09-20 22:47:35 +03:00
Hugo 7915d7f3e6 Respect get_recent_tracks' limit when there's a now playing track 2019-09-19 14:27:20 +03:00
Hugo fc51315f48
Store Album Art URLs when you call GetTopAlbums. (#307)
Store Album Art URLs when you call GetTopAlbums.
2019-06-24 09:05:15 +03:00
Paddez 7694de346e Store Album Art URLs when you call GetTopAlbums.
GetTopAlbums returns AlbumArt information alongside the TopAlbums.
We should store this in the Album() info variable, so we don't have to follow up with an additional GetInfo() call if we want the Album Art.

Signed-off-by: Paddez <dave@paddez.com>
2019-06-22 22:36:41 +01:00
Hugo 46e4c0ec4c
Update user.get_artist_tracks tests (#305)
Update user.get_artist_tracks tests
2019-06-03 21:56:33 +03:00
Hugo c7b927d94c user.getArtistTracks has been removed from Last.fm 2019-06-03 16:45:54 +03:00
Hugo 44d0c2c966 user.getArtistTracks has now been removed from Last.fm and returns an error 2019-06-02 22:54:03 +03:00
Hugo dedcbf00f5
Remove deprecated license_file from setup.cfg (#303)
Remove deprecated license_file from setup.cfg
2019-05-13 11:21:39 +03:00
Hugo f439f205dc Xfail user.getArtistTracks, looks like Last.fm are now removing it from the API 2019-05-13 11:08:18 +03:00
Hugo 9ec4e99271 Update Black link 2019-05-10 09:03:03 +03:00
Hugo ce9ab4213e Remove deprecated license_file from setup.cfg 2019-05-10 09:02:53 +03:00
Hugo 05a7fc07f1 Black is now under the PSF umbrella https://twitter.com/llanga/status/1123980466292445190 2019-05-04 20:57:05 +03:00
Hugo a52f66d316
Merge pull request #301 from pylast/mv-to-src
Move installable code to src/
2019-04-14 19:10:27 +03:00
Hugo ab77165ecc Revert "Don't fail due to Last.fm bug"
This reverts commit c3b36433b2.
2019-04-14 18:35:10 +03:00
Hugo b9ef29fa21 Simplify via https://blog.ionelmc.ro/2014/05/25/python-packaging/#the-structure 2019-04-05 10:48:58 +03:00
Hugo c3b36433b2 Don't fail due to Last.fm bug 2019-04-05 09:00:31 +03:00
Hugo 1a78c0b99d Move production code to src/ 2019-04-05 08:37:01 +03:00
Hugo df6e31b4ff
Merge pull request #297 from pylast/retry-fetch
Retry paging through results on exception
2019-04-04 22:54:46 +03:00
hugovk a5c53dbf54 Start new release cycle 2019-03-07 09:44:45 +02:00
hugovk 694f67b25a Release 3.1.0 2019-03-07 09:27:32 +02:00
Hugo c95e39b624
Merge pull request #299 from pylast/deprecate-User.get_artist_tracks
Deprecate User.get_artist_tracks, add user.getTrackScrobbles
2019-03-07 09:07:59 +02:00
Hugo 2284dcf580 Update docs 2019-02-27 19:56:29 +02:00
Hugo da473448f4 Add support for new user.getTrackScrobbles 2019-02-27 19:47:31 +02:00
Hugo dc464788f2 Aside: make test_album_tags_are_topitems more reliable 2019-02-27 17:19:20 +02:00
Hugo 65e182c5dd Aside: make test_scrobble more reliable 2019-02-27 17:01:23 +02:00
Hugo 9d125506e5 Deprecate User.get_artist_tracks as Last.fm will remove it soon 2019-02-26 22:53:31 +02:00
Hugo 86c979204d year++ 2019-02-10 17:30:04 +02:00
Hugo 9b2ada5dd0 Retry on any exception
Also seen these when testing:

WSError: User not found
MalformedResponseError: Malformed response from Last.fm. Underlying error: mismatched tag: line 6, column 2
NetworkError: NetworkError: [Errno 8] nodename nor servname provided, or not known
2019-02-10 16:06:58 +02:00
Hugo f32848160c Make test more reliable: check a static album not a dynamic one which may not have any tags 2019-02-10 11:58:40 +02:00
Hugo bfd3ffe06c Retry on temporary error when paging 2019-02-10 11:31:42 +02:00
Hugo e38d1c516b Update error status codes from https://www.last.fm/api/errorcodes 2019-02-09 23:18:51 +02:00
Hugo 69b54e8c45 Update encrypted password 2019-02-03 20:56:42 +02:00
Hugo 29f38f9531
Merge pull request #295 from pylast/deploy-to-pypi-on-tag
Deploy to PyPI on master
2019-02-03 20:28:55 +02:00
Hugo 5406261679 In case lint is done on 'python: 3.7', deploy on a TOXENV 2019-02-03 15:08:35 +02:00
Hugo deb25fb030 Deploy to PyPI on master 2019-02-03 15:08:35 +02:00
Hugo 6a1a5a450e
Merge pull request #294 from pylast/fix-test
Fix the build
2019-02-03 15:07:05 +02:00
Hugo b41c5bc85a Add a delay to allow Last.fm to update unloves 2019-02-03 14:39:21 +02:00