Skip to content

Commit

Permalink
release v4.0
Browse files Browse the repository at this point in the history
  • Loading branch information
snarfed committed Sep 16, 2021
1 parent f29376a commit 41c4355
Show file tree
Hide file tree
Showing 7 changed files with 78 additions and 57 deletions.
22 changes: 13 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -160,21 +160,25 @@ Troubleshooting/FAQ
Changelog
---

### 4.0 - unreleased
### 4.0 - 2021-09-15

_Breaking changes:_

Ported HTTP request handlers from [webapp2](https://github.com/GoogleCloudPlatform/webapp2/) to [Flask](https://flask.palletsprojects.com/). webapp2 had a good run, but it's no longer actively developed, and Flask is one of the most widely adopted standalone web framework in the Python community.
* Migrate from [webapp2](https://github.com/GoogleCloudPlatform/webapp2/) to [Flask](https://flask.palletsprojects.com/). webapp2 had a good run, but it's no longer actively developed, and Flask is one of the most widely adopted standalone web framework in the Python community.
* Remove `to()` class methods. Instead, now pass redirect paths to Flask's `as_view()` function, eg:

```py
app = Flask()
app.add_url_rule('/start', view_func=twitter.Callback.as_view('start', '/oauth_callback'))
```
* Remove deprecated `blogger_v2` module alias.
* `webutil`: migrate webapp2 HTTP request handlers in the `handlers` module - `XrdOrJrdHandler`, `HostMetaHandler`, and `HostMetaXrdsHandler` - to Flask views in a new `flask_util` module.

Removed `to()` class methods. Instead, now pass redirect paths to Flask's `as_view()` function, eg:
_Non-breaking changes:_

```py
app = Flask()
app.add_url_rule('/oauth_callback',
view_func=twitter.Callback.as_view('callback', '/after'))
```
* `webutil`: implement [Webmention](https://webmention.net/) protocol in new `webmention` module.
* `webutil`: add misc Flask utilities and helpers in new `flask_util` module.

Removed deprecated `blogger_v2` module alias.

### 3.1 - 2021-04-03

Expand Down
4 changes: 2 additions & 2 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,9 +84,9 @@
# built documents.
#
# The short X.Y version.
version = '3.1'
version = '4.0'
# The full version, including alpha/beta/rc tags.
release = '3.1'
release = '4.0'

# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.
Expand Down
75 changes: 44 additions & 31 deletions docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -268,27 +268,40 @@ just ``sudo python2 -m pip install grpcio``.
Changelog
---------

4.0 - unreleased
4.0 - 2021-09-15
~~~~~~~~~~~~~~~~

*Breaking changes:*

Ported HTTP request handlers from
`webapp2 <https://github.com/GoogleCloudPlatform/webapp2/>`__ to
`Flask <https://flask.palletsprojects.com/>`__. webapp2 had a good run,
but it’s no longer actively developed, and Flask is one of the most
widely adopted standalone web framework in the Python community.
- Migrate from
`webapp2 <https://github.com/GoogleCloudPlatform/webapp2/>`__ to
`Flask <https://flask.palletsprojects.com/>`__. webapp2 had a good
run, but it’s no longer actively developed, and Flask is one of the
most widely adopted standalone web framework in the Python community.

Removed ``to()`` class methods. Instead, now pass redirect paths to
Flask’s ``as_view()`` function, eg:
- Remove ``to()`` class methods. Instead, now pass redirect paths to
Flask’s ``as_view()`` function, eg:

.. code:: py
.. code:: py
app = Flask()
app.add_url_rule('/oauth_callback',
view_func=twitter.Callback.as_view(callback', '/after'))
app = Flask()
app.add_url_rule('/start', view_func=twitter.Callback.as_view('start', '/oauth_callback'))
Removed deprecated ``blogger_v2`` module alias.
- Remove deprecated ``blogger_v2`` module alias.

- ``webutil``: migrate webapp2 HTTP request handlers in the
``handlers`` module - ``XrdOrJrdHandler``, ``HostMetaHandler``, and
``HostMetaXrdsHandler`` - to Flask views in a new ``flask_util``
module.

*Non-breaking changes:*

- ``webutil``: implement `Webmention <https://webmention.net/>`__
protocol in new ``webmention`` module.
- ``webutil``: add misc Flask utilities and helpers in new
``flask_util`` module.

.. _section-1:

3.1 - 2021-04-03
~~~~~~~~~~~~~~~~
Expand All @@ -303,7 +316,7 @@ Removed deprecated ``blogger_v2`` module alias.

- Handle errors from access token request.

.. _section-1:
.. _section-2:

3.0 - 2020-03-14
~~~~~~~~~~~~~~~~
Expand Down Expand Up @@ -374,7 +387,7 @@ Non-breaking changes:
``<div>``, eg as Bootstrap columns.
- Add new ``image_file`` kwarg to ``StartHandler.button_html()``

.. _section-2:
.. _section-3:

2.2 - 2019-11-01
~~~~~~~~~~~~~~~~
Expand All @@ -396,7 +409,7 @@ Non-breaking changes:
`ujson <https://github.com/esnme/ultrajson/>`__ (built into App
Engine) to speed up JSON parsing and encoding.

.. _section-3:
.. _section-4:

2.0 - 2019-02-25
~~~~~~~~~~~~~~~~
Expand All @@ -413,7 +426,7 @@ Non-breaking changes:
- webutil.logs: return HTTP 400 if ``start_time`` is before 2008-04-01
(App Engine’s rough launch window).

.. _section-4:
.. _section-5:

1.14 - 2018-11-12
~~~~~~~~~~~~~~~~~
Expand All @@ -426,7 +439,7 @@ Non-breaking changes:
endpoint <https://developers.googleblog.com/2018/03/discontinuing-support-for-json-rpc-and.html>`__.
- Other minor internal updates.

.. _section-5:
.. _section-6:

1.13 - 2018-08-08
~~~~~~~~~~~~~~~~~
Expand All @@ -435,14 +448,14 @@ Non-breaking changes:
form-encoded
(`snarfed/bridgy#809 <https://github.com/snarfed/bridgy/issues/809>`__).

.. _section-6:
.. _section-7:

1.12 - 2018-03-24
~~~~~~~~~~~~~~~~~

- More Python 3 updates and bug fixes in webutil.util.

.. _section-7:
.. _section-8:

1.11 - 2018-03-08
~~~~~~~~~~~~~~~~~
Expand All @@ -458,14 +471,14 @@ Non-breaking changes:
- Add Python 3 support to webutil.util!
- Add humanize dependency for webutil.logs.

.. _section-8:
.. _section-9:

1.10 - 2017-12-10
~~~~~~~~~~~~~~~~~

Mostly just internal changes to webutil to support granary v1.10.

.. _section-9:
.. _section-10:

1.9 - 2017-10-24
~~~~~~~~~~~~~~~~
Expand All @@ -476,7 +489,7 @@ Mostly just internal changes to webutil to support granary v1.9.

- Handle punctuation in error messages.

.. _section-10:
.. _section-11:

1.8 - 2017-08-29
~~~~~~~~~~~~~~~~
Expand All @@ -499,14 +512,14 @@ Mostly just internal changes to webutil to support granary v1.9.
from ``me`` parameter, `which is going
away <https://github.com/aaronpk/IndieAuth.com/issues/167>`__.

.. _section-11:
.. _section-12:

1.7 - 2017-02-27
~~~~~~~~~~~~~~~~

- Updates to bundled webutil library, notably WideUnicode class.

.. _section-12:
.. _section-13:

1.6 - 2016-11-21
~~~~~~~~~~~~~~~~
Expand All @@ -515,21 +528,21 @@ Mostly just internal changes to webutil to support granary v1.9.
`oauth-dropins.readthedocs.io <http://oauth-dropins.readthedocs.io/>`__.
- Fix Dropbox bug with fetching access token.

.. _section-13:
.. _section-14:

1.5 - 2016-08-25
~~~~~~~~~~~~~~~~

- Add `Medium <https://medium.com/>`__.

.. _section-14:
.. _section-15:

1.4 - 2016-06-27
~~~~~~~~~~~~~~~~

- Upgrade Facebook API from v2.2 to v2.6.

.. _section-15:
.. _section-16:

1.3 - 2016-04-07
~~~~~~~~~~~~~~~~
Expand All @@ -538,7 +551,7 @@ Mostly just internal changes to webutil to support granary v1.9.
- More consistent logging of HTTP requests.
- Set up Coveralls.

.. _section-16:
.. _section-17:

1.2 - 2016-01-11
~~~~~~~~~~~~~~~~
Expand All @@ -552,15 +565,15 @@ Mostly just internal changes to webutil to support granary v1.9.
- Add developer setup and troubleshooting docs.
- Set up CircleCI.

.. _section-17:
.. _section-18:

1.1 - 2015-09-06
~~~~~~~~~~~~~~~~

- Flickr: split out flickr_auth.py file.
- Add a number of utility functions to webutil.

.. _section-18:
.. _section-19:

1.0 - 2015-06-27
~~~~~~~~~~~~~~~~
Expand Down
8 changes: 4 additions & 4 deletions docs/source/oauth_dropins.rst
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,6 @@ google_signin
-------------
.. automodule:: oauth_dropins.google_signin

handlers
--------
.. automodule:: oauth_dropins.handlers

indieauth
---------
.. automodule:: oauth_dropins.indieauth
Expand Down Expand Up @@ -91,6 +87,10 @@ twitter_auth
------------
.. automodule:: oauth_dropins.twitter_auth

views
-----
.. automodule:: oauth_dropins.views

wordpress_rest
--------------
.. automodule:: oauth_dropins.wordpress_rest
22 changes: 13 additions & 9 deletions docs/source/oauth_dropins.webutil.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,30 +7,34 @@ Reference documentation.
oauth_dropins.webutil


util
----
.. automodule:: oauth_dropins.webutil.util
flask_util
----------
.. automodule:: oauth_dropins.webutil.flask_util

handlers
--------
.. automodule:: oauth_dropins.webutil.handlers

models
------
.. automodule:: oauth_dropins.webutil.models
instance_info
-------------
.. automodule:: oauth_dropins.webutil.instance_info

logs
----
.. automodule:: oauth_dropins.webutil.logs

instance_info
-------------
.. automodule:: oauth_dropins.webutil.instance_info
models
------
.. automodule:: oauth_dropins.webutil.models

testutil
--------
.. automodule:: oauth_dropins.webutil.testutil

util
----
.. automodule:: oauth_dropins.webutil.util

webmention
----------
.. automodule:: oauth_dropins.webutil.webmention
2 changes: 1 addition & 1 deletion oauth_dropins/webutil
Submodule webutil updated 1 files
+1 −10 instance_info.py
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@


setup(name='oauth-dropins',
version='3.1',
version='4.0',
description='Drop-in OAuth Flask views for many popular sites.',
long_description=open('README.md').read(),
long_description_content_type='text/markdown',
Expand Down

0 comments on commit 41c4355

Please sign in to comment.