summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt Riedemann <mriedem@us.ibm.com>2015-08-26 11:47:48 -0700
committerMatt Riedemann <mriedem@us.ibm.com>2015-08-26 12:06:29 -0700
commit30cb7372565e505e262b4f6b83f75ecf1f8a7f81 (patch)
tree1251807068c94f8fafe736b5680a5f646f3f0f9c
parent15e905093e42c890876cd766dbc758c8e0817327 (diff)
downloadoslo-db-30cb7372565e505e262b4f6b83f75ecf1f8a7f81.tar.gz
Move runtime test resources into setup.cfg [extras]
testscenarios and testresources are only needed if you're using the oslo.db testing fixtures downstream, otherwise you don't need this at runtime in a deployment, so move them into the setup.cfg [extras] group. If a consumer of oslo.db wants to use the db test fixtures then they install oslo.db like 'sudo pip install oslo.db[fixtures]'. This should trigger a major version bump for the library when it lands. Closes-Bug: #1429233 Change-Id: I1a7c5b6a7b29cd3a50655f60606cc0b025400a96
-rw-r--r--requirements.txt2
-rw-r--r--setup.cfg5
-rw-r--r--tox.ini2
3 files changed, 6 insertions, 3 deletions
diff --git a/requirements.txt b/requirements.txt
index 6d8b17d..92e6790 100644
--- a/requirements.txt
+++ b/requirements.txt
@@ -14,5 +14,3 @@ SQLAlchemy<1.1.0,>=0.9.7
sqlalchemy-migrate>=0.9.6
stevedore>=1.5.0 # Apache-2.0
six>=1.9.0
-testresources>=0.2.4
-testscenarios>=0.4
diff --git a/setup.cfg b/setup.cfg
index a87da66..abb016b 100644
--- a/setup.cfg
+++ b/setup.cfg
@@ -54,6 +54,11 @@ keywords = _ gettext ngettext l_ lazy_gettext
mapping_file = babel.cfg
output_file = oslo.db/locale/oslo.db.pot
+[extras]
+fixtures =
+ testresources>=0.2.4
+ testscenarios>=0.4
+
[pbr]
# NOTE(viktors): uncomment ``warnerrors`` line, when setup.cfg we then
# want to treat sphinx warnings as errors
diff --git a/tox.ini b/tox.ini
index 4f6bd72..f8603fa 100644
--- a/tox.ini
+++ b/tox.ini
@@ -14,7 +14,7 @@ whitelist_externals = bash
install_command = pip install -U {opts} {packages}
setenv =
VIRTUAL_ENV={envdir}
-deps = -r{toxinidir}/requirements.txt
+deps = .[fixtures]
-r{toxinidir}/test-requirements.txt
commands = bash tools/pretty_tox.sh '{posargs}'