From 1cc62d6ea2b8955af9313b72bdfbce230b426a26 Mon Sep 17 00:00:00 2001 From: Matt Riedemann Date: Wed, 15 May 2019 16:04:38 -0400 Subject: [PATCH] Remove test-requirements-py*.txt files We can control python version sensitive dependencies in the single test-requirements.txt file so we can drop the version-specific files. This should also make the openstack-tox-py35 job start passing. Change-Id: Ic3fa2c4417092e387ac5d177be75a22050a6f857 --- test-requirements-py2.txt | 1 - test-requirements-py3.txt | 1 - test-requirements.txt | 4 ++++ tox.ini | 6 ------ 4 files changed, 4 insertions(+), 8 deletions(-) delete mode 100644 test-requirements-py2.txt delete mode 100644 test-requirements-py3.txt diff --git a/test-requirements-py2.txt b/test-requirements-py2.txt deleted file mode 100644 index 0c10ead..0000000 --- a/test-requirements-py2.txt +++ /dev/null @@ -1 +0,0 @@ -ibm_db_sa>=0.3.0 diff --git a/test-requirements-py3.txt b/test-requirements-py3.txt deleted file mode 100644 index 4a06ca2..0000000 --- a/test-requirements-py3.txt +++ /dev/null @@ -1 +0,0 @@ -ibm-db-sa-py3 diff --git a/test-requirements.txt b/test-requirements.txt index c585609..bc8d8d2 100644 --- a/test-requirements.txt +++ b/test-requirements.txt @@ -19,6 +19,10 @@ testrepository>=0.0.17 testtools>=0.9.34,<0.9.36 tempest-lib>=0.1.0 +# db2 support +ibm_db_sa>=0.3.0;python_version<'3.0' +ibm-db-sa-py3;python_version>='3.0' + scripttest # NOTE(rpodolyaka): This version identifier is currently necessary as # pytz otherwise does not install on pip 1.4 or higher diff --git a/tox.ini b/tox.ini index c4bf33b..c721a97 100644 --- a/tox.ini +++ b/tox.ini @@ -16,35 +16,29 @@ commands = bash tools/pretty_tox.sh '{posargs}' [testenv:py27] deps = sqlalchemy>=0.9 -r{toxinidir}/test-requirements.txt - -r{toxinidir}/test-requirements-py2.txt [testenv:py27sa07] basepython = python2.7 deps = sqlalchemy>=0.7,<=0.7.99 -r{toxinidir}/test-requirements.txt - -r{toxinidir}/test-requirements-py2.txt [testenv:py27sa08] basepython = python2.7 deps = sqlalchemy>=0.8,<=0.8.99 -r{toxinidir}/test-requirements.txt - -r{toxinidir}/test-requirements-py2.txt [testenv:py27sa09] basepython = python2.7 deps = sqlalchemy>=0.9,<=0.9.99 -r{toxinidir}/test-requirements.txt - -r{toxinidir}/test-requirements-py2.txt [testenv:py33] deps = sqlalchemy>=0.9 -r{toxinidir}/test-requirements.txt - -r{toxinidir}/test-requirements-py3.txt [testenv:py34] deps = sqlalchemy>=0.9 -r{toxinidir}/test-requirements.txt - -r{toxinidir}/test-requirements-py3.txt [testenv:pep8] commands = flake8