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:   adam
Date:           Fri Apr 18 09:06:20 UTC 2025

Modified Files:
        pkgsrc/chat/py-mastodon: Makefile PLIST distinfo
Removed Files:
        pkgsrc/chat/py-mastodon/patches: patch-setup.py

Log Message:
py-mastodon: updated to 2.0.1

v2.0.1

Maintenance release. Fixes a few minor, but important, issues

* Remove spurious debug prints (Thanks aitorres)
* Fix pagination fetch_remaining being broken due to typing changes (Thanks jikamens)
* Fix pagination result parsing due to typing changes (Thanks hashier for the report)
* Fix pagination information not being saved with to/from_json functions

v2.0.0

* Absolutely massive rework of entities and typing. There are now proper classes for all entities, and typing is now used throughout the library. There is an attempt here to be backwards compatible, 
and none of my *tests* break.
* Documentation fixes based on the new entities and typing.
* Added information that streaming API access is now auth mandatory (Thanks @leahoswald)
* Removed six dependency, since we don't care about 2.x anymore (Thanks @a-detiste)
* Support level is now 4.3.0
* Note that logging in with passwords is deprecated and to be removed in 4.4.0
* Clarify the use of `code`  (Thanks @lasseedfast)
* Improved docstring for visibility (Thanks @ashwinvis)
* Added `offset` parameter to `trending_statuses` (Thanks @Teqed)
* We're now using space age technology (pyproject.toml - thanks @codl)
* Add py.typed marker (Thanks @ZeeD for the suggestion)
* Added CITATION.cff (Thanks @hauschke for the suggestion)
* Fixed a potential issue with modification to locals (Thanks Konano)
* Added support for 4.3.0 `accounts` endpoint (Thanks AlexKalopsia)
* Fix version parsing for GoToSocial (Thanks gmemstr)
* Updated docs to reflect the fact that startign with 4.4.0, the password grant type is no longer supported.
* Added support for following tags (`followed_tags`, `tag_follow`, `tag_unfollow`, `tag`)
* Fix library not working with -O2 (Thanks mirabilos for the report)
* Version check mode now defaults to "none", since it keeps causing more problems than it solves.
* Document `media` (Thanks LunarLambda for the report)
* Added json serialization and deserialization for returned entities
* Added missing event types and a catch-all event for streaming API
* Add v1 and v2 variants for `instance`
* Add canonical domain block support (`admin_canonical_email_blocks`, `admin_canonical_email_block`, `admin_canonical_email_block_create`, `admin_canonical_email_block_delete`)
* Add trending link timeline (`timeline_link`)
* Update suggestions endpoint and return value
* Add with_suspended parameter to account_relationships
* Add forward_to_domains parameter to reports
* Add `account_delete_avatar` and `account_delete_header`
* Add `statuses` method to retrieve multiple statuses at once
* Add automatic conversion of datetime objects to flake IDs for min/max/since_id fields where appropriate
* Add `notifications_unread_count`
* Add media attachment editing
* Add email domain blocking support (`admin_email_domain_blocks`, `admin_email_domain_block`, `admin_email_domain_block_create`, `admin_email_domain_block_delete`)
* Add `instance_extended_description`
* Add `instance_translation_languages`, translation support (`status_translate`)
* Add trend admin functions (`admin_trending_tags`, `admin_trending_statuses`, `admin_trending_links`, `admin_approve_trending_link`, `admin_reject_trending_link`, `admin_approve_trending_status`, 
`admin_reject_trending_status`, `admin_approve_trending_tag`, `admin_reject_trending_tag`)
* Add admin IP block functions (`admin_ip_blocks`, `admin_ip_block`, `admin_ip_block_create`, `admin_ip_block_delete`)
* Add `instance_domain_blocks`
* Add notification policy and requests (`notifications_policy`, `update_notifications_policy`, `notifications_requests`, `notification_request`, `accept_notification_request`, 
`reject_notification_request`, `notifications_merged`, `accept_multiple_notification_requests`, `dismiss_multiple_notification_requests`)
* Add `instance_languages`
* Add notification grouping (`grouped_notifications`, `grouped_notification`, `dismiss_grouped_notification`, `grouped_notification_accounts`, `unread_grouped_notifications_count`)
* Add v2 filer API (`filters_v2`, `filter_v2`, `create_filter_v2`, `update_filter_v2`, `delete_filter_v2`, `filter_keywords_v2`, `add_filter_keyword_v2`, `delete_filter_keyword_v2`, 
`filter_statuses_v2`, `add_filter_status_v2`, `filter_status_v2`, `delete_filter_status_v2`)


To generate a diff of this commit:
cvs rdiff -u -r1.19 -r1.20 pkgsrc/chat/py-mastodon/Makefile
cvs rdiff -u -r1.3 -r1.4 pkgsrc/chat/py-mastodon/PLIST
cvs rdiff -u -r1.11 -r1.12 pkgsrc/chat/py-mastodon/distinfo
cvs rdiff -u -r1.1 -r0 pkgsrc/chat/py-mastodon/patches/patch-setup.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.19 pkgsrc/chat/py-mastodon/Makefile:1.20
--- pkgsrc/chat/py-mastodon/Makefile:1.19       Wed Mar  5 09:31:15 2025
+++ pkgsrc/chat/py-mastodon/Makefile    Fri Apr 18 09:06:20 2025
@@ -1,8 +1,7 @@
-# $NetBSD: Makefile,v 1.19 2025/03/05 09:31:15 wiz Exp $
+# $NetBSD: Makefile,v 1.20 2025/04/18 09:06:20 adam Exp $
 
-DISTNAME=      Mastodon.py-${PKGVERSION_NOREV}
-PKGNAME=       ${PYPKGPREFIX}-mastodon-1.8.1
-PKGREVISION=   1
+DISTNAME=      mastodon_py-2.0.1
+PKGNAME=       ${PYPKGPREFIX}-${DISTNAME:S/_py//}
 CATEGORIES=    chat www python
 MASTER_SITES=  ${MASTER_SITE_PYPI:=M/Mastodon.py/}
 
@@ -11,28 +10,21 @@ HOMEPAGE=   https://github.com/halcy/Masto
 COMMENT=       Python wrapper for the Mastodon API
 LICENSE=       mit
 
-TOOL_DEPENDS+= ${PYPKGPREFIX}-setuptools>=75.8.2:../../devel/py-setuptools
-
+TOOL_DEPENDS+= ${PYPKGPREFIX}-setuptools>=78:../../devel/py-setuptools
 DEPENDS+=      ${PYPKGPREFIX}-blurhash>=1.1.4:../../graphics/py-blurhash
 DEPENDS+=      ${PYPKGPREFIX}-dateutil-[0-9]*:../../time/py-dateutil
 DEPENDS+=      ${PYPKGPREFIX}-decorator>=4.0.0:../../devel/py-decorator
 DEPENDS+=      ${PYPKGPREFIX}-magic-[0-9]*:../../sysutils/py-magic
 DEPENDS+=      ${PYPKGPREFIX}-requests>=2.4.2:../../devel/py-requests
-DEPENDS+=      ${PYPKGPREFIX}-six-[0-9]*:../../lang/py-six
-
-TEST_DEPENDS+= ${PYPKGPREFIX}-contextlib2-[0-9]*:../../devel/py-contextlib2
 TEST_DEPENDS+= ${PYPKGPREFIX}-pytz-[0-9]*:../../time/py-pytz
 TEST_DEPENDS+= ${PYPKGPREFIX}-requests-mock-[0-9]*:../../devel/py-requests-mock
 TEST_DEPENDS+= ${PYPKGPREFIX}-test-cov-[0-9]*:../../devel/py-test-cov
 TEST_DEPENDS+= ${PYPKGPREFIX}-test-mock-[0-9]*:../../devel/py-test-mock
 TEST_DEPENDS+= ${PYPKGPREFIX}-vcrpy-[0-9]*:../../www/py-vcrpy
 TEST_DEPENDS+= ${PYPKGPREFIX}-wrapt-[0-9]*:../../devel/py-wrapt
-TEST_DEPENDS+= ${PYPKGPREFIX}-yaml-[0-9]*:../../textproc/py-yaml
 
 USE_LANGUAGES= # none
 
-WHEEL_NAME=    ${DISTNAME:tl:S/./_/}
-
 # as of 1.8.1
 # 97 failed, 172 passed, 3 skipped, 3 xfailed, 135 warnings, 38 errors
 

Index: pkgsrc/chat/py-mastodon/PLIST
diff -u pkgsrc/chat/py-mastodon/PLIST:1.3 pkgsrc/chat/py-mastodon/PLIST:1.4
--- pkgsrc/chat/py-mastodon/PLIST:1.3   Mon Oct 14 08:08:36 2024
+++ pkgsrc/chat/py-mastodon/PLIST       Fri Apr 18 09:06:20 2025
@@ -1,8 +1,8 @@
-@comment $NetBSD: PLIST,v 1.3 2024/10/14 08:08:36 nia Exp $
-${PYSITELIB}/${WHEEL_INFODIR}/LICENSE
+@comment $NetBSD: PLIST,v 1.4 2025/04/18 09:06:20 adam Exp $
 ${PYSITELIB}/${WHEEL_INFODIR}/METADATA
 ${PYSITELIB}/${WHEEL_INFODIR}/RECORD
 ${PYSITELIB}/${WHEEL_INFODIR}/WHEEL
+${PYSITELIB}/${WHEEL_INFODIR}/licenses/LICENSE
 ${PYSITELIB}/${WHEEL_INFODIR}/top_level.txt
 ${PYSITELIB}/mastodon/Mastodon.py
 ${PYSITELIB}/mastodon/Mastodon.pyc
@@ -67,12 +67,16 @@ ${PYSITELIB}/mastodon/preferences.pyo
 ${PYSITELIB}/mastodon/push.py
 ${PYSITELIB}/mastodon/push.pyc
 ${PYSITELIB}/mastodon/push.pyo
+${PYSITELIB}/mastodon/py.typed
 ${PYSITELIB}/mastodon/relationships.py
 ${PYSITELIB}/mastodon/relationships.pyc
 ${PYSITELIB}/mastodon/relationships.pyo
 ${PYSITELIB}/mastodon/reports.py
 ${PYSITELIB}/mastodon/reports.pyc
 ${PYSITELIB}/mastodon/reports.pyo
+${PYSITELIB}/mastodon/return_types.py
+${PYSITELIB}/mastodon/return_types.pyc
+${PYSITELIB}/mastodon/return_types.pyo
 ${PYSITELIB}/mastodon/search.py
 ${PYSITELIB}/mastodon/search.pyc
 ${PYSITELIB}/mastodon/search.pyo
@@ -94,6 +98,9 @@ ${PYSITELIB}/mastodon/timeline.pyo
 ${PYSITELIB}/mastodon/trends.py
 ${PYSITELIB}/mastodon/trends.pyc
 ${PYSITELIB}/mastodon/trends.pyo
+${PYSITELIB}/mastodon/types_base.py
+${PYSITELIB}/mastodon/types_base.pyc
+${PYSITELIB}/mastodon/types_base.pyo
 ${PYSITELIB}/mastodon/utility.py
 ${PYSITELIB}/mastodon/utility.pyc
 ${PYSITELIB}/mastodon/utility.pyo

Index: pkgsrc/chat/py-mastodon/distinfo
diff -u pkgsrc/chat/py-mastodon/distinfo:1.11 pkgsrc/chat/py-mastodon/distinfo:1.12
--- pkgsrc/chat/py-mastodon/distinfo:1.11       Mon Oct 14 08:08:36 2024
+++ pkgsrc/chat/py-mastodon/distinfo    Fri Apr 18 09:06:20 2025
@@ -1,6 +1,5 @@
-$NetBSD: distinfo,v 1.11 2024/10/14 08:08:36 nia Exp $
+$NetBSD: distinfo,v 1.12 2025/04/18 09:06:20 adam Exp $
 
-BLAKE2s (Mastodon.py-1.8.1.tar.gz) = d953478415044d9817d175ba6a69ca9f69c5e17d5d310d8732347d52ab5ecd78
-SHA512 (Mastodon.py-1.8.1.tar.gz) = 812bfdcb1a59a06376bfb48798b43cac9dc9390781b3949e4b3d751ec0530b25b187e688c7cfc18eff6d5bb23c9bf442bce5f6902727331e8bc550e310dab94c
-Size (Mastodon.py-1.8.1.tar.gz) = 8694359 bytes
-SHA1 (patch-setup.py) = 2d826a9896ff8876841c606038259bce55374e47
+BLAKE2s (mastodon_py-2.0.1.tar.gz) = 3157b9803daace58ae7d2c1841eae711be5586318efd5c86c2726697f4e69643
+SHA512 (mastodon_py-2.0.1.tar.gz) = 7aff1f6cf6c159d9ab95ff9d44aa1249c8db1536121fc5cd88ff0c46c22b23efb0c4857d6c6a744630b23804504b6d7886848ca194957dd524b4b014dadcd5e3
+Size (mastodon_py-2.0.1.tar.gz) = 10988936 bytes



Home | Main Index | Thread Index | Old Index