From e3e93ea748a0da36d492c690ef93ab2de8109125 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Thu, 10 Mar 2016 22:27:21 +0100 Subject: [PATCH] Update required version of psycopg2 With issue4949, we need context management on connection and cursor, this was introduced in psycopg2 version 2.5. review24911002 --- doc/topics/install.rst | 2 +- setup.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/topics/install.rst b/doc/topics/install.rst index 340aef2989..ea07574ed3 100644 --- a/doc/topics/install.rst +++ b/doc/topics/install.rst @@ -14,7 +14,7 @@ Prerequisites * python-dateutil (http://labix.org/python-dateutil) * polib (https://bitbucket.org/izi/polib/wiki/Home) * python-sql 0.4 or later (http://code.google.com/p/python-sql/) - * Optional: psycopg 2 or later (http://www.initd.org/) + * Optional: psycopg 2.5.0 or later (http://www.initd.org/) * Optional: psycopg2cffi 2.5.0 or later (http://github.com/chtd/psycopg2cffi) * Optional: MySQL-python (http://sourceforge.net/projects/mysql-python/) diff --git a/setup.py b/setup.py index 4efa071aca..a1c6d7524e 100644 --- a/setup.py +++ b/setup.py @@ -35,7 +35,7 @@ if minor_version % 2: if platform.python_implementation() == 'PyPy': pg_require = ['psycopg2cffi >= 2.5'] else: - pg_require = ['psycopg2 >= 2.0'] + pg_require = ['psycopg2 >= 2.5'] setup(name=name, version=version,