Skip to content

Commit ad3b718

Browse files
committed
Release v4.0.0
1 parent 85386f7 commit ad3b718

File tree

2 files changed

+33
-1
lines changed

2 files changed

+33
-1
lines changed

CHANGELOG.rst

+32
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,37 @@
11
Changelog
22
*********
33

4+
`4.0.0`_ (2021-01-23)
5+
---------------------
6+
7+
General:
8+
9+
- Dropped support for Python versions below 3.6.1.
10+
- Deprecated `ReceiptType.user_ack` has been removed. Use
11+
`ReceiptType.user_acknowledge` instead.
12+
- `util.aio_run` has been simplified. It does not allow for passing a specific
13+
event loop or closing the event loop on completion any longer.
14+
- `util.aio_run_proxy_decorator` has been renamed to `aio_run_proxy` and now
15+
always creates the class instance within a running event loop.
16+
17+
Client:
18+
19+
- In async mode, creation of the `Connection` instance must now be done within
20+
an `async` function.
21+
- If you have used a `with` context manager block in async mode before, you
22+
must now do this within an `async with` asynchronous context manager. No
23+
change is required in blocking mode.
24+
- `Connection.close` is now an async function.
25+
26+
Server:
27+
28+
- The callback server has been refactored and the `AbstractCallback` class has
29+
been removed for more flexibility and control of the underlying
30+
`aiohttp <https://docs.aiohttp.org>`_ server. Take a look at
31+
`examples/callback.py` on how to use it.
32+
- The callback server CLI has been removed because it was redundant. The
33+
example provides the same functionality.
34+
435
`3.1.0`_ (2020-04-21)
536
---------------------
637

@@ -28,6 +59,7 @@ Changelog
2859

2960
- Initial publication on PyPI
3061

62+
.. _4.0.0: https://github.com/lgrahl/threema-msgapi-sdk-python/compare/v3.1.0...v4.0.0
3163
.. _3.1.0: https://github.com/lgrahl/threema-msgapi-sdk-python/compare/v3.0.6...v3.1.0
3264
.. _3.0.6: https://github.com/lgrahl/threema-msgapi-sdk-python/compare/v3.0.5...v3.0.6
3365
.. _3.0.5: https://github.com/lgrahl/threema-msgapi-sdk-python/compare/v3.0.4...v3.0.5

threema/gateway/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030

3131
__author__ = 'Lennart Grahl <[email protected]>'
3232
__status__ = 'Production'
33-
__version__ = '3.1.0'
33+
__version__ = '4.0.0'
3434
feature_level = 3
3535

3636
__all__ = tuple(itertools.chain(

0 commit comments

Comments
 (0)