From 86d87be8db588cc3125d53cd92e271fb45b1a3aa Mon Sep 17 00:00:00 2001 From: Stephen Finucane Date: Wed, 22 Dec 2021 16:25:19 +0000 Subject: Move optional build dependencies to 'extras' ...and start skipping the relevant tests in 'nova.tests.unit.virt' if these dependencies are not present. Thanks to hacking rules N311 and N312, which prevent virt drivers using code from other virt drivers, simply skipping the unit tests for a virt driver module is enough to ensure we never load those modules. This means users that want to use the powervm driver can install the required dependencies using e.g. 'pip install .[powervm]', and packagers can choose to skip packaging a dependency safe in the knowledge that the relevant tests will be skipped. Change-Id: I3787f9afd78cd0a7c7feb4dfe1bcb21437b5a128 Signed-off-by: Stephen Finucane --- requirements.txt | 5 ----- 1 file changed, 5 deletions(-) (limited to 'requirements.txt') diff --git a/requirements.txt b/requirements.txt index 46a611b1de..c053e1e220 100644 --- a/requirements.txt +++ b/requirements.txt @@ -8,8 +8,6 @@ lxml>=4.5.0 # BSD Routes>=2.3.1 # MIT cryptography>=2.7 # BSD/Apache-2.0 WebOb>=1.8.2 # MIT -# NOTE(mriedem): greenlet 0.4.14 does not work with older versions of gcc on -# ppc64le systems, see https://github.com/python-greenlet/greenlet/issues/136. greenlet>=0.4.15 # MIT PasteDeploy>=1.5.0 # MIT Paste>=2.0.2 # MIT @@ -52,17 +50,14 @@ os-brick>=4.3.1 # Apache-2.0 os-resource-classes>=1.1.0 # Apache-2.0 os-traits>=2.5.0 # Apache-2.0 os-vif>=1.15.2 # Apache-2.0 -os-win>=5.4.0 # Apache-2.0 castellan>=0.16.0 # Apache-2.0 microversion-parse>=0.2.1 # Apache-2.0 tooz>=1.58.0 # Apache-2.0 cursive>=0.2.1 # Apache-2.0 -pypowervm>=1.1.15 # Apache-2.0 retrying>=1.3.3,!=1.3.0 # Apache-2.0 os-service-types>=1.7.0 # Apache-2.0 taskflow>=3.8.0 # Apache-2.0 python-dateutil>=2.7.0 # BSD -zVMCloudConnector>=1.3.0;sys_platform!='win32' # Apache 2.0 License futurist>=1.8.0 # Apache-2.0 openstacksdk>=0.35.0 # Apache-2.0 dataclasses>=0.7;python_version=='3.6' # Apache 2.0 License -- cgit v1.2.1