From 2d71846d667f2a1fc8f3bfd9b70980e7a75c06ac Mon Sep 17 00:00:00 2001 From: Craig Maloney Date: Wed, 6 Jun 2018 09:32:38 -0400 Subject: [PATCH 1/4] Update to Mastodon 1.3, fix streaming parameters --- requirements.txt | 2 +- src/tootstream/toot.py | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/requirements.txt b/requirements.txt index 06287b4..91ee0bd 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,5 +1,5 @@ click>=6.7 -Mastodon.py==1.2.2 +Mastodon.py==1.3 colored>=1.3.5 humanize>=0.5.1 emoji>=0.4.5 diff --git a/src/tootstream/toot.py b/src/tootstream/toot.py index fd6b772..f4cd44f 100644 --- a/src/tootstream/toot.py +++ b/src/tootstream/toot.py @@ -1279,11 +1279,11 @@ def say_error(*args, **kwargs): try: if rest == "home" or rest == "": - handle = mastodon.stream_user(toot_listener, async=True) + handle = mastodon.stream_user(toot_listener, run_async=True) elif rest == "fed" or rest == "public": - handle = mastodon.stream_public(toot_listener, async=True) + handle = mastodon.stream_public(toot_listener, run_async=True) elif rest == "local": - handle = mastodon.stream_local(toot_listener, async=True) + handle = mastodon.stream_local(toot_listener, run_async=True) elif rest.startswith('list'): # Remove list from the rest string items = rest.split('list ') From fef1e721e0e6697f67f7a5e3db4ab0a3a909c32f Mon Sep 17 00:00:00 2001 From: Craig Maloney Date: Fri, 20 Jul 2018 08:54:52 -0400 Subject: [PATCH 2/4] Fixing list rename so it works --- src/tootstream/toot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tootstream/toot.py b/src/tootstream/toot.py index f4cd44f..8720abc 100644 --- a/src/tootstream/toot.py +++ b/src/tootstream/toot.py @@ -1880,7 +1880,7 @@ def listcreate(mastodon, rest): def listrename(mastodon, rest): """Rename a list. ex: listrename oldlist newlist""" - if not(list_supportmastodon()): + if not(list_support(mastodon)): return rest = rest.strip() if not rest: From de3112fcbfbc4dd94e66ba4550aa0222c2898c9b Mon Sep 17 00:00:00 2001 From: Craig Maloney Date: Wed, 8 Aug 2018 20:54:11 -0400 Subject: [PATCH 3/4] Updating Changelog --- CHANGELOG.md | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 3990a58..d61790a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,7 +5,17 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/) and this project adheres to [Semantic Versioning](http://semver.org/). ### Release -### [0.3.4] - TBD +### [0.3.5] - 2018-08-08 + +#### Added +- Updated to Mastodon.py 1.3 (no additional features yet) + +#### Fixed +- List renames did not work + + +### Release +### [0.3.4] - 2018-05-30 #### Added - Added ability to execute commands while streaming (toot, fav, rep, etc.) @@ -15,7 +25,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/). - Display media links by default - Display message when no notifications are present -### Fixed +#### Fixed - Privacy settings now default to server privacy settings for toots - CTRL-C in streaming adds a linefeed to preserve prompt spacing - Streaming now supports lists with spaces From ecc4402a3f59c58bd4a201a4f272b567449ff2bb Mon Sep 17 00:00:00 2001 From: Craig Maloney Date: Wed, 8 Aug 2018 20:54:59 -0400 Subject: [PATCH 4/4] Update version --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 4deecd6..0d7e90d 100644 --- a/setup.py +++ b/setup.py @@ -1,7 +1,7 @@ from setuptools import setup, find_packages setup( name="tootstream", - version="0.3.4", + version="0.3.5", python_requires=">=3", install_requires=[line.strip() for line in open('requirements.txt')],