diff options
author | js <js@pkgsrc.org> | 2022-04-23 12:35:57 +0000 |
---|---|---|
committer | js <js@pkgsrc.org> | 2022-04-23 12:35:57 +0000 |
commit | 0ade5a18a6919e8ff919ac468a4fadc87e61568c (patch) | |
tree | c5b6ce779f097bc3776988c4667dc8005cbf55de /chat | |
parent | 123ae99240c3a0bd2ee23e3ba0fa371a7abcdce9 (diff) | |
download | pkgsrc-0ade5a18a6919e8ff919ac468a4fadc87e61568c.tar.gz |
Update chat/py-mautrix to 0.16.3
## v0.16.3 (2022-04-21)
* Changed `set_thread_parent` to have an explicit option for disabling the
thread-as-reply fallback.
## v0.16.2 (2022-04-21)
* Added `get_thread_parent` and `set_thread_parent` helper methods for `MessageEventContent`.
* Increased timeout for `MessageSendCheckpoint.send`.
## v0.16.1 (2022-04-17)
* **Breaking change** Removed `r0` path support.
* The new `v3` paths are implemented since Synapse 1.48, Dendrite 0.6.5,
and Conduit 0.4.0. Servers older than these are no longer supported.
## v0.16.0 (2022-04-11)
* **Breaking change *(types)*** Removed custom `REPLY` relation type and
changed `RelatesTo` structure to match the actual event content.
* Applications using `content.get_reply_to()` and `content.set_reply()` will
keep working with no changes.
* *(types)* Added `THREAD` relation type and `is_falling_back` field to
`RelatesTo`.
## v0.15.8 (2022-04-08)
* *(client.api)* Added experimental prometheus metric for file upload speed.
* *(util.async_db)* Improved type hints for `UpgradeTable.register`
* *(util.async_db)* Changed connection string log to redact database password.
## v0.15.7 (2022-04-05)
* *(api)* Added `file_name` parameter to `HTTPAPI.get_download_url`.
## v0.15.6 (2022-03-30)
* *(types)* Fixed removing nested (i.e. malformed) reply fallbacks generated by
some clients.
* *(types)* Added automatic reply fallback trimming to `set_reply()` to prevent
accidentally creating nested reply fallbacks.
## v0.15.5 (2022-03-28)
* *(crypto)* Changed default behavior of OlmMachine to ignore instead of reject
key requests from other users.
* Fixed some type hints
## v0.15.3 & v0.15.4 (2022-03-25)
* *(client.api)* Fixed incorrect HTTP methods in async media uploads.
## v0.15.2 (2022-03-25)
* *(client.api)* Added support for async media uploads ([MSC2246]).
* Moved `async_getter_lock` decorator to `mautrix.util` (from `mautrix.bridge`).
* The old import path will keep working.
[MSC2246]: https://github.com/matrix-org/matrix-spec-proposals/pull/2246
## v0.15.1 (2022-03-23)
* *(types)* Added `ensure_has_html` method for `TextMessageEventContent` to
generate a HTML `formatted_body` from the plaintext `body` correctly (i.e.
escaping HTML and replacing newlines).
## v0.15.0 (2022-03-16)
* **Breaking change** Removed Python 3.7 support.
* **Breaking change *(api)*** Removed `r0` from default path builders in order
to update to `v3` and per-endpoint versioning.
* The client API modules have been updated to specify v3 in the paths, other
direct usage of `Path`, `ClientPath` and `MediaPath` will have to be
updated manually. `UnstableClientPath` no longer exists and should be
replaced with `Path.unstable`.
* There's a temporary hacky backwards-compatibility layer which replaces /v3
with /r0 if the server doesn't advertise support for Matrix v1.1 or higher.
It can be activated by calling the `.versions()` method in `ClientAPI`.
The bridge module calls that method automatically.
* **Breaking change *(util.formatter)*** Removed lxml-based HTML parser.
* The parsed data format is still compatible with lxml, so it is possible to
use lxml with `MatrixParser` by setting `lxml.html.fromstring` as the
`read_html` method.
* **Breaking change *(crypto)*** Moved `TrustState`, `DeviceIdentity`,
`OlmEventKeys` and `DecryptedOlmEvent` dataclasses from `crypto.types`
into `types.crypto`.
* **Breaking change *(bridge)*** Made `User.get_puppet` abstract and added new
abstract `User.get_portal_with` and `Portal.get_dm_puppet` methods.
* Added a redundant `__all__` to various `__init__.py` files to appease pyright.
* *(api)* Reduced aiohttp memory usage when uploading large files by making
an in-memory async iterable instead of passing the bytes directly.
* *(bridge)* Removed legacy community utilities.
* *(bridge)* Added support for creating DM portals with minimal bridge-specific code.
* *(util.async_db)* Fixed counting number of db upgrades.
* *(util.async_db)* Added support for schema migrations that jump versions.
* *(util.async_db)* Added system for preventing using the same database for
multiple programs.
* To enable it, provide an unique program name as the `owner_name` parameter
in `Database.create`.
* Additionally, if `ignore_foreign_tables` is set to `True`, it will check
for tables of some known software like Synapse and Dendrite.
* The `bridge` module enables both options by default.
* *(util.db)* Module deprecated. The async_db module is recommended. However,
the SQLAlchemy helpers will remain until maubot has switched to asyncpg.
* *(util.magic)* Allowed `bytearray` as an input type for the `mimetype` method.
* *(crypto.attachments)* Added method to encrypt a `bytearray` in-place to
avoid unnecessarily duplicating data in memory.
## v0.14.10 (2022-02-01)
* *(bridge)* Fixed accidentally broken Python 3.7 compatibility.
## v0.14.9 (2022-02-01)
* *(client.api)* Added `reason` field to `leave_room` and `invite_user` methods.
## v0.14.8 (2022-01-31)
* *(util.formatter)* Deprecated the lxml-based HTML parser and made the
htmlparser-based parser the default. The lxml-based parser will be removed
in v0.15.
* *(client.api)* Fixed `filter_json` parameter in `get_messages` not being sent
to the server correctly.
* *(bridge)* Added utilities for implementing disappearing messages.
## v0.14.7 (2022-01-29)
* *(client)* Fixed error inviting users with custom member event content if the
server had disabled fetching profiles.
* *(util.utf16_surrogate)* Added utilities for adding/removing unicode
surrogate pairs in strings.
* *(util.magic)* Added check to make sure the parameter to `mimetype()` is
either `bytes` or `str`.
## v0.14.6 (2022-01-26)
* **Breaking change *(util.message_send_checkpoint)*** Changed order of `send`
parameters to match `BridgeState.send` (this is not used by most software,
which is why the breaking change is in a patch release).
* *(util.async_db)* Changed the default size of the aiosqlite thread pool to 1,
as it doesn't reliably work with higher values.
* *(util.async_db)* Added logging for database queries that take a long time
(>1 second).
* *(client)* Added logging for sync requests that take a long time
(>40 seconds, with the timeout being 30 seconds).
* *(util.variation_selector)* Fixed variation selectors being incorrectly added
even if the emoji had a skin tone selector.
* *(bridge)* Fixed the process getting stuck if a config error caused the
bridge to stop itself without stopping the SQLite thread.
* Added pre-commit hooks to run black, isort and some other checks.
Diffstat (limited to 'chat')
-rw-r--r-- | chat/py-mautrix/Makefile | 11 | ||||
-rw-r--r-- | chat/py-mautrix/PLIST | 38 | ||||
-rw-r--r-- | chat/py-mautrix/distinfo | 8 |
3 files changed, 31 insertions, 26 deletions
diff --git a/chat/py-mautrix/Makefile b/chat/py-mautrix/Makefile index de68166bfa7..b8fd40d4582 100644 --- a/chat/py-mautrix/Makefile +++ b/chat/py-mautrix/Makefile @@ -1,12 +1,11 @@ -# $NetBSD: Makefile,v 1.16 2022/01/15 13:36:41 js Exp $ +# $NetBSD: Makefile,v 1.17 2022/04/23 12:35:57 js Exp $ -DISTNAME= mautrix-python-0.14.5 -PKGNAME= ${PYPKGPREFIX}-${DISTNAME:S/-python//} +DISTNAME= python-0.16.3 +PKGNAME= mautrix-${DISTNAME} CATEGORIES= chat python -MASTER_SITES= ${MASTER_SITE_GITHUB:=tulir/} -GITHUB_PROJECT= mautrix-python +MASTER_SITES= ${MASTER_SITE_GITHUB:=mautrix/} +GITHUB_PROJECT= python GITHUB_TAG= v${PKGVERSION_NOREV} -WRKSRC= ${WRKDIR}/python-${PKGVERSION_NOREV} MAINTAINER= js@pkgsrc.org HOMEPAGE= https://github.com/tulir/mautrix-python diff --git a/chat/py-mautrix/PLIST b/chat/py-mautrix/PLIST index ae44d0f7729..045471f9563 100644 --- a/chat/py-mautrix/PLIST +++ b/chat/py-mautrix/PLIST @@ -1,4 +1,4 @@ -@comment $NetBSD: PLIST,v 1.5 2022/01/15 13:36:41 js Exp $ +@comment $NetBSD: PLIST,v 1.6 2022/04/23 12:35:57 js Exp $ ${PYSITELIB}/${EGG_INFODIR}/PKG-INFO ${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt ${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt @@ -46,12 +46,6 @@ ${PYSITELIB}/mautrix/appservice/state_store/sqlalchemy.pyo ${PYSITELIB}/mautrix/bridge/__init__.py ${PYSITELIB}/mautrix/bridge/__init__.pyc ${PYSITELIB}/mautrix/bridge/__init__.pyo -${PYSITELIB}/mautrix/bridge/_community.py -${PYSITELIB}/mautrix/bridge/_community.pyc -${PYSITELIB}/mautrix/bridge/_community.pyo -${PYSITELIB}/mautrix/bridge/async_getter_lock.py -${PYSITELIB}/mautrix/bridge/async_getter_lock.pyc -${PYSITELIB}/mautrix/bridge/async_getter_lock.pyo ${PYSITELIB}/mautrix/bridge/bridge.py ${PYSITELIB}/mautrix/bridge/bridge.pyc ${PYSITELIB}/mautrix/bridge/bridge.pyo @@ -94,6 +88,9 @@ ${PYSITELIB}/mautrix/bridge/crypto_state_store.pyo ${PYSITELIB}/mautrix/bridge/custom_puppet.py ${PYSITELIB}/mautrix/bridge/custom_puppet.pyc ${PYSITELIB}/mautrix/bridge/custom_puppet.pyo +${PYSITELIB}/mautrix/bridge/disappearing_message.py +${PYSITELIB}/mautrix/bridge/disappearing_message.pyc +${PYSITELIB}/mautrix/bridge/disappearing_message.pyo ${PYSITELIB}/mautrix/bridge/e2ee.py ${PYSITELIB}/mautrix/bridge/e2ee.pyc ${PYSITELIB}/mautrix/bridge/e2ee.pyo @@ -289,9 +286,6 @@ ${PYSITELIB}/mautrix/crypto/store/asyncpg/upgrade.pyo ${PYSITELIB}/mautrix/crypto/store/memory.py ${PYSITELIB}/mautrix/crypto/store/memory.pyc ${PYSITELIB}/mautrix/crypto/store/memory.pyo -${PYSITELIB}/mautrix/crypto/types.py -${PYSITELIB}/mautrix/crypto/types.pyc -${PYSITELIB}/mautrix/crypto/types.pyo ${PYSITELIB}/mautrix/crypto/unwedge.py ${PYSITELIB}/mautrix/crypto/unwedge.pyc ${PYSITELIB}/mautrix/crypto/unwedge.pyo @@ -313,6 +307,9 @@ ${PYSITELIB}/mautrix/errors/well_known.pyo ${PYSITELIB}/mautrix/fixmodule.py ${PYSITELIB}/mautrix/fixmodule.pyc ${PYSITELIB}/mautrix/fixmodule.pyo +${PYSITELIB}/mautrix/genall.py +${PYSITELIB}/mautrix/genall.pyc +${PYSITELIB}/mautrix/genall.pyo ${PYSITELIB}/mautrix/py.typed ${PYSITELIB}/mautrix/types/__init__.py ${PYSITELIB}/mautrix/types/__init__.pyc @@ -420,12 +417,24 @@ ${PYSITELIB}/mautrix/util/async_db/aiosqlite.pyo ${PYSITELIB}/mautrix/util/async_db/asyncpg.py ${PYSITELIB}/mautrix/util/async_db/asyncpg.pyc ${PYSITELIB}/mautrix/util/async_db/asyncpg.pyo +${PYSITELIB}/mautrix/util/async_db/connection.py +${PYSITELIB}/mautrix/util/async_db/connection.pyc +${PYSITELIB}/mautrix/util/async_db/connection.pyo ${PYSITELIB}/mautrix/util/async_db/database.py ${PYSITELIB}/mautrix/util/async_db/database.pyc ${PYSITELIB}/mautrix/util/async_db/database.pyo +${PYSITELIB}/mautrix/util/async_db/errors.py +${PYSITELIB}/mautrix/util/async_db/errors.pyc +${PYSITELIB}/mautrix/util/async_db/errors.pyo +${PYSITELIB}/mautrix/util/async_db/scheme.py +${PYSITELIB}/mautrix/util/async_db/scheme.pyc +${PYSITELIB}/mautrix/util/async_db/scheme.pyo ${PYSITELIB}/mautrix/util/async_db/upgrade.py ${PYSITELIB}/mautrix/util/async_db/upgrade.pyc ${PYSITELIB}/mautrix/util/async_db/upgrade.pyo +${PYSITELIB}/mautrix/util/async_getter_lock.py +${PYSITELIB}/mautrix/util/async_getter_lock.pyc +${PYSITELIB}/mautrix/util/async_getter_lock.pyo ${PYSITELIB}/mautrix/util/bridge_state.py ${PYSITELIB}/mautrix/util/bridge_state.pyc ${PYSITELIB}/mautrix/util/bridge_state.pyo @@ -484,12 +493,6 @@ ${PYSITELIB}/mautrix/util/formatter/html_reader.py ${PYSITELIB}/mautrix/util/formatter/html_reader.pyc ${PYSITELIB}/mautrix/util/formatter/html_reader.pyi ${PYSITELIB}/mautrix/util/formatter/html_reader.pyo -${PYSITELIB}/mautrix/util/formatter/html_reader_htmlparser.py -${PYSITELIB}/mautrix/util/formatter/html_reader_htmlparser.pyc -${PYSITELIB}/mautrix/util/formatter/html_reader_htmlparser.pyo -${PYSITELIB}/mautrix/util/formatter/html_reader_lxml.py -${PYSITELIB}/mautrix/util/formatter/html_reader_lxml.pyc -${PYSITELIB}/mautrix/util/formatter/html_reader_lxml.pyo ${PYSITELIB}/mautrix/util/formatter/markdown_string.py ${PYSITELIB}/mautrix/util/formatter/markdown_string.pyc ${PYSITELIB}/mautrix/util/formatter/markdown_string.pyo @@ -536,6 +539,9 @@ ${PYSITELIB}/mautrix/util/simple_lock.pyo ${PYSITELIB}/mautrix/util/simple_template.py ${PYSITELIB}/mautrix/util/simple_template.pyc ${PYSITELIB}/mautrix/util/simple_template.pyo +${PYSITELIB}/mautrix/util/utf16_surrogate.py +${PYSITELIB}/mautrix/util/utf16_surrogate.pyc +${PYSITELIB}/mautrix/util/utf16_surrogate.pyo ${PYSITELIB}/mautrix/util/variation_selector.json ${PYSITELIB}/mautrix/util/variation_selector.py ${PYSITELIB}/mautrix/util/variation_selector.pyc diff --git a/chat/py-mautrix/distinfo b/chat/py-mautrix/distinfo index 2f199002be3..b6d34636e75 100644 --- a/chat/py-mautrix/distinfo +++ b/chat/py-mautrix/distinfo @@ -1,5 +1,5 @@ -$NetBSD: distinfo,v 1.10 2022/01/15 13:36:41 js Exp $ +$NetBSD: distinfo,v 1.11 2022/04/23 12:35:57 js Exp $ -BLAKE2s (mautrix-python-0.14.5.tar.gz) = 713b714f6506ccaf4213fe6d4e069f207f1f1df3b9fed38ab7a0ce4b1f2fd0c4 -SHA512 (mautrix-python-0.14.5.tar.gz) = e58519ab313e2214cd12baf4a435bb7f4a86b4407a6d9ba527370b94231f735a644d93f46f231f95f200537d7d31859a570a186f192bc01c34fc82cb399f4f04 -Size (mautrix-python-0.14.5.tar.gz) = 200832 bytes +BLAKE2s (python-0.16.3.tar.gz) = 143b11adcfc7241f0331f00a973ad1b5400183387491be81c4b68e80765b9608 +SHA512 (python-0.16.3.tar.gz) = eff3e1486975b8a0b22a94b87e80c61a3e6663af1a36abfd780fbf480225f77b8ae1002ffbcbd8cbb214253e307abdc9bc9d2f82df038a47bdc25d5fd9c67756 +Size (python-0.16.3.tar.gz) = 214649 bytes |