From 7a6aa181b93d2cc8e52ce69ed506f0a5062c3255 Mon Sep 17 00:00:00 2001 From: Michal Zielonka Date: Mon, 23 Nov 2015 14:37:24 +0100 Subject: [PATCH] Change MySqlDB to pymysql MySQL-python has GPL2 license. Apache license is not compatible with it. We propose to replace it with pymysql which has MIT license. Change-Id: I8d758f5e4908c1047dc4167ebd28cad24fff3a28 --- monasca_common/repositories/mysql/mysql_repository.py | 2 +- requirements.txt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/monasca_common/repositories/mysql/mysql_repository.py b/monasca_common/repositories/mysql/mysql_repository.py index 28d8922e..eddb6f0d 100755 --- a/monasca_common/repositories/mysql/mysql_repository.py +++ b/monasca_common/repositories/mysql/mysql_repository.py @@ -13,8 +13,8 @@ # under the License. import logging -import MySQLdb as mdb from oslo_config import cfg +import pymysql as mdb from monasca_common.repositories import exceptions diff --git a/requirements.txt b/requirements.txt index ca98235d..9d193a61 100644 --- a/requirements.txt +++ b/requirements.txt @@ -2,6 +2,6 @@ iso8601 six>=1.7.0 kazoo>=2.0 kafka-python>=0.9.1,<0.9.3 -MySQL-python>=1.2.3 +PyMySQL>=0.6.7 oslo.config<2.5.0 pbr>=0.11,<2.0