From b4627ecd049e02247525310a86458f07a2a5e3e2 Mon Sep 17 00:00:00 2001 From: Fabio Manganiello Date: Mon, 20 Feb 2023 20:35:33 +0100 Subject: [PATCH 1/4] Removed deprecated use_unicode parameter from MPDClient --- platypush/plugins/music/mpd/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platypush/plugins/music/mpd/__init__.py b/platypush/plugins/music/mpd/__init__.py index 778a2d52..e5d43244 100644 --- a/platypush/plugins/music/mpd/__init__.py +++ b/platypush/plugins/music/mpd/__init__.py @@ -53,7 +53,7 @@ class MusicMpdPlugin(MusicPlugin): while n_tries > 0: try: n_tries -= 1 - self.client = mpd.MPDClient(use_unicode=True) + self.client = mpd.MPDClient() self.client.connect(self.host, self.port) return self.client except Exception as e: From 26d9aaa5b1e564fc3336c19e8acd953d54046517 Mon Sep 17 00:00:00 2001 From: Fabio Manganiello Date: Wed, 22 Feb 2023 00:25:57 +0100 Subject: [PATCH 2/4] (Temporarily) specify `sqlalchemy<2.0.0`. SQLAlchemy 2 has introduced several breaking changes that can break several things in the application - especially where the code uses `connection.execute()` with raw SQL statements. We need to temporarily force the installation of versions from the 1.x branch, while migrating the existing code to the new version. --- requirements.txt | 4 ++-- setup.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/requirements.txt b/requirements.txt index 3381ad9b..b31f4888 100644 --- a/requirements.txt +++ b/requirements.txt @@ -12,10 +12,10 @@ python-dateutil tz frozendict requests -sqlalchemy +sqlalchemy<2.0.0 bcrypt rsa -zeroconf +zeroconf>=0.27.0 paho-mqtt websocket-client croniter diff --git a/setup.py b/setup.py index e9031622..5545d498 100755 --- a/setup.py +++ b/setup.py @@ -57,7 +57,7 @@ setup( 'redis', 'requests', 'croniter', - 'sqlalchemy', + 'sqlalchemy<2.0.0', 'websockets', 'websocket-client', 'wheel', From 2b8a5fee885e754460a30b7f69ac7f3da3eedb92 Mon Sep 17 00:00:00 2001 From: Fabio Manganiello Date: Wed, 22 Feb 2023 00:32:39 +0100 Subject: [PATCH 3/4] Updated CHANGELOG --- CHANGELOG.md | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 5b49bb5e..19a982e4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,18 +4,24 @@ All notable changes to this project will be documented in this file. Given the high speed of development in the first phase, changes are being reported only starting from v0.20.2. -## [Unreleased] +## [0.24.5] - 2023-02-22 ### Added - Added `hid` plugin to support discoverability and data interaction with generic HID devices - like Bluetooth/USB peripherals, joysticks, dongles and any other type of devices that supports the HID interface. + +- Added `timeout` parameter to `websocket.send` to prevent messages sent on a + non-responsive websocket from getting the websocket loop stuck ### Fixed - Running the Zeroconf registration logic in another thread in `backend.http`, so failures in the Zeroconf logic don't affect the startup of the web server. + +- (Temporarily) introduced `sqlalchemy < 2.0.0` as a requirement - a PR with a + migration to the new stable version of SQLAlchemy is in TODO. ## [0.24.4] - 2022-12-20 From c645ce6bb86b4d921cecea289139e791ce7fbe0f Mon Sep 17 00:00:00 2001 From: Fabio Manganiello Date: Wed, 22 Feb 2023 00:32:57 +0100 Subject: [PATCH 4/4] =?UTF-8?q?Bump=20version:=200.24.4=20=E2=86=92=200.24?= =?UTF-8?q?.5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- platypush/__init__.py | 2 +- setup.cfg | 2 +- setup.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/platypush/__init__.py b/platypush/__init__.py index e521363e..b3be80c5 100644 --- a/platypush/__init__.py +++ b/platypush/__init__.py @@ -23,7 +23,7 @@ from .message.response import Response from .utils import set_thread_name, get_enabled_plugins __author__ = 'Fabio Manganiello ' -__version__ = '0.24.4' +__version__ = '0.24.5' logger = logging.getLogger('platypush') diff --git a/setup.cfg b/setup.cfg index 03298446..91c93fd1 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,5 +1,5 @@ [bumpversion] -current_version = 0.24.4 +current_version = 0.24.5 commit = True tag = True diff --git a/setup.py b/setup.py index 5545d498..fb44a3d0 100755 --- a/setup.py +++ b/setup.py @@ -28,7 +28,7 @@ backend = pkg_files('platypush/backend') setup( name="platypush", - version="0.24.4", + version="0.24.5", author="Fabio Manganiello", author_email="info@fabiomanganiello.com", description="Platypush service",