[openstack-dev] [glance] Removing python-swiftclient from requirements.txt

Louis Taylor louis at kragniz.eu
Wed Jul 29 14:25:33 UTC 2015


On Tue, Jul 28, 2015 at 07:55:54PM -0400, Doug Hellmann wrote:
> I replied on both patches, but I'll repeat it here for a broader
> audience:
> 
> Please set up an "extras" entry for each backend instead of just
> removing the dependencies.  That will signal to users that you know
> what dependencies there are for a backend, but that they are optional,
> and still allow someone to do the equivalent of "pip install
> glance[vmware]" or "pip install glance[swift]" to get those
> dependencies.  Nova and oslo.versionedobjects have examples in their
> setup.cfg if you need a template.
> 
> I didn't mention in the reviews, but this will also make integration
> tests in our gate easier, since you can put ".[vmware]" or ".[swift]" in
> the tox.ini to pull in those dependencies.

This sounds like the best option. What happens if you want to enable multiple
backends? Can you do something like "pip install glance[swift, vmware]", or
would you need to run a separate pip command to install each?

Cheers,
Louis
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 473 bytes
Desc: Digital signature
URL: <http://lists.openstack.org/pipermail/openstack-dev/attachments/20150729/892f9bbc/attachment.pgp>


More information about the OpenStack-dev mailing list