From c23e896057fa45fc8d92ee42f01cc3cb23e671d4 Mon Sep 17 00:00:00 2001 From: "H. Shay" Date: Tue, 16 May 2023 13:27:58 -0700 Subject: [PATCH 1/4] Update version 1.1.1 -> 1.1.2 --- setup.cfg | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.cfg b/setup.cfg index ed49937..22aa431 100644 --- a/setup.cfg +++ b/setup.cfg @@ -3,7 +3,7 @@ name = synapse_auto_accept_invite description = "Synapse module to automatically accept invites" long_description = file: README.md long_description_content_type=text/markdown -version = 1.1.1 +version = 1.1.2 classifiers= Development Status :: 5 - Production/Stable License :: OSI Approved :: Apache Software License From 4c89c3efcac618690e38025d7ad330bc2dfcccff Mon Sep 17 00:00:00 2001 From: "H. Shay" Date: Thu, 18 May 2023 08:25:15 -0700 Subject: [PATCH 2/4] update compatibility --- README.md | 2 +- setup.cfg | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 98c9d08..4401cfa 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ Synapse module to automatically accept invites. -Compatible with Synapse v1.57.0 and later. +Compatible with Synapse v1.84.0 and later. ## Installation diff --git a/setup.cfg b/setup.cfg index 22aa431..d455ff2 100644 --- a/setup.cfg +++ b/setup.cfg @@ -17,7 +17,7 @@ python_requires = >= 3.7 [options.extras_require] dev = # for tests - matrix-synapse >= 1.57.0 + matrix-synapse >= 1.84.0 tox twisted aiounittest From 5ca986463538a9ddb1cdfe27e395d75e3e6e1c72 Mon Sep 17 00:00:00 2001 From: "H. Shay" Date: Tue, 23 May 2023 11:33:28 -0700 Subject: [PATCH 3/4] fix mypy error --- tests/__init__.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/__init__.py b/tests/__init__.py index 14b39b8..121fc1a 100644 --- a/tests/__init__.py +++ b/tests/__init__.py @@ -76,6 +76,7 @@ def create_module( config = InviteAutoAccepter.parse_config(config_override) + run_as_background_process = Mock() run_as_background_process.side_effect = ( lambda desc, func, *args, bg_start_span, **kwargs: asyncio.create_task( func(*args, **kwargs) From 1f4fe577d64d628116e38c92ad7588b95d01631a Mon Sep 17 00:00:00 2001 From: "H. Shay" Date: Tue, 23 May 2023 11:36:51 -0700 Subject: [PATCH 4/4] lint --- tests/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/__init__.py b/tests/__init__.py index 121fc1a..abb3ad5 100644 --- a/tests/__init__.py +++ b/tests/__init__.py @@ -17,7 +17,7 @@ from unittest.mock import Mock import attr -from synapse.module_api import ModuleApi, run_as_background_process +from synapse.module_api import ModuleApi from synapse_auto_accept_invite import InviteAutoAccepter