Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update mastodon-py requirement from ~=1.8 to ~=2.0 #29

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Feb 17, 2025

Updates the requirements on mastodon-py to permit the latest version.

Release notes

Sourced from mastodon-py's releases.

2.0.0

This is a big release. Everything for 4.3.0 support has been added, a lot of refactoring has happened, the library is now fully typed. Backwards compatibility SHOULD have been maintained - no existing code should break - but please be extra careful about upgrading.

  • 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)

Docs: https://mastodonpy.readthedocs.io/en/2.0.0/ PyPi: https://pypi.org/project/Mastodon.py/2.0.0/

Changelog

Sourced from mastodon-py's changelog.

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)

v1.8.1

  • Replace some lambdas with list comprenehsions (thanks eumiro)
  • Add resolve keyword to account_search (thanks zevaryx)

... (truncated)

Commits

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Updates the requirements on [mastodon-py](https://github.com/halcy/Mastodon.py) to permit the latest version.
- [Release notes](https://github.com/halcy/Mastodon.py/releases)
- [Changelog](https://github.com/halcy/Mastodon.py/blob/master/CHANGELOG.rst)
- [Commits](halcy/Mastodon.py@1.8.0...2.0.0)

---
updated-dependencies:
- dependency-name: mastodon-py
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <[email protected]>
@dependabot dependabot bot added dependencies Pull requests that update a dependency file python Pull requests that update Python code labels Feb 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file python Pull requests that update Python code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants