pkgsrc-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: pkgsrc/chat/py-mastodon
Module Name: pkgsrc
Committed By: nia
Date: Mon Oct 1 16:31:11 UTC 2018
Modified Files:
pkgsrc/chat/py-mastodon: Makefile distinfo
Added Files:
pkgsrc/chat/py-mastodon/patches: patch-mastodon_Mastodon.py
Log Message:
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
To generate a diff of this commit:
cvs rdiff -u -r1.6 -r1.7 pkgsrc/chat/py-mastodon/Makefile
cvs rdiff -u -r1.4 -r1.5 pkgsrc/chat/py-mastodon/distinfo
cvs rdiff -u -r0 -r1.4 \
pkgsrc/chat/py-mastodon/patches/patch-mastodon_Mastodon.py
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: pkgsrc/chat/py-mastodon/Makefile
diff -u pkgsrc/chat/py-mastodon/Makefile:1.6 pkgsrc/chat/py-mastodon/Makefile:1.7
--- pkgsrc/chat/py-mastodon/Makefile:1.6 Tue Aug 21 17:31:21 2018
+++ pkgsrc/chat/py-mastodon/Makefile Mon Oct 1 16:31:11 2018
@@ -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
Index: pkgsrc/chat/py-mastodon/distinfo
diff -u pkgsrc/chat/py-mastodon/distinfo:1.4 pkgsrc/chat/py-mastodon/distinfo:1.5
--- pkgsrc/chat/py-mastodon/distinfo:1.4 Tue Aug 21 17:31:21 2018
+++ pkgsrc/chat/py-mastodon/distinfo Mon Oct 1 16:31:11 2018
@@ -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
Added files:
Index: pkgsrc/chat/py-mastodon/patches/patch-mastodon_Mastodon.py
diff -u /dev/null pkgsrc/chat/py-mastodon/patches/patch-mastodon_Mastodon.py:1.4
--- /dev/null Mon Oct 1 16:31:11 2018
+++ pkgsrc/chat/py-mastodon/patches/patch-mastodon_Mastodon.py Mon Oct 1 16:31:11 2018
@@ -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