From e5daea674f31c85f64d87c675b074b79ec7fc89a Mon Sep 17 00:00:00 2001 From: Roberto Rosario Date: Wed, 15 May 2019 15:57:34 -0400 Subject: [PATCH] Use Python 3 compatible mysqlclient package Signed-off-by: Roberto Rosario --- Makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 3da8d724f0..80096f8c3d 100644 --- a/Makefile +++ b/Makefile @@ -34,7 +34,7 @@ test-launch-postgres: @docker rm -f test-postgres || true @docker volume rm test-postgres || true docker run -d --name test-postgres -p 5432:5432 -v test-postgres:/var/lib/postgresql/data healthcheck/postgres - sudo apt-get install -qq libpq-dev + sudo apt-get install -q libpq-dev pip install psycopg2 while ! docker inspect --format='{{json .State.Health}}' test-postgres|grep 'Status":"healthy"'; do sleep 1; done @@ -54,8 +54,8 @@ test-launch-mysql: @docker rm -f test-mysql || true @docker volume rm test-mysql || true docker run -d --name test-mysql -p 3306:3306 -e MYSQL_ALLOW_EMPTY_PASSWORD=True -e MYSQL_DATABASE=mayan -v test-mysql:/var/lib/mysql healthcheck/mysql - sudo apt-get install -qq libmysqlclient-dev mysql-client - pip install mysql-python + sudo apt-get install -q libmysqlclient-dev mysql-client + pip install mysqlclient while ! docker inspect --format='{{json .State.Health}}' test-mysql|grep 'Status":"healthy"'; do sleep 1; done mysql -h 127.0.0.1 -P 3306 -uroot -e "set global character_set_server=utf8mb4;"