From 26d9aaa5b1e564fc3336c19e8acd953d54046517 Mon Sep 17 00:00:00 2001 From: Fabio Manganiello Date: Wed, 22 Feb 2023 00:25:57 +0100 Subject: [PATCH] (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',