From d1d17314b2280b20fc4a825e68987b77ac989c53 Mon Sep 17 00:00:00 2001 From: Hugo Date: Tue, 14 Aug 2018 16:14:37 +0300 Subject: [PATCH 1/2] Remove deprecated COVER_X constants --- pylast/__init__.py | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/pylast/__init__.py b/pylast/__init__.py index b2ffa37..19d6ad8 100644 --- a/pylast/__init__.py +++ b/pylast/__init__.py @@ -98,12 +98,11 @@ DOMAIN_RUSSIAN = 9 DOMAIN_JAPANESE = 10 DOMAIN_CHINESE = 11 -# COVER_X is deprecated since 2.1.0 and will be removed in a future version -SIZE_SMALL = COVER_SMALL = 0 -SIZE_MEDIUM = COVER_MEDIUM = 1 -SIZE_LARGE = COVER_LARGE = 2 -SIZE_EXTRA_LARGE = COVER_EXTRA_LARGE = 3 -SIZE_MEGA = COVER_MEGA = 4 +SIZE_SMALL = 0 +SIZE_MEDIUM = 1 +SIZE_LARGE = 2 +SIZE_EXTRA_LARGE = 3 +SIZE_MEGA = 4 IMAGES_ORDER_POPULARITY = "popularity" IMAGES_ORDER_DATE = "dateadded" From eeb65d97240e61c780f8a4b9fc1ee072e6a9b1da Mon Sep 17 00:00:00 2001 From: Hugo Date: Tue, 14 Aug 2018 16:37:39 +0300 Subject: [PATCH 2/2] Update changelog and version --- CHANGELOG.md | 7 ++++++- pylast/version.py | 2 +- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index f801aff..2cd65e3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Added - This changelog file ([#273]) +### Removed + +- Constants `COVER_SMALL`, `COVER_MEDIUM`, `COVER_LARGE`, `COVER_EXTRA_LARGE` + and `COVER_MEGA`. Use `SIZE_SMALL` etc. instead. ([#282]) ## [2.4.0] - 2018-08-08 ### Deprecated @@ -16,7 +20,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 * Support for Python 2.7 ([#265]) -[Unreleased]: https://github.com/olivierlacan/keep-a-changelog/compare/v2.4.0...HEAD +[Unreleased]: https://github.com/pylast/pylast/compare/v2.4.0...HEAD [2.4.0]: https://github.com/pylast/pylast/compare/2.3.0...2.4.0 [#265]: https://github.com/pylast/pylast/issues/265 [#273]: https://github.com/pylast/pylast/issues/273 +[#282]: https://github.com/pylast/pylast/pull/282 diff --git a/pylast/version.py b/pylast/version.py index ddb9d9b..88717cc 100644 --- a/pylast/version.py +++ b/pylast/version.py @@ -1,2 +1,2 @@ # Master version for pylast -__version__ = "2.5.0.dev0" +__version__ = "3.0.0.dev0"