aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLorenz Diener <[email protected]>2017-06-16 01:29:12 +0200
committerLorenz Diener <[email protected]>2017-06-16 01:29:12 +0200
commit721da30d7a26ca3eba2ca12648604f1feb680e39 (patch)
treedcee4bcd34f220b737e7719d2f0fda9a9774dc83
parentd4b37995fea40320c1971ea8bd747fc9ece9c368 (diff)
downloadmastodon.py-721da30d7a26ca3eba2ca12648604f1feb680e39.tar.gz
Some changes in preparation for 1.0.8
-rw-r--r--README.rst30
-rw-r--r--docs/conf.py4
-rw-r--r--setup.py4
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
7 # Register app - only once! 7 # Register app - only once!
8 ''' 8 '''
9 Mastodon.create_app( 9 Mastodon.create_app(
10 'pytooterapp', 10 'pytooterapp',
11 to_file = 'pytooter_clientcred.txt' 11 api_base_url = 'https://mastodon.social',
12 to_file = 'pytooter_clientcred.secret'
12 ) 13 )
13 ''' 14 '''
14 15
15 # Log in - either every time, or use persisted 16 # Log in - either every time, or use persisted
16 ''' 17 '''
17 mastodon = Mastodon(client_id = 'pytooter_clientcred.txt') 18 mastodon = Mastodon(
19 client_id = 'pytooter_clientcred.secret',
20 api_base_url = 'https://mastodon.social'
21 )
18 mastodon.log_in( 22 mastodon.log_in(
19 '[email protected]', 23 '[email protected]',
20 'incrediblygoodpassword', 24 'incrediblygoodpassword',
21 to_file = 'pytooter_usercred.txt' 25 to_file = 'pytooter_usercred.secret'
22 ) 26 )
23 ''' 27 '''
24 28
25 # Create actual instance 29 # Create actual API instance
26 mastodon = Mastodon( 30 mastodon = Mastodon(
27 client_id = 'pytooter_clientcred.txt', 31 client_id = 'pytooter_clientcred.secret',
28 access_token = 'pytooter_usercred.txt' 32 access_token = 'pytooter_usercred.secret',
33 api_base_url = 'https://mastodon.social'
29 ) 34 )
30 mastodon.toot('Tooting from python!') 35 mastodon.toot('Tooting from python using #mastodonpy !')
31 36
32Python wrapper for the Mastodon ( https://github.com/tootsuite/mastodon/ ) API. 37Python wrapper for the Mastodon ( https://github.com/tootsuite/mastodon/ ) API.
33Feature complete for public API version v1 and easy to get started with. 38Feature complete for public API as of version v1.4 and easy to get started with.
34 39
35You can install Mastodon.py via pypi: 40You can install Mastodon.py via pypi:
36 41
@@ -42,8 +47,5 @@ You can install Mastodon.py via pypi:
42 # Python 3 47 # Python 3
43 pip3 install Mastodon.py 48 pip3 install Mastodon.py
44 49
45Full documentation and basic "how to post a toot" usage example can be found 50Full documentation and basic usage examples can be found
46at http://mastodonpy.readthedocs.io/en/latest/ . 51at http://mastodonpy.readthedocs.io/en/latest/ .
47
48Full "real life" example of how to use this library to write a Mastodon bot
49will 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'
58 58
59# General information about the project. 59# General information about the project.
60project = u'Mastodon.py' 60project = u'Mastodon.py'
61copyright = u'2016, Lorenz Diener' 61copyright = u'2016-2017, Lorenz Diener'
62author = u'Lorenz Diener' 62author = u'Lorenz Diener'
63 63
64# The version info for the project you're documenting, acts as replacement for 64# The version info for the project you're documenting, acts as replacement for
@@ -68,7 +68,7 @@ author = u'Lorenz Diener'
68# The short X.Y version. 68# The short X.Y version.
69version = u'1.0' 69version = u'1.0'
70# The full version, including alpha/beta/rc tags. 70# The full version, including alpha/beta/rc tags.
71release = u'1.0.7' 71release = u'1.0.8'
72 72
73# The language for content autogenerated by Sphinx. Refer to documentation 73# The language for content autogenerated by Sphinx. Refer to documentation
74# for a list of supported languages. 74# 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 @@
1from setuptools import setup, find_packages 1from setuptools import setup, find_packages
2 2
3setup(name='Mastodon.py', 3setup(name='Mastodon.py',
4 version='1.0.7', 4 version='1.0.8',
5 description='Python wrapper for the Mastodon API', 5 description='Python wrapper for the Mastodon API',
6 packages=['mastodon'], 6 packages=['mastodon'],
7 setup_requires=['pytest-runner'], 7 setup_requires=['pytest-runner'],
@@ -13,7 +13,7 @@ setup(name='Mastodon.py',
13 license='MIT', 13 license='MIT',
14 keywords='mastodon api microblogging', 14 keywords='mastodon api microblogging',
15 classifiers=[ 15 classifiers=[
16 'Development Status :: 4 - Beta', 16 'Development Status :: 5 - Production/Stable',
17 'Intended Audience :: Developers', 17 'Intended Audience :: Developers',
18 'Topic :: Communications', 18 'Topic :: Communications',
19 'License :: OSI Approved :: MIT License', 19 'License :: OSI Approved :: MIT License',
Powered by cgit v1.2.3 (git 2.41.0)