From 721da30d7a26ca3eba2ca12648604f1feb680e39 Mon Sep 17 00:00:00 2001 From: Lorenz Diener Date: Fri, 16 Jun 2017 01:29:12 +0200 Subject: Some changes in preparation for 1.0.8 --- README.rst | 30 ++++++++++++++++-------------- docs/conf.py | 4 ++-- setup.py | 4 ++-- 3 files changed, 20 insertions(+), 18 deletions(-) diff --git a/README.rst b/README.rst index 52cd064..40eb0cf 100644 --- a/README.rst +++ b/README.rst @@ -7,30 +7,35 @@ Mastodon.py # Register app - only once! ''' Mastodon.create_app( - 'pytooterapp', - to_file = 'pytooter_clientcred.txt' + 'pytooterapp', + api_base_url = 'https://mastodon.social', + to_file = 'pytooter_clientcred.secret' ) ''' # Log in - either every time, or use persisted ''' - mastodon = Mastodon(client_id = 'pytooter_clientcred.txt') + mastodon = Mastodon( + client_id = 'pytooter_clientcred.secret', + api_base_url = 'https://mastodon.social' + ) mastodon.log_in( 'my_login_email@example.com', - 'incrediblygoodpassword', - to_file = 'pytooter_usercred.txt' + 'incrediblygoodpassword', + to_file = 'pytooter_usercred.secret' ) ''' - # Create actual instance + # Create actual API instance mastodon = Mastodon( - client_id = 'pytooter_clientcred.txt', - access_token = 'pytooter_usercred.txt' + client_id = 'pytooter_clientcred.secret', + access_token = 'pytooter_usercred.secret', + api_base_url = 'https://mastodon.social' ) - mastodon.toot('Tooting from python!') + mastodon.toot('Tooting from python using #mastodonpy !') Python wrapper for the Mastodon ( https://github.com/tootsuite/mastodon/ ) API. -Feature complete for public API version v1 and easy to get started with. +Feature complete for public API as of version v1.4 and easy to get started with. You can install Mastodon.py via pypi: @@ -42,8 +47,5 @@ You can install Mastodon.py via pypi: # Python 3 pip3 install Mastodon.py -Full documentation and basic "how to post a toot" usage example can be found +Full documentation and basic usage examples can be found at http://mastodonpy.readthedocs.io/en/latest/ . - -Full "real life" example of how to use this library to write a Mastodon bot -will be linked here shortly. diff --git a/docs/conf.py b/docs/conf.py index da413f2..9c4a292 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -58,7 +58,7 @@ master_doc = 'index' # General information about the project. project = u'Mastodon.py' -copyright = u'2016, Lorenz Diener' +copyright = u'2016-2017, Lorenz Diener' author = u'Lorenz Diener' # The version info for the project you're documenting, acts as replacement for @@ -68,7 +68,7 @@ author = u'Lorenz Diener' # The short X.Y version. version = u'1.0' # The full version, including alpha/beta/rc tags. -release = u'1.0.7' +release = u'1.0.8' # The language for content autogenerated by Sphinx. Refer to documentation # for a list of supported languages. diff --git a/setup.py b/setup.py index 30949a5..45118ab 100644 --- a/setup.py +++ b/setup.py @@ -1,7 +1,7 @@ from setuptools import setup, find_packages setup(name='Mastodon.py', - version='1.0.7', + version='1.0.8', description='Python wrapper for the Mastodon API', packages=['mastodon'], setup_requires=['pytest-runner'], @@ -13,7 +13,7 @@ setup(name='Mastodon.py', license='MIT', keywords='mastodon api microblogging', classifiers=[ - 'Development Status :: 4 - Beta', + 'Development Status :: 5 - Production/Stable', 'Intended Audience :: Developers', 'Topic :: Communications', 'License :: OSI Approved :: MIT License', -- cgit v1.2.3