From f27e5a3f84521a2e56874b16762cfbe7c8d6d31f Mon Sep 17 00:00:00 2001 From: Daniel Fortunov Date: Tue, 5 Feb 2019 07:11:05 +0000 Subject: [PATCH] Fix Python 2.7 build testing.postgresql uses pg8000 and the latest version of pg8000 drops support for Python 2. Pin the version of pg8000 used on Python 2 until this PR is incorporated into the testing.postgresql project: https://github.com/tk0miya/testing.postgresql/pull/29 (After that, this commit can be reverted) --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 2da6a42..5ee2b38 100644 --- a/setup.py +++ b/setup.py @@ -7,7 +7,7 @@ description='Database transaction manager for psycopg2 database connections with seamless support for nested transactions.', url='https://github.com/asqui/psycopg-nestedtransactions', packages=['nestedtransactions'], - install_requires=['psycopg2'], + install_requires=['psycopg2', 'pg8000<=1.12.4;python_version<"3"'], extras_require=dict( test=['pytest', 'testing.postgresql'] )