From f55ff45393182659fa61196771d77b871d886b2c Mon Sep 17 00:00:00 2001 From: Lorenz Diener Date: Fri, 15 Dec 2017 20:26:25 +0100 Subject: [PATCH] Prepare release, part 2 --- README.rst | 2 +- mastodon/Mastodon.py | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/README.rst b/README.rst index 77cc7b7..a8524dc 100644 --- a/README.rst +++ b/README.rst @@ -35,7 +35,7 @@ Mastodon.py mastodon.toot('Tooting from python using #mastodonpy !') Python wrapper for the Mastodon ( https://github.com/tootsuite/mastodon/ ) API. -Feature complete for public API as of Mastodon version 2.0.0 and easy to get started with. +Feature complete for public API as of Mastodon version 2.1.0 and easy to get started with. You can install Mastodon.py via pypi: diff --git a/mastodon/Mastodon.py b/mastodon/Mastodon.py index 4500583..5080b2e 100644 --- a/mastodon/Mastodon.py +++ b/mastodon/Mastodon.py @@ -253,6 +253,12 @@ class Mastodon: elif major == self.mastodon_major and minor == self.mastodon_minor and patch > self.mastodon_patch: return False return True + + def get_supported_version(self): + """ + Retrieve the maximum version of Mastodon supported by this version of Mastodon.py + """ + return __SUPPORTED_MASTODON_VERSION def auth_request_url(self, client_id=None, redirect_uris="urn:ietf:wg:oauth:2.0:oob", scopes=['read', 'write', 'follow']):