Do not depend on python-openstackclient

OpenStack client is not a runtime dependency of ironicclient,
and having it in requirements just brings in many dependencies
which might not be needed at all when using the Python API of the client
only (for example in server-side applications).

Although dependency on osc-lib is enough for unit tests, add
python-openstackclient to test-requirements so that functional tests
pass.

Also, add a setuptools 'extra' so that users can install
python-openstackclient together with ironicclient if wishing to do so
as follows:

    pip install python-ironicclient[cli]

Change-Id: Ic7d06e61cd234b327613287802361c58bf6bf11e
Closes-Bug: #1562023
This commit is contained in:
Pavlo Shchelokovskyy 2017-03-01 17:21:33 +02:00
parent 581c0eb06d
commit 6b1fefe979
4 changed files with 20 additions and 1 deletions

View File

@ -0,0 +1,15 @@
---
upgrade:
- |
``python-ironicclient`` package no longer has
the ``python-openstackclient`` package (OSC) as a requirement.
Users installing only the ``python-ironicclient`` package will not
automatically get access to ``openstack baremetal ...`` OSC commands.
To have them available, the ``python-openstackclient`` package must
be installed separately, or, when installing ``python-ironicclient``
via ``pip``, the new ``cli`` extra can be used to also install OSC:
.. code-block:: shell
pip install python-ironicclient[cli]

View File

@ -11,7 +11,6 @@ oslo.i18n>=3.15.3 # Apache-2.0
oslo.serialization!=2.19.1,>=2.18.0 # Apache-2.0
oslo.utils>=3.28.0 # Apache-2.0
PrettyTable<0.8,>=0.7.1 # BSD
python-openstackclient>=3.12.0 # Apache-2.0
PyYAML>=3.10 # MIT
requests>=2.14.2 # Apache-2.0
six>=1.9.0 # MIT

View File

@ -111,3 +111,7 @@ warning-is-error = 1
[wheel]
universal = 1
[extras]
cli =
python-openstackclient>=3.12.0 # Apache-2.0

View File

@ -17,3 +17,4 @@ testtools>=1.4.0 # MIT
tempest>=16.1.0 # Apache-2.0
os-testr>=1.0.0 # Apache-2.0
ddt>=1.0.1 # MIT
python-openstackclient>=3.12.0 # Apache-2.0