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

Robert Collins robertc at robertcollins.net
Wed Jul 29 21:50:12 UTC 2015


On 30 July 2015 at 02:48, Doug Hellmann <doug at doughellmann.com> wrote:
> 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]

That might work. pip install glance[swift,vmware] is the canonical form.

-Rob

-- 
Robert Collins <rbtcollins at hp.com>
Distinguished Technologist
HP Converged Cloud



More information about the OpenStack-dev mailing list