pkgsrc-Changes-HG archive

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

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



details:   https://anonhg.NetBSD.org/pkgsrc/rev/04476ee8134c
branches:  trunk
changeset: 313499:04476ee8134c
user:      nia <nia%pkgsrc.org@localhost>
date:      Mon Oct 01 16:31:11 2018 +0000

description:
chat/py-mastodon: Update to 1.3.1

Changes:

    Mastodon v2.4.3 compatibility:
        Keyword filter support: filters(), filter(), filters_apply(), filter_create(), filter_update(), filter_delete()
        Follow suggestions support: suggestions(), suggestion_delete()
        account_follow() now has "reblogs" parameter
        account_mute() now has "notifications" parameter
        Support for granular scopes
    Added status_reply() convenience function
    First attempt at basic Pleroma compatibility (Thanks deeunderscore)
    Several small fixes

diffstat:

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

diffs (50 lines):

diff -r 1c1e5072b9b6 -r 04476ee8134c chat/py-mastodon/Makefile
--- a/chat/py-mastodon/Makefile Mon Oct 01 15:54:09 2018 +0000
+++ b/chat/py-mastodon/Makefile Mon Oct 01 16:31:11 2018 +0000
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.6 2018/08/21 17:31:21 nia Exp $
+# $NetBSD: Makefile,v 1.7 2018/10/01 16:31:11 nia Exp $
 
-VERSION=       1.3.0
+VERSION=       1.3.1
 DISTNAME=      Mastodon.py-${VERSION}
 PKGNAME=       ${PYPKGPREFIX}-mastodon-${VERSION}
 CATEGORIES=    chat www python
diff -r 1c1e5072b9b6 -r 04476ee8134c chat/py-mastodon/distinfo
--- a/chat/py-mastodon/distinfo Mon Oct 01 15:54:09 2018 +0000
+++ b/chat/py-mastodon/distinfo Mon Oct 01 16:31:11 2018 +0000
@@ -1,6 +1,7 @@
-$NetBSD: distinfo,v 1.4 2018/08/21 17:31:21 nia Exp $
+$NetBSD: distinfo,v 1.5 2018/10/01 16:31:11 nia Exp $
 
-SHA1 (Mastodon.py-1.3.0.tar.gz) = c8a65ed8d6f9a3e2d83c44373c164e737d1ead1a
-RMD160 (Mastodon.py-1.3.0.tar.gz) = a297b75c15619a5f5b72a3ca5f839ecc345016bb
-SHA512 (Mastodon.py-1.3.0.tar.gz) = 67a31e0673d016a65b9d8f37e471efcaf70417159b32bf2985bae4da1da3bb7058535b59cd16089c94d2e7d44069cba9c234244bcd53118535dc0ec03b4d504c
-Size (Mastodon.py-1.3.0.tar.gz) = 816693 bytes
+SHA1 (Mastodon.py-1.3.1.tar.gz) = 101164587179c1cf20a17c1a57960c1b1b8c8433
+RMD160 (Mastodon.py-1.3.1.tar.gz) = 703f45e4814e1a393946ba5decd11e1ba8b02fdd
+SHA512 (Mastodon.py-1.3.1.tar.gz) = affcc2f4915676e2b6cc1ac1a3dd30917ae6160962b9438232157b069e6fcbdcdda9126dddd8b58376eecda2da6b494ba2de9ddb97b6d7286687ea767f9b3e40
+Size (Mastodon.py-1.3.1.tar.gz) = 831977 bytes
+SHA1 (patch-mastodon_Mastodon.py) = d4330248d17d99dd4b5b401de9690f346220ed86
diff -r 1c1e5072b9b6 -r 04476ee8134c chat/py-mastodon/patches/patch-mastodon_Mastodon.py
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/chat/py-mastodon/patches/patch-mastodon_Mastodon.py       Mon Oct 01 16:31:11 2018 +0000
@@ -0,0 +1,18 @@
+$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