From 722fe826819c468ed6d8e0f73f58480d2c289bc3 Mon Sep 17 00:00:00 2001 From: Daniel Fortunov Date: Tue, 5 Feb 2019 06:58:23 +0000 Subject: [PATCH] Pin pg8000 to version <= 1.12.4 on Python 2 Because pg8000 Version 1.13.0, released on 2019-02-01, drops support for Python 2. Fixes #28 --- setup.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 9e95298..cb28fa4 100644 --- a/setup.py +++ b/setup.py @@ -18,9 +18,12 @@ "Topic :: Software Development :: Testing", ] -install_requires = ['testing.common.database >= 1.1.0', 'pg8000 >= 1.10'] +install_requires = ['testing.common.database >= 1.1.0'] if sys.version_info < (2, 7): install_requires.append('unittest2') + install_requires.append('pg8000 >= 1.10, <= 1.12.4') +else: + install_requires.append('pg8000 >= 1.10') setup(