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

Doug Hellmann doug at doughellmann.com
Wed Jul 29 14:48:54 UTC 2015


Excerpts from Louis Taylor's message of 2015-07-29 15:25:33 +0100:
> 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?

I think you would say:

  pip install glance[swift] glance[vmware]

Doug



More information about the OpenStack-dev mailing list