From 3e82f118b7f7d8094a7e65260a3280a13c4b4df1 Mon Sep 17 00:00:00 2001 From: Mohammed Naser Date: Fri, 31 Jan 2020 08:47:03 +0100 Subject: [PATCH] Use psycopg2-binary for test-requirements In order to run PostgreSQL tests, we need to have the PostgreSQL dependency available on the system. We currently use the dependency which forces building the Python package from source. That makes running the tests locally non-trivial and requiring the installation of packages locally. This patch moves that dependency to the binary one so that we can simply deploy a binary artifact during CI, which simplifies the abilitiy to run those tests. Change-Id: I33369712370b86feca843f118f35063d0993adcb --- lower-constraints.txt | 2 +- test-requirements.txt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lower-constraints.txt b/lower-constraints.txt index 300322f27c..a379794401 100644 --- a/lower-constraints.txt +++ b/lower-constraints.txt @@ -89,7 +89,7 @@ pika==0.10.0 pika-pool==0.1.3 prettytable==0.7.2 psutil==5.4.3 -psycopg2==2.6.2 +psycopg2-binary==2.6.2 pyasn1==0.4.2 pycadf==2.7.0 pycparser==2.18 diff --git a/test-requirements.txt b/test-requirements.txt index 3737aa35c1..4cc78ad9a3 100644 --- a/test-requirements.txt +++ b/test-requirements.txt @@ -17,7 +17,7 @@ oslotest>=3.2.0 # Apache-2.0 # by oslo_db lib for running MySQL and PostgreSQL DB migration tests. # See https://docs.openstack.org/oslo.db/latest/contributor/index.html#how-to-run-unit-tests PyMySQL>=0.7.6 # MIT License -psycopg2>=2.6.2 # LGPL/ZPL +psycopg2-binary>=2.6.2 # LGPL/ZPL requests-mock>=1.2.0 # Apache-2.0 os-api-ref>=1.4.0 # Apache-2.0