Switch from MySQL-python to PyMySQL
This is recommended community wide. We sould following the guidelines. https://etherpad.openstack.org/p/liberty-cross-project-python3 Change-Id: I8eb1d987d43089b349475d30d5c6e197fbf27323
This commit is contained in:
@@ -73,7 +73,7 @@ basic_configuration() {
|
||||
if echo $conf_path | grep ".conf$" >/dev/null 2>&1
|
||||
then
|
||||
iniset $target DEFAULT auth_encryption_key `hexdump -n 16 -v -e '/1 "%02x"' /dev/random`
|
||||
iniset $target database connection "mysql://senlin:senlin@localhost/senlin?charset=utf8"
|
||||
iniset $target database connection "mysql+pymysql://senlin:senlin@localhost/senlin?charset=utf8"
|
||||
|
||||
BRIDGE_IP=127.0.0.1
|
||||
|
||||
|
||||
@@ -10,8 +10,9 @@ mock>=1.0
|
||||
mox>=0.5.3
|
||||
oslosphinx>=2.5.0 # Apache-2.0
|
||||
oslotest>=1.5.1 # Apache-2.0
|
||||
paramiko>=1.13.0
|
||||
os-testr>=0.1.0
|
||||
paramiko>=1.13.0
|
||||
PyMySQL>=0.6.2 # MIT License
|
||||
sphinx!=1.2.0,!=1.3b1,<1.3,>=1.1.2
|
||||
testrepository>=0.0.18
|
||||
testscenarios>=0.4
|
||||
|
||||
1
tox.ini
1
tox.ini
@@ -8,6 +8,7 @@ skipsdist = True
|
||||
# Note the hash seed is set to 0 until senlin can be tested with a
|
||||
# random hash seed successfully.
|
||||
setenv = VIRTUAL_ENV={envdir}
|
||||
OS_TEST_DBAPI_ADMIN_CONNECTION=mysql+pymysql://openstack_citest:openstack_citest@localhost/;postgresql://openstack_citest:openstack_citest@localhost/postgres;sqlite://
|
||||
PYTHONHASHSEED=0
|
||||
usedevelop = True
|
||||
install_command = pip install {opts} {packages}
|
||||
|
||||
Reference in New Issue
Block a user