From 2abbe1c3b19490f570c29502cd56ec92daf4ca45 Mon Sep 17 00:00:00 2001 From: Davanum Srinivas Date: Sat, 21 Nov 2015 10:00:22 -0500 Subject: [PATCH] Move netifaces to extras netifaces is a very heavy requirement especially for python clients, the code that uses netifaces is called only in exception paths at least now. So let us move this requirement to extras to reduce the time taken to install oslo.utils. Closes-Bug: #1517069 Change-Id: If3430364e49c1c0b1d9f4937bb67900380662728 --- requirements.txt | 1 - setup.cfg | 4 ++++ tox.ini | 1 + 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index 03ccbe8d..f9b7b5b1 100644 --- a/requirements.txt +++ b/requirements.txt @@ -15,5 +15,4 @@ oslo.i18n>=1.5.0 # Apache-2.0 monotonic>=0.3 # Apache-2.0 pytz>=2013.6 netaddr!=0.7.16,>=0.7.12 -netifaces>=0.10.4 debtcollector>=0.3.0 # Apache-2.0 diff --git a/setup.cfg b/setup.cfg index 69305396..cfa7389f 100644 --- a/setup.cfg +++ b/setup.cfg @@ -22,6 +22,10 @@ classifier = packages = oslo_utils +[extras] +netifaces = + netifaces>=0.10.4 + [pbr] warnerrors = true diff --git a/tox.ini b/tox.ini index b94b3213..24284a1c 100644 --- a/tox.ini +++ b/tox.ini @@ -4,6 +4,7 @@ envlist = py34,py27,pep8,bandit [testenv] deps = -r{toxinidir}/test-requirements.txt + .[netifaces] commands = python setup.py testr --slowest --testr-args='{posargs}' [testenv:pep8]