summaryrefslogtreecommitdiff
path: root/tox.ini
diff options
context:
space:
mode:
authorJeremy Stanley <fungi@yuggoth.org>2015-05-20 01:04:01 +0000
committerVictor Sergeyev <vsergeyev@mirantis.com>2015-06-18 15:42:23 +0300
commit9b552046f55e56d45a9e7274e62ebb372c112c36 (patch)
treec63bb59d025b07e0abec72876374672135412379 /tox.ini
parent910d40aa399874fcb36576de4d7d06d38f61cd50 (diff)
downloadoslo-db-9b552046f55e56d45a9e7274e62ebb372c112c36.tar.gz
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. Added a special test environment to keep MySQL-python support. Documentation modified. https://etherpad.openstack.org/p/liberty-cross-project-python3 Change-Id: I12b32dc097a121bd43991bc38dd4d289b65e86c1
Diffstat (limited to 'tox.ini')
-rw-r--r--tox.ini10
1 files changed, 5 insertions, 5 deletions
diff --git a/tox.ini b/tox.ini
index 97b57f4..95b682b 100644
--- a/tox.ini
+++ b/tox.ini
@@ -14,7 +14,7 @@ install_command = pip install -U {opts} {packages}
setenv =
VIRTUAL_ENV={envdir}
deps = -r{toxinidir}/requirements.txt
- -r{toxinidir}/test-requirements-py2.txt
+ -r{toxinidir}/test-requirements.txt
commands = bash tools/pretty_tox.sh '{posargs}'
[testenv:sqla_09]
@@ -25,12 +25,12 @@ commands = pip install SQLAlchemy>=0.9.0,!=0.9.5,<1.0.0
commands = pip install SQLAlchemy>=0.8.0,<0.9.0
python setup.py testr --slowest --testr-args='{posargs}'
-[testenv:py34]
+[testenv:mysql-python]
setenv =
{[testenv]setenv}
- OS_TEST_DBAPI_ADMIN_CONNECTION=mysql+pymysql://openstack_citest:openstack_citest@localhost/;postgresql://openstack_citest:openstack_citest@localhost/postgres;sqlite://
-deps = -r{toxinidir}/requirements.txt
- -r{toxinidir}/test-requirements-py3.txt
+ OS_TEST_DBAPI_ADMIN_CONNECTION=mysql://openstack_citest:openstack_citest@localhost/;postgresql://openstack_citest:openstack_citest@localhost/postgres;sqlite://
+commands = pip install MySQL-python
+ python setup.py testr --slowest --testr-args='{posargs}'
[testenv:pep8]
commands = flake8