[openstack-dev] New python dependency - extras-0.0.1

Robert Collins robertc at robertcollins.net
Wed Dec 12 22:58:52 UTC 2012


On Thu, Dec 13, 2012 at 4:15 AM, Pádraig Brady <P at draigbrady.com> wrote:
> On 11/23/2012 07:29 AM, Mark McLoughlin wrote:
>>
>> Hey,
>>
>> A new Oslo dependency is proposed here:
>>
>>    https://review.openstack.org/16789
>>
>> The library is called 'extras' and released its first version nearly a
>> month ago:
>
>
> Sorry for being late to this.
> Packaging python-extras popped up on my radar today.
>
>
>>    http://pypi.python.org/pypi/extras/0.0.1
>>    https://github.com/testing-cabal/extras
>>
>> I don't forsee any objections apart from perhaps 'is a separate library
>> for just try_import() really worth it?'
>
>
> It really seems like overkill to have a separate package for this.
> Also 'extras' is far too generic a name anyway which at best
> is non descriptive and at worst becoming a dumping ground for whatever.

So, I take a little exception here. I pulled this code out of
testtools, where it originated, specifically for reuse so that
openstack didn't need to copy the code. Its clearly generic and
heavily reusable, and I'm going to propose it as a patch to the Python
standard library.

>> I'm inclined to approve it, just want to give folks a chance to express
>> an opinion.
>
>
> How about pulling try_import() into olso for the moment?

Why would you copy code you can trivially reuse?

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



More information about the OpenStack-dev mailing list