pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/chat/py-mastodon py-mastodon: Update to 1.5.0



details:   https://anonhg.NetBSD.org/pkgsrc/rev/e64cbb7f0ab4
branches:  trunk
changeset: 424141:e64cbb7f0ab4
user:      nia <nia%pkgsrc.org@localhost>
date:      Thu Mar 05 20:18:37 2020 +0000

description:
py-mastodon: Update to 1.5.0

v1.5.0
------
* BREAKING CHANGE: the search_v1 API is now gone from Mastodon, Mastodon.py will still let you use it where available / use it where needed if you call search()
* Support for new 3.0.0 features
    * Added profile directory API: directory()
    * Added featured and suggested tags API: featured_tags(), featured_tag_suggestions(), featured_tag_create(), featured_tag_delete() (Thanks Gargron for the advice)
    * Added read-markers API: markers_get(), markers_set()
    * Re-added trends API: trends()
    * Added health api: instance_health()
    * Added nodeinfo support: instance_nodeinfo()
    * Added new parameters to search (exclude_unreviewed) and create_account (reason)
* Added ability to persist base URLs together with access token and client id / secret files
* Documented that status_card endpoint has been removed, switched to alternate method of retrieving cards if function is still used
* Added blurhash as a core dependency, since it is now licensed permissively again
* Added me() function as synonym for account_verify_credentials() to lessen confusion
* Fixed notification-dismiss to use new API endpoint where the old one is not available (Thanks kensanata)
* Fixed status_reply to match status_post
* Add basic support for non-mainline featuresvia the feature_set parameter
    * Added support for fedibirds quote_id parameter in status_post
* Future-proofed webpush cryptography api while trying to remain very backwards compatible so that it can hopefully in the future become part of the core
* Clarified and updated the documentation and improved the tests in various ways

diffstat:

 chat/py-mastodon/Makefile                           |   4 ++--
 chat/py-mastodon/distinfo                           |  11 +++++------
 chat/py-mastodon/patches/patch-mastodon_Mastodon.py |  18 ------------------
 3 files changed, 7 insertions(+), 26 deletions(-)

diffs (50 lines):

diff -r c6303ff55c0e -r e64cbb7f0ab4 chat/py-mastodon/Makefile
--- a/chat/py-mastodon/Makefile Thu Mar 05 19:52:51 2020 +0000
+++ b/chat/py-mastodon/Makefile Thu Mar 05 20:18:37 2020 +0000
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.8 2019/07/28 16:09:58 nia Exp $
+# $NetBSD: Makefile,v 1.9 2020/03/05 20:18:37 nia Exp $
 
-PKGNAME=       ${PYPKGPREFIX}-mastodon-1.4.6
+PKGNAME=       ${PYPKGPREFIX}-mastodon-1.5.0
 DISTNAME=      Mastodon.py-${PKGVERSION_NOREV}
 CATEGORIES=    chat www python
 MASTER_SITES=  ${MASTER_SITE_PYPI:=M/Mastodon.py/}
diff -r c6303ff55c0e -r e64cbb7f0ab4 chat/py-mastodon/distinfo
--- a/chat/py-mastodon/distinfo Thu Mar 05 19:52:51 2020 +0000
+++ b/chat/py-mastodon/distinfo Thu Mar 05 20:18:37 2020 +0000
@@ -1,7 +1,6 @@
-$NetBSD: distinfo,v 1.6 2019/07/28 16:09:58 nia Exp $
+$NetBSD: distinfo,v 1.7 2020/03/05 20:18:37 nia Exp $
 
-SHA1 (Mastodon.py-1.4.6.tar.gz) = b0b68428faf758aef6b990fceb51848dcf941ed2
-RMD160 (Mastodon.py-1.4.6.tar.gz) = 942ef6cae5df21c52c9d68976e5c31d3ad8bb54a
-SHA512 (Mastodon.py-1.4.6.tar.gz) = f10e86433a9a02147a58e115ed942857f6dfb2c0332353dff0df57e606246ff5bbaaf7f004c3634bdf22277ae09af8fbcd828d6aa9d2189aa5ddd5fa649617df
-Size (Mastodon.py-1.4.6.tar.gz) = 680887 bytes
-SHA1 (patch-mastodon_Mastodon.py) = d4330248d17d99dd4b5b401de9690f346220ed86
+SHA1 (Mastodon.py-1.5.0.tar.gz) = c6244b762229ba9d3834831a21be92485abe761b
+RMD160 (Mastodon.py-1.5.0.tar.gz) = 7d022b221942e51db0a4c28dbfd99dfadd05b3db
+SHA512 (Mastodon.py-1.5.0.tar.gz) = 5c22adc68eb5b122f6b6a43525daadfac19de6c26d0db67135a932f0422c9b9d3700b45070a23b683f92aa41237cdbde5a837c17ce9a7dd0afec3c5ae65eab1b
+Size (Mastodon.py-1.5.0.tar.gz) = 706918 bytes
diff -r c6303ff55c0e -r e64cbb7f0ab4 chat/py-mastodon/patches/patch-mastodon_Mastodon.py
--- a/chat/py-mastodon/patches/patch-mastodon_Mastodon.py       Thu Mar 05 19:52:51 2020 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,18 +0,0 @@
-$NetBSD: patch-mastodon_Mastodon.py,v 1.4 2018/10/01 16:31:11 nia Exp $
-
-Make this work with Pleroma, which grants all scopes regardless of
-what gets requested.
-
---- mastodon/Mastodon.py.orig  2018-07-30 21:34:05.000000000 +0000
-+++ mastodon/Mastodon.py
-@@ -428,10 +428,6 @@ class Mastodon:
-             if scope_set in received_scopes:
-                 received_scopes += self.__SCOPE_SETS[scope_set]
-         
--        if not set(scopes) <= set(received_scopes):
--            raise MastodonAPIError(
--                'Granted scopes "' + " ".join(received_scopes) + '" do not contain all of the requested scopes "' + " ".join(scopes) + '".')
--
-         if to_file is not None:
-             with open(to_file, 'w') as token_file:
-                 token_file.write(response['access_token'] + '\n')



Home | Main Index | Thread Index | Old Index