summaryrefslogtreecommitdiff
path: root/chat
diff options
context:
space:
mode:
authorjs <js@pkgsrc.org>2022-01-15 20:22:06 +0000
committerjs <js@pkgsrc.org>2022-01-15 20:22:06 +0000
commitc5a0b832e2701bf241aeac647cd9854981b34911 (patch)
treef77f29cfcd2d5764b55dcdaa6a40ac0d8f7056e7 /chat
parent4771fd66513c9d7c792a7c0614087272043aae61 (diff)
downloadpkgsrc-c5a0b832e2701bf241aeac647cd9854981b34911.tar.gz
Update chat/mautrix-telegram to 0.11.1
v0.10.2 Deprecation unwarning While switching away from SQLAlchemy is still planned for v0.11, SQLite is no longer deprecated and will still be supported in the future using aiosqlite. Added * Added extensions when bridging unnamed files from Telegram. * Added support for custom bridge bot welcome messages (thanks to @justinbot in #676). Improved * Improved handling authorization errors if the bridge was logged out remotely. * Updated room syncer to use existing power levels to find appropriate levels for admins and normal users instead of hardcoding 50 and 0. * Updated to Telegram API layer 133 to handle 64-bit user/chat/channel IDs. * Stopped logging message contents when message handling failed (thanks to @justinbot in #681). * Removed Element iOS compatibility hack from non-sticker files. * Made max_initial_member_sync work for non-supergroups too (thanks to @tadzik in #680). * SQLite is now supported for the crypto database. Pickle is no longer supported. If you were using pickle, the bridge will create a new e2ee session and store the data in SQLite this time. Fixed * Fixed generating reply fallbacks to encrypted messages. * Fixed chat sync failing if the member list contained banned users. v0.11.0 * Switched from SQLAlchemy to asyncpg/aiosqlite. * The default database is now Postgres. If using SQLite, make sure you install the sqlite optional dependency. * Alembic is no longer used, schema migrations happen automatically on startup. * The automatic database migration requires you to be on the latest legacy database version. If you were running any v0.10.x version, you should be on the latest version already. Otherwise, update to v0.10.2 first, upgrade the database with alembic, then upgrade to v0.11.0 (or higher). * Added support for contact messages. * Added support for Telegram sponsored messages in channels. * Only applies to broadcast channels with 1000+ members (as per https://t.me/durov/172). * Only applies if you're using puppeting with a normal user account, because bots can't get sponsored messages. * Fixed non-supergroup member sync incorrectly kicking one user from the Matrix side if there was no limit on the number of members to sync (broke in v0.10.2). * Updated animated sticker conversion to support lottieconverter r0.2 (thanks to @sot-tech in #694). * Updated Docker image to Alpine 3.15. * Formatted all code using black and isort. v0.11.1 * Added support for message reactions. * Added support for spoiler text. * Improved support for voice messages. * Improved color of blue text from Telegram to be more readable on dark themes. * Fixed syncing contacts throwing an error for new accounts. * Fixed migrating pre-v0.11 legacy databases if the database schema had been corrupted (e.g. by using 3rd party tools for SQLite -> Postgres migration). * Fixed converting animated stickers to webm with >33 FPS. * Fixed a bug in v0.11.0 that broke mentioning users in groups (thanks to @dfuchss in #724).
Diffstat (limited to 'chat')
-rw-r--r--chat/mautrix-telegram/Makefile21
-rw-r--r--chat/mautrix-telegram/PLIST142
-rw-r--r--chat/mautrix-telegram/distinfo8
3 files changed, 54 insertions, 117 deletions
diff --git a/chat/mautrix-telegram/Makefile b/chat/mautrix-telegram/Makefile
index d91c56627bf..2ba824f0e07 100644
--- a/chat/mautrix-telegram/Makefile
+++ b/chat/mautrix-telegram/Makefile
@@ -1,7 +1,6 @@
-# $NetBSD: Makefile,v 1.9 2022/01/15 19:10:12 nia Exp $
+# $NetBSD: Makefile,v 1.10 2022/01/15 20:22:06 js Exp $
-DISTNAME= mautrix-telegram-0.10.1
-PKGREVISION= 1
+DISTNAME= mautrix-telegram-0.11.1
CATEGORIES= chat python
MASTER_SITES= ${MASTER_SITE_GITHUB:=tulir/}
GITHUB_TAG= v${PKGVERSION_NOREV}
@@ -15,22 +14,20 @@ LICENSE= gnu-agpl-v3
# pytest-runner
TOOL_DEPENDS+= ${PYPKGPREFIX}-test-runner-[0-9]*:../../devel/py-test-runner
-DEPENDS+= ${PYPKGPREFIX}-sqlalchemy>=1.2<2:../../databases/py-sqlalchemy
-DEPENDS+= ${PYPKGPREFIX}-alembic>=1<2:../../databases/py-alembic
DEPENDS+= ${PYPKGPREFIX}-ruamel-yaml>=0.15.35:../../devel/py-ruamel-yaml
DEPENDS+= ${PYPKGPREFIX}-magic>=0.4<0.5:../../sysutils/py-magic
DEPENDS+= ${PYPKGPREFIX}-commonmark>=0.8<0.10:../../textproc/py-commonmark
DEPENDS+= ${PYPKGPREFIX}-aiohttp>=3<4:../../www/py-aiohttp
DEPENDS+= ${PYPKGPREFIX}-yarl>=1<2:../../www/py-yarl
-DEPENDS+= ${PYPKGPREFIX}-mautrix>=0.10.4:../../chat/py-mautrix
-DEPENDS+= ${PYPKGPREFIX}-telethon>=1.22<24:../../chat/py-telethon
-DEPENDS+= ${PYPKGPREFIX}-telethon-session-sqlalchemy>=0.2.14<0.3:../../chat/py-telethon-session-sqlalchemy
+DEPENDS+= ${PYPKGPREFIX}-mautrix>=0.14.3<0.15:../../chat/py-mautrix
+DEPENDS+= ${PYPKGPREFIX}-telethon>=1.24<1.25:../../chat/py-telethon
+DEPENDS+= ${PYPKGPREFIX}-asyncpg>=0.20<0.26:../../databases/py-asyncpg
+DEPENDS+= ${PYPKGPREFIX}-mako>=1<2:../../devel/py-mako
# webp_convert and qr_login
DEPENDS+= ${PYPKGPREFIX}-Pillow>=4<9:../../graphics/py-Pillow
# qr_login
DEPENDS+= ${PYPKGPREFIX}-qrcode>=6<7:../../graphics/py-qrcode
-USE_TOOLS+= pax
USE_LANGUAGES= # none
PYTHON_VERSIONS_INCOMPATIBLE= 27
@@ -40,11 +37,7 @@ EGG_NAME= mautrix_telegram-${PKGVERSION_NOREV}+dev.unknown
INSTALLATION_DIRS+= share/mautrix-telegram
post-install:
- mv ${DESTDIR}${PREFIX}/alembic ${DESTDIR}${PREFIX}/alembic.ini \
- ${DESTDIR}${PREFIX}/example-config.yaml \
- ${DESTDIR}${PREFIX}/share/mautrix-telegram/
- cd ${DESTDIR}${PREFIX}/${PYSITELIB}/mautrix_telegram && \
- ${PAX} -wr example-config.yaml \
+ mv ${DESTDIR}${PREFIX}/example-config.yaml \
${DESTDIR}${PREFIX}/share/mautrix-telegram/
.include "../../lang/python/egg.mk"
diff --git a/chat/mautrix-telegram/PLIST b/chat/mautrix-telegram/PLIST
index 609c4d3dc08..99d48a78a55 100644
--- a/chat/mautrix-telegram/PLIST
+++ b/chat/mautrix-telegram/PLIST
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.2 2021/09/14 20:01:48 js Exp $
+@comment $NetBSD: PLIST,v 1.3 2022/01/15 20:22:06 js Exp $
${PYSITELIB}/${EGG_INFODIR}/PKG-INFO
${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt
${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt
@@ -67,9 +67,6 @@ ${PYSITELIB}/mautrix_telegram/commands/telegram/misc.pyo
${PYSITELIB}/mautrix_telegram/config.py
${PYSITELIB}/mautrix_telegram/config.pyc
${PYSITELIB}/mautrix_telegram/config.pyo
-${PYSITELIB}/mautrix_telegram/context.py
-${PYSITELIB}/mautrix_telegram/context.pyc
-${PYSITELIB}/mautrix_telegram/context.pyo
${PYSITELIB}/mautrix_telegram/db/__init__.py
${PYSITELIB}/mautrix_telegram/db/__init__.pyc
${PYSITELIB}/mautrix_telegram/db/__init__.pyo
@@ -85,9 +82,27 @@ ${PYSITELIB}/mautrix_telegram/db/portal.pyo
${PYSITELIB}/mautrix_telegram/db/puppet.py
${PYSITELIB}/mautrix_telegram/db/puppet.pyc
${PYSITELIB}/mautrix_telegram/db/puppet.pyo
+${PYSITELIB}/mautrix_telegram/db/reaction.py
+${PYSITELIB}/mautrix_telegram/db/reaction.pyc
+${PYSITELIB}/mautrix_telegram/db/reaction.pyo
${PYSITELIB}/mautrix_telegram/db/telegram_file.py
${PYSITELIB}/mautrix_telegram/db/telegram_file.pyc
${PYSITELIB}/mautrix_telegram/db/telegram_file.pyo
+${PYSITELIB}/mautrix_telegram/db/telethon_session.py
+${PYSITELIB}/mautrix_telegram/db/telethon_session.pyc
+${PYSITELIB}/mautrix_telegram/db/telethon_session.pyo
+${PYSITELIB}/mautrix_telegram/db/upgrade/__init__.py
+${PYSITELIB}/mautrix_telegram/db/upgrade/__init__.pyc
+${PYSITELIB}/mautrix_telegram/db/upgrade/__init__.pyo
+${PYSITELIB}/mautrix_telegram/db/upgrade/v01_initial_revision.py
+${PYSITELIB}/mautrix_telegram/db/upgrade/v01_initial_revision.pyc
+${PYSITELIB}/mautrix_telegram/db/upgrade/v01_initial_revision.pyo
+${PYSITELIB}/mautrix_telegram/db/upgrade/v02_sponsored_events.py
+${PYSITELIB}/mautrix_telegram/db/upgrade/v02_sponsored_events.pyc
+${PYSITELIB}/mautrix_telegram/db/upgrade/v02_sponsored_events.pyo
+${PYSITELIB}/mautrix_telegram/db/upgrade/v03_reactions.py
+${PYSITELIB}/mautrix_telegram/db/upgrade/v03_reactions.pyc
+${PYSITELIB}/mautrix_telegram/db/upgrade/v03_reactions.pyo
${PYSITELIB}/mautrix_telegram/db/user.py
${PYSITELIB}/mautrix_telegram/db/user.pyc
${PYSITELIB}/mautrix_telegram/db/user.pyo
@@ -113,48 +128,33 @@ ${PYSITELIB}/mautrix_telegram/get_version.pyo
${PYSITELIB}/mautrix_telegram/matrix.py
${PYSITELIB}/mautrix_telegram/matrix.pyc
${PYSITELIB}/mautrix_telegram/matrix.pyo
-${PYSITELIB}/mautrix_telegram/portal/__init__.py
-${PYSITELIB}/mautrix_telegram/portal/__init__.pyc
-${PYSITELIB}/mautrix_telegram/portal/__init__.pyo
-${PYSITELIB}/mautrix_telegram/portal/base.py
-${PYSITELIB}/mautrix_telegram/portal/base.pyc
-${PYSITELIB}/mautrix_telegram/portal/base.pyo
-${PYSITELIB}/mautrix_telegram/portal/deduplication.py
-${PYSITELIB}/mautrix_telegram/portal/deduplication.pyc
-${PYSITELIB}/mautrix_telegram/portal/deduplication.pyo
-${PYSITELIB}/mautrix_telegram/portal/matrix.py
-${PYSITELIB}/mautrix_telegram/portal/matrix.pyc
-${PYSITELIB}/mautrix_telegram/portal/matrix.pyo
-${PYSITELIB}/mautrix_telegram/portal/metadata.py
-${PYSITELIB}/mautrix_telegram/portal/metadata.pyc
-${PYSITELIB}/mautrix_telegram/portal/metadata.pyo
-${PYSITELIB}/mautrix_telegram/portal/send_lock.py
-${PYSITELIB}/mautrix_telegram/portal/send_lock.pyc
-${PYSITELIB}/mautrix_telegram/portal/send_lock.pyo
-${PYSITELIB}/mautrix_telegram/portal/telegram.py
-${PYSITELIB}/mautrix_telegram/portal/telegram.pyc
-${PYSITELIB}/mautrix_telegram/portal/telegram.pyo
+${PYSITELIB}/mautrix_telegram/portal.py
+${PYSITELIB}/mautrix_telegram/portal.pyc
+${PYSITELIB}/mautrix_telegram/portal.pyo
+${PYSITELIB}/mautrix_telegram/portal_util/__init__.py
+${PYSITELIB}/mautrix_telegram/portal_util/__init__.pyc
+${PYSITELIB}/mautrix_telegram/portal_util/__init__.pyo
+${PYSITELIB}/mautrix_telegram/portal_util/deduplication.py
+${PYSITELIB}/mautrix_telegram/portal_util/deduplication.pyc
+${PYSITELIB}/mautrix_telegram/portal_util/deduplication.pyo
+${PYSITELIB}/mautrix_telegram/portal_util/media_fallback.py
+${PYSITELIB}/mautrix_telegram/portal_util/media_fallback.pyc
+${PYSITELIB}/mautrix_telegram/portal_util/media_fallback.pyo
+${PYSITELIB}/mautrix_telegram/portal_util/participants.py
+${PYSITELIB}/mautrix_telegram/portal_util/participants.pyc
+${PYSITELIB}/mautrix_telegram/portal_util/participants.pyo
+${PYSITELIB}/mautrix_telegram/portal_util/power_levels.py
+${PYSITELIB}/mautrix_telegram/portal_util/power_levels.pyc
+${PYSITELIB}/mautrix_telegram/portal_util/power_levels.pyo
+${PYSITELIB}/mautrix_telegram/portal_util/send_lock.py
+${PYSITELIB}/mautrix_telegram/portal_util/send_lock.pyc
+${PYSITELIB}/mautrix_telegram/portal_util/send_lock.pyo
+${PYSITELIB}/mautrix_telegram/portal_util/sponsored_message.py
+${PYSITELIB}/mautrix_telegram/portal_util/sponsored_message.pyc
+${PYSITELIB}/mautrix_telegram/portal_util/sponsored_message.pyo
${PYSITELIB}/mautrix_telegram/puppet.py
${PYSITELIB}/mautrix_telegram/puppet.pyc
${PYSITELIB}/mautrix_telegram/puppet.pyo
-${PYSITELIB}/mautrix_telegram/scripts/__init__.py
-${PYSITELIB}/mautrix_telegram/scripts/__init__.pyc
-${PYSITELIB}/mautrix_telegram/scripts/__init__.pyo
-${PYSITELIB}/mautrix_telegram/scripts/dbms_migrate/__init__.py
-${PYSITELIB}/mautrix_telegram/scripts/dbms_migrate/__init__.pyc
-${PYSITELIB}/mautrix_telegram/scripts/dbms_migrate/__init__.pyo
-${PYSITELIB}/mautrix_telegram/scripts/dbms_migrate/__main__.py
-${PYSITELIB}/mautrix_telegram/scripts/dbms_migrate/__main__.pyc
-${PYSITELIB}/mautrix_telegram/scripts/dbms_migrate/__main__.pyo
-${PYSITELIB}/mautrix_telegram/scripts/telematrix_import/__init__.py
-${PYSITELIB}/mautrix_telegram/scripts/telematrix_import/__init__.pyc
-${PYSITELIB}/mautrix_telegram/scripts/telematrix_import/__init__.pyo
-${PYSITELIB}/mautrix_telegram/scripts/telematrix_import/__main__.py
-${PYSITELIB}/mautrix_telegram/scripts/telematrix_import/__main__.pyc
-${PYSITELIB}/mautrix_telegram/scripts/telematrix_import/__main__.pyo
-${PYSITELIB}/mautrix_telegram/scripts/telematrix_import/models.py
-${PYSITELIB}/mautrix_telegram/scripts/telematrix_import/models.pyc
-${PYSITELIB}/mautrix_telegram/scripts/telematrix_import/models.pyo
${PYSITELIB}/mautrix_telegram/tgclient.py
${PYSITELIB}/mautrix_telegram/tgclient.pyc
${PYSITELIB}/mautrix_telegram/tgclient.pyo
@@ -173,9 +173,6 @@ ${PYSITELIB}/mautrix_telegram/util/color_log.pyo
${PYSITELIB}/mautrix_telegram/util/file_transfer.py
${PYSITELIB}/mautrix_telegram/util/file_transfer.pyc
${PYSITELIB}/mautrix_telegram/util/file_transfer.pyo
-${PYSITELIB}/mautrix_telegram/util/format_duration.py
-${PYSITELIB}/mautrix_telegram/util/format_duration.pyc
-${PYSITELIB}/mautrix_telegram/util/format_duration.pyo
${PYSITELIB}/mautrix_telegram/util/parallel_file_transfer.py
${PYSITELIB}/mautrix_telegram/util/parallel_file_transfer.pyc
${PYSITELIB}/mautrix_telegram/util/parallel_file_transfer.pyo
@@ -210,57 +207,4 @@ ${PYSITELIB}/mautrix_telegram/web/public/favicon.png
${PYSITELIB}/mautrix_telegram/web/public/login.css
${PYSITELIB}/mautrix_telegram/web/public/login.html.mako
${PYSITELIB}/mautrix_telegram/web/public/matrix-login.html.mako
-${PYSITELIB}/tests/__init__.py
-${PYSITELIB}/tests/__init__.pyc
-${PYSITELIB}/tests/__init__.pyo
-${PYSITELIB}/tests/commands/__init__.py
-${PYSITELIB}/tests/commands/__init__.pyc
-${PYSITELIB}/tests/commands/__init__.pyo
-${PYSITELIB}/tests/commands/test_handler.py
-${PYSITELIB}/tests/commands/test_handler.pyc
-${PYSITELIB}/tests/commands/test_handler.pyo
-${PYSITELIB}/tests/conftest.py
-${PYSITELIB}/tests/conftest.pyc
-${PYSITELIB}/tests/conftest.pyo
-${PYSITELIB}/tests/utils/__init__.py
-${PYSITELIB}/tests/utils/__init__.pyc
-${PYSITELIB}/tests/utils/__init__.pyo
-${PYSITELIB}/tests/utils/fixtures.py
-${PYSITELIB}/tests/utils/fixtures.pyc
-${PYSITELIB}/tests/utils/fixtures.pyo
-${PYSITELIB}/tests/utils/helpers.py
-${PYSITELIB}/tests/utils/helpers.pyc
-${PYSITELIB}/tests/utils/helpers.pyo
-share/mautrix-telegram/alembic.ini
-share/mautrix-telegram/alembic/env.py
-share/mautrix-telegram/alembic/versions/17574c57f3f8_add_disable_updates_field_for_puppets.py
-share/mautrix-telegram/alembic/versions/1b241f7e8530_add_telegramfile_table.py
-share/mautrix-telegram/alembic/versions/1fa46383a9d3_add_is_bot_field_to_puppets.py
-share/mautrix-telegram/alembic/versions/2228d49c383f_add_cascade_rules_to_userportal.py
-share/mautrix-telegram/alembic/versions/24f31fc8a72b_add_encrypted_field_for_portals.py
-share/mautrix-telegram/alembic/versions/30eca60587f1_add_megagroup_field_to_portals.py
-share/mautrix-telegram/alembic/versions/3e3745baa458_store_matrix_avatar_url_in_database.py
-share/mautrix-telegram/alembic/versions/4f7d7ed5792a_switch_mx_user_profile_to_native_enum.py
-share/mautrix-telegram/alembic/versions/501dad2868bc_move_sessions_to_main_database.py
-share/mautrix-telegram/alembic/versions/6ca3d74d51e4_move_state_store_to_main_database.py
-share/mautrix-telegram/alembic/versions/7d47d84380b6_add_timestamp_to_telegramfile.py
-share/mautrix-telegram/alembic/versions/7de69cf5809e_add_matrix_redaction_state_to_message_.py
-share/mautrix-telegram/alembic/versions/888275d58e57_add_double_puppet_base_url_to_puppet_.py
-share/mautrix-telegram/alembic/versions/97d2a942bcf8_initial_revision.py
-share/mautrix-telegram/alembic/versions/990f4395afc6_store_displayname_contact_status_in_.py
-share/mautrix-telegram/alembic/versions/9e9c89b0b877_add_edit_index_to_messages.py
-share/mautrix-telegram/alembic/versions/a328bf4f0932_store_encryption_state_event_in_db.py
-share/mautrix-telegram/alembic/versions/a7c04a56041b_store_custom_puppet_next_batch_in_.py
-share/mautrix-telegram/alembic/versions/a9119be92164_add_phone_number_field_to_users.py
-share/mautrix-telegram/alembic/versions/b54929c22c86_add_portal_specific_config.py
-share/mautrix-telegram/alembic/versions/bcfefa1f1299_add_displayname_source_fields_for_.py
-share/mautrix-telegram/alembic/versions/bdadd173ee02_update_telethon_update_state_table.py
-share/mautrix-telegram/alembic/versions/bfc0a39bfe02_store_displayname_quality_in_puppet_.py
-share/mautrix-telegram/alembic/versions/ccbaff858240_switch_to_mautrix_python_crypto.py
-share/mautrix-telegram/alembic/versions/cfc972368e50_add_metadata_to_telegramfile.py
-share/mautrix-telegram/alembic/versions/d3c922a6acd2_add_decryption_info_field_for_.py
-share/mautrix-telegram/alembic/versions/d5f7b8b4b456_add_access_token_and_custom_mxid_fields_.py
-share/mautrix-telegram/alembic/versions/dff56c93da8d_add_matrix_nio_state_store_to_main_db.py
-share/mautrix-telegram/alembic/versions/ec1d3dcc77e9_switch_telegram_ids_to_bigints.py
-share/mautrix-telegram/alembic/versions/eeaf0dae87ce_add_telethon_update_state_table.py
share/mautrix-telegram/example-config.yaml
diff --git a/chat/mautrix-telegram/distinfo b/chat/mautrix-telegram/distinfo
index 0064923e647..bc21ae7f6f8 100644
--- a/chat/mautrix-telegram/distinfo
+++ b/chat/mautrix-telegram/distinfo
@@ -1,5 +1,5 @@
-$NetBSD: distinfo,v 1.4 2021/10/26 10:05:20 nia Exp $
+$NetBSD: distinfo,v 1.5 2022/01/15 20:22:06 js Exp $
-BLAKE2s (mautrix-telegram-0.10.1.tar.gz) = 5d250cadad42459bc74e2adc6b6c2464dd8296064d8b85261b01d0c8a9f23718
-SHA512 (mautrix-telegram-0.10.1.tar.gz) = 916653e4b59bfaee3509b53735d66a1144895159fedaee24e5b82ef589f73eadc08d970ab39ee25d666d0dd3bb5451f08ef92ea836a5d6fbed2a6f3732318670
-Size (mautrix-telegram-0.10.1.tar.gz) = 690313 bytes
+BLAKE2s (mautrix-telegram-0.11.1.tar.gz) = 9a13327174f1c4120913bebb97f050b3fae0d12f8b4613d4bce66230c3f51240
+SHA512 (mautrix-telegram-0.11.1.tar.gz) = 699bd0dd7b472bdb0329307ee309b3ee98d09dc2501d9544ab6e6031ec88e4ab9b422d77ecefdfa0a573e3e8726d5f1cb10cb87c94cf0e452f32564d79ca4f9d
+Size (mautrix-telegram-0.11.1.tar.gz) = 688634 bytes