From 53079e3f3a1bb788d01021397581c5226b65a8e3 Mon Sep 17 00:00:00 2001 From: Giovanni Pizzi Date: Tue, 9 Feb 2021 11:54:56 +0100 Subject: [PATCH] Upgrading dependency of sqlalchemy-utils In sqlalchemy-utils 0.35, imports from collections where correctly fixed to import from collections.abc (where this is needed). This removes a few deprecation warnings (claiming that this will not work in py 3.9, even if in reality this will stop working in py 3.10). This partially addresses #4723. We are actually pinning to >=0.36 since in 0.36 a feature was dropped that we were planning to use (see #3845). In this way, we avoid relying on a feature that is removed in later versions (risking to implement something that then we have to remove, or even worse remain "pinned" to an old version of sqlalchemy-utils because nobody has the time to fix it with a different implementation [which is tricky, requires some knowledge of how SqlAlchemy and PosgreSQL work]). --- environment.yml | 2 +- setup.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/environment.yml b/environment.yml index f6c8d5bb50..eadec13b65 100644 --- a/environment.yml +++ b/environment.yml @@ -33,7 +33,7 @@ dependencies: - pyyaml~=5.1.2 - reentry~=1.3 - simplejson~=3.16 -- sqlalchemy-utils~=0.34.2 +- sqlalchemy-utils~=0.36.0 - sqlalchemy>=1.3.10,~=1.3 - tabulate~=0.8.5 - tqdm~=4.45 diff --git a/setup.json b/setup.json index 02c3e18b10..cdb92e3d19 100644 --- a/setup.json +++ b/setup.json @@ -47,7 +47,7 @@ "pyyaml~=5.1.2", "reentry~=1.3", "simplejson~=3.16", - "sqlalchemy-utils~=0.34.2", + "sqlalchemy-utils~=0.36.0", "sqlalchemy~=1.3,>=1.3.10", "tabulate~=0.8.5", "tqdm~=4.45",