Switch from MySQL-python to PyMySQL

As discussed in the Liberty Design Summit "Moving apps to Python 3"
cross-project workshop, the way forward in the near future is to
switch to the pure-python PyMySQL library as a default.

https://etherpad.openstack.org/p/liberty-cross-project-python3

Change-Id: I1b66bd149aba75e565acd0d23e15a1b489ee710d
This commit is contained in:
Jeremy Stanley 2015-05-20 01:03:59 +00:00
parent efee9edbfb
commit 3f538d5b89
3 changed files with 4 additions and 16 deletions

View File

@ -49,21 +49,17 @@ Supported Operation Systems
* libffi-dev * libffi-dev
* libmysqlclient-dev
* libpq-dev * libpq-dev
* python-openssl * python-openssl
* mysql-client * mysql-client
* python-mysqldb
Install all the requirements on Ubuntu by running:: Install all the requirements on Ubuntu by running::
# apt-get install gcc python-pip python-dev \ # apt-get install gcc python-pip python-dev \
libxml2-dev libxslt-dev libffi-dev libmysqlclient-dev \ libxml2-dev libxslt-dev libffi-dev \
libpq-dev python-openssl mysql-client python-mysqldb libpq-dev python-openssl mysql-client
*CentOS* *CentOS*
@ -85,13 +81,11 @@ Install all the requirements on Ubuntu by running::
* mysql * mysql
* MySQL-python
Install all the requirements on CentOS by running:: Install all the requirements on CentOS by running::
# yum install gcc python-pip python-devel libxml2-devel \ # yum install gcc python-pip python-devel libxml2-devel \
libxslt-devel libffi-devel postgresql-devel pyOpenSSL \ libxslt-devel libffi-devel postgresql-devel pyOpenSSL \
mysql MySQL-python mysql
.. _lab_requirements: .. _lab_requirements:

View File

@ -44,16 +44,12 @@ System prerequisites
* libffi-dev * libffi-dev
* libmysqlclient-dev
* libpq-dev * libpq-dev
* python-openssl * python-openssl
* mysql-client * mysql-client
* python-mysqldb
*CentOS* *CentOS*
* gcc * gcc
@ -74,8 +70,6 @@ System prerequisites
* mysql * mysql
* MySQL-python
Lab Requirements Lab Requirements
================ ================

View File

@ -20,7 +20,7 @@ unittest2
pylint==1.4.1 # GNU GPL v2 pylint==1.4.1 # GNU GPL v2
# Some of the tests use real MySQL and Postgres databases # Some of the tests use real MySQL and Postgres databases
MySQL-python PyMySQL>=0.6.2 # MIT License
psycopg2 psycopg2
# doc build requirements # doc build requirements