From 2eceb3c8ab18e7151f27e8b756ceeaad7ad46b2d Mon Sep 17 00:00:00 2001 From: Kaifeng Wang Date: Thu, 14 Mar 2019 13:55:52 +0800 Subject: [PATCH] Fix lower-constraints job lower-constraints job is broken due to fail to install psycopg. Spotted log: http://logs.openstack.org/02/642402/6/check/openstack-tox-lower-constraints/ca317fe/job-output.txt.gz#_2019-03-14_01_51_01_006156 Add libpq-dev to the bindep and bump psycopg version to >= 2.7 as evidence shows it has a bug to support PostgreSQL >= 10.0 [1] [1] https://github.com/getredash/redash/pull/2111 Change-Id: I1d5f0dab41638be1df9d63ede267f5a6d9f8c566 --- bindep.txt | 1 + lower-constraints.txt | 2 +- test-requirements.txt | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/bindep.txt b/bindep.txt index 5ed1824863..01b128cbcc 100644 --- a/bindep.txt +++ b/bindep.txt @@ -47,6 +47,7 @@ python3-devel [platform:rpm test] build-essential [platform:dpkg test] libssl-dev [platform:dpkg test] # these are needed by infra for python-* jobs +libpq-dev [platform:dpkg test] postgresql postgresql-client [platform:dpkg] # postgresql-devel [platform:rpm] diff --git a/lower-constraints.txt b/lower-constraints.txt index effe77bc6a..cb83f1de9f 100644 --- a/lower-constraints.txt +++ b/lower-constraints.txt @@ -98,7 +98,7 @@ pika==0.10.0 Pillow==5.0.0 prettytable==0.7.2 psutil==3.2.2 -psycopg2==2.6.2 +psycopg2==2.7.3 pycadf==2.7.0 pycodestyle==2.3.1 pycparser==2.18 diff --git a/test-requirements.txt b/test-requirements.txt index 80ff780353..373d2a4da9 100644 --- a/test-requirements.txt +++ b/test-requirements.txt @@ -11,7 +11,7 @@ PyMySQL>=0.7.6 # MIT License iso8601>=0.1.11 # MIT oslotest>=3.2.0 # Apache-2.0 stestr>=1.0.0 # Apache-2.0 -psycopg2>=2.6.2 # LGPL/ZPL +psycopg2>=2.7.3 # LGPL/ZPL testtools>=2.2.0 # MIT testresources>=2.0.0 # Apache-2.0/BSD testscenarios>=0.4 # Apache-2.0/BSD