From 09747089ecc07c61e66d73a4387f21ba5361c40e Mon Sep 17 00:00:00 2001 From: Julian Hille Date: Sun, 19 Nov 2023 21:15:22 +0100 Subject: [PATCH] Release 1.89.0.0 for synapse 1.89.0 --- CHANGELOG.md | 9 +++++++- matrix_synapse_testutils/server.py | 32 +++++++++++++++++++++++++++- matrix_synapse_testutils/unittest.py | 1 + pyproject.toml | 2 +- 4 files changed, 41 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 28a59c2..fdfeca9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0. ## [Unreleased] +### [1.89.0.0] - 2023-11-19 + +### Updated + +- Synapse to 1.89.0 + ### [1.88.0.0] - 2023-11-19 ### Updated @@ -191,7 +197,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0. - Location of github action workflow file `build.yml` - Fix robustness for matrix-synapse name and packages changes and rebuilding in the same path (updater script) -[unreleased]: https://github.com/conhealth/LifeTime-Desktop/compare/v1.88.0.0...HEAD +[unreleased]: https://github.com/conhealth/LifeTime-Desktop/compare/v1.89.0.0...HEAD +[1.89.0.0]: https://github.com/conhealth/LifeTime-Desktop/compare/v1.88.0.0...v1.89.0.0 [1.88.0.0]: https://github.com/conhealth/LifeTime-Desktop/compare/v1.87.0.0...v1.88.0.0 [1.87.0.0]: https://github.com/conhealth/LifeTime-Desktop/compare/v1.86.0.0...v1.87.0.0 [1.86.0.0]: https://github.com/conhealth/LifeTime-Desktop/compare/v1.85.1.0...v1.86.0.0 diff --git a/matrix_synapse_testutils/server.py b/matrix_synapse_testutils/server.py index ed29287..b816fa3 100644 --- a/matrix_synapse_testutils/server.py +++ b/matrix_synapse_testutils/server.py @@ -53,6 +53,7 @@ IConnector, IConsumer, IHostnameResolver, + IListeningPort, IProducer, IProtocol, IPullProducer, @@ -62,7 +63,7 @@ IResolverSimple, ITransport, ) -from twisted.internet.protocol import ClientFactory, DatagramProtocol +from twisted.internet.protocol import ClientFactory, DatagramProtocol, Factory from twisted.python import threadpool from twisted.python.failure import Failure from twisted.test.proto_helpers import AccumulatingProtocol, MemoryReactorClock @@ -523,6 +524,35 @@ def add_tcp_client_callback( """ self._tcp_callbacks[(host, port)] = callback + def connectUNIX( + self, + address: str, + factory: ClientFactory, + timeout: float = 30, + checkPID: int = 0, + ) -> IConnector: + """ + Unix sockets aren't supported for unit tests yet. Make it obvious to any + developer trying it out that they will need to do some work before being able + to use it in tests. + """ + raise Exception("Unix sockets are not implemented for tests yet, sorry.") + + def listenUNIX( + self, + address: str, + factory: Factory, + backlog: int = 50, + mode: int = 0o666, + wantPID: int = 0, + ) -> IListeningPort: + """ + Unix sockets aren't supported for unit tests yet. Make it obvious to any + developer trying it out that they will need to do some work before being able + to use it in tests. + """ + raise Exception("Unix sockets are not implemented for tests, sorry") + def connectTCP( self, host: str, diff --git a/matrix_synapse_testutils/unittest.py b/matrix_synapse_testutils/unittest.py index ef73be0..bd8ef88 100644 --- a/matrix_synapse_testutils/unittest.py +++ b/matrix_synapse_testutils/unittest.py @@ -358,6 +358,7 @@ def setUp(self) -> None: server_version_string="1", max_request_body_size=4096, reactor=self.reactor, + hs=self.hs, ) from matrix_synapse_testutils.rest.client.utils import RestHelper diff --git a/pyproject.toml b/pyproject.toml index f4e9182..2bdfc46 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -16,7 +16,7 @@ classifiers = [ "Topic :: Software Development" ] dependencies = [ - "matrix-synapse[test]==1.88.0" + "matrix-synapse[test]==1.89.0" ] [project.urls]