From 1d44f896443f4c21407dac194de966a063414d00 Mon Sep 17 00:00:00 2001 From: Radoslav Bodo Date: Fri, 28 Feb 2020 17:19:16 +0100 Subject: [PATCH 1/2] fix postgresql docker startup --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 27ab662..6cfde72 100644 --- a/Makefile +++ b/Makefile @@ -29,7 +29,7 @@ mysql-container: postgres-container: docker run -d --rm --name postgres-sqlalchemy-filters -p 5432:5432 \ -e POSTGRES_USER=postgres \ - -e POSTGRES_PASSWORD= \ + -e POSTGRES_HOST_AUTH_METHOD=trust \ -e POSTGRES_DB=test_sqlalchemy_filters \ -e POSTGRES_INITDB_ARGS="--encoding=UTF8 --lc-collate=en_US.utf8 --lc-ctype=en_US.utf8" \ postgres:$(POSTGRES_VERSION) From 49d848f6cec04e699b16409c13a1135ab7bcf239 Mon Sep 17 00:00:00 2001 From: Radoslav Bodo Date: Fri, 28 Feb 2020 16:29:14 +0100 Subject: [PATCH 2/2] Resolve py3.8 deprecation warning ``` python3.7/site-packages/sqlalchemy_filters/filters.py:2: DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated, and in 3.8 it will stop working from collections import Iterable, namedtuple ``` --- sqlalchemy_filters/filters.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/sqlalchemy_filters/filters.py b/sqlalchemy_filters/filters.py index 0c1a15f..f81816c 100644 --- a/sqlalchemy_filters/filters.py +++ b/sqlalchemy_filters/filters.py @@ -1,5 +1,10 @@ # -*- coding: utf-8 -*- -from collections import Iterable, namedtuple +from collections import namedtuple +try: + from collections.abc import Iterable +except ImportError: # pragma: no cover + # For python2 capability. + from collections import Iterable try: from inspect import signature except ImportError: # pragma: no cover