Introduces support for Mastodon 3.1, bookmarks, announcements and announcement reactions. A Mastodon update deprecated the search_v1 API but mastodon.py will still allow its use. Includes a testing fix.
Testing this update with tootstream requires applying the proposed update, which follows, to remove its version restrictions. OK? Comments? -pamela (maintainer) cc: maintainers of tootstream and ephemetoot Index: Makefile =================================================================== RCS file: /home/cvs/ports/www/py-mastodon.py/Makefile,v retrieving revision 1.7 diff -u -p -r1.7 Makefile --- Makefile 3 Jul 2020 21:13:19 -0000 1.7 +++ Makefile 9 Aug 2020 02:48:51 -0000 @@ -2,10 +2,9 @@ COMMENT = python wrapper for the Mastodon API -MODPY_EGG_VERSION = 1.4.6 +MODPY_EGG_VERSION = 1.5.1 DISTNAME = Mastodon.py-${MODPY_EGG_VERSION} PKGNAME = py-mastodon.py-${MODPY_EGG_VERSION} -REVISION = 0 CATEGORIES = www @@ -21,7 +20,8 @@ MODPY_SETUPTOOLS = Yes MODPY_PI = Yes MODPY_PYTEST = Yes -MODPY_VERSION = ${MODPY_DEFAULT_VERSION_3} +FLAVORS = python3 +FLAVOR = python3 BUILD_DEPENDS = devel/py-test-runner${MODPY_FLAVOR} @@ -30,6 +30,7 @@ RUN_DEPENDS = devel/py-dateutil${MODPY_ devel/py-magic${MODPY_FLAVOR} \ devel/py-six${MODPY_FLAVOR} \ devel/py-tz${MODPY_FLAVOR} \ + graphics/py-blurhash${MODPY_FLAVOR} \ security/py-cryptography${MODPY_FLAVOR} \ www/py-http_ece${MODPY_FLAVOR} \ www/py-requests${MODPY_FLAVOR} Index: distinfo =================================================================== RCS file: /home/cvs/ports/www/py-mastodon.py/distinfo,v retrieving revision 1.2 diff -u -p -r1.2 distinfo --- distinfo 27 Aug 2019 03:16:26 -0000 1.2 +++ distinfo 9 Aug 2020 04:13:23 -0000 @@ -1,2 +1,2 @@ -SHA256 (Mastodon.py-1.4.6.tar.gz) = KwFVlIcWVAbXL97Zhv2G4WmX3iqdLz3saKnBvLHdccM= -SIZE (Mastodon.py-1.4.6.tar.gz) = 680887 +SHA256 (Mastodon.py-1.5.1.tar.gz) = Kv3brYtdcyb8yKj4xiv+lW40Yn9RawbGaU/IyP7cM+4= +SIZE (Mastodon.py-1.5.1.tar.gz) = 1225203 Index: patches/patch-setup_cfg =================================================================== RCS file: patches/patch-setup_cfg diff -N patches/patch-setup_cfg --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ patches/patch-setup_cfg 9 Aug 2020 04:15:10 -0000 @@ -0,0 +1,17 @@ +$OpenBSD$ + +Prevent pytest error by removing unnecessary coverage testing. + +Index: setup.cfg +--- setup.cfg.orig ++++ setup.cfg +@@ -9,9 +9,6 @@ all_files = 1 + [aliases] + test = pytest + +-[tool:pytest] +-addopts = --cov=mastodon +- + [egg_info] + tag_build = + tag_date = 0 Index: pkg/PLIST =================================================================== RCS file: /home/cvs/ports/www/py-mastodon.py/pkg/PLIST,v retrieving revision 1.1.1.1 diff -u -p -r1.1.1.1 PLIST --- pkg/PLIST 15 Nov 2018 12:14:05 -0000 1.1.1.1 +++ pkg/PLIST 9 Aug 2020 04:28:40 -0000 @@ -1,4 +1,5 @@ @comment $OpenBSD: PLIST,v 1.1.1.1 2018/11/15 12:14:05 danj Exp $ +@pkgpath www/py-mastodon.py,python3 lib/python${MODPY_VERSION}/site-packages/Mastodon.py-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/ lib/python${MODPY_VERSION}/site-packages/Mastodon.py-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/PKG-INFO lib/python${MODPY_VERSION}/site-packages/Mastodon.py-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/SOURCES.txt