[meta-virtualization] [RFC][PATCH 00/16] Adding python client APIs for glance, quantum and keystone

Bruce Ashfield bruce.ashfield at gmail.com
Thu Dec 20 08:39:59 PST 2012


On Thu, Dec 20, 2012 at 7:20 AM, David Nyström <david.nystrom at enea.com>wrote:

>
>
> On 12/18/2012 03:50 PM, Bruce Ashfield wrote:
>
>>
>>
>>
>> On Tue, Dec 18, 2012 at 9:31 AM, David Nyström <david.c.nystrom at gmail.com
>> <mailto:david.c.nystrom at gmail.**com <david.c.nystrom at gmail.com>>> wrote:
>>
>>      Sending these patches as an RFC since it includes a removal of a
>> meta-virt
>>      patch on
>>      python-2.7.3. Also, some of the common python packages might not be
>> optimal
>>      to keep in the
>>      meta-virtualization layer, some should perhaps be sent as package
>> updates to
>>      oe-core.
>>
>>
>> I'd agree that it might not be optimal to have some of the python
>> packages in this
>> layer, since they are more about access libraries, communications
>> wrappers and
>> security.
>>
>> The problem with targeting oe-core is that we really need more than just
>> meta-virt
>> as a user to make them a reasonable candidate for merging. We'd need
>> Richard
>> or Saul to comment on the possibility of merging them to oe-core.
>>
>>
>  That being said, if it isn't oe-core, the other options seem like the
>> meta-networking
>> layer, or some of the security layers. The risk with that approach is
>> that we take
>> what is a currently simple layer dependency list and make it more
>> complicated.
>>
>> I can't say that I like adding complexity, but if we can't get them into
>> oe-core, then
>> it makes sense, to try and get them into a common layer that holds similar
>> functionality.
>>
>> The problem is the timeframe ... if we try and immediately place these in
>> the right
>> layer(s), then making them available at all will take some time. So from
>> that point
>> of view, we can drop them in meta-virt and start the conversation about
>> where they
>> should be in the longer term.
>>
>> Comments ? I can't say that any of the options really stand out for me :)
>>
>>
> I suggest we split the recipes which we don't see direct ownership of
> (i.e. a common usecase) into recipes-external/* as a first step.
> Step two would be to find a suitable upstream for each package, with the
> end goal to have recipes-external empty.
>

That works for me as well. It makes it explicitly clear that this isn't
their final home, since
we haven't done a deeper categorization of the recipes.


>
> Somewhat OT:
> I really see some improvement the way disutils.bbclass/setuptools.**bbclass
> work today,
> I've improved create-recipe to understand python source-tarballs, early
> patch on yocto ML, which makes the tedious task of adding python
> dependencies somewhat easier. But alot of the metadata available in the
> python source packages should be able to be automated with bitbake via an
> inherited bbclass.
>

Nice. I'm running into this more often myself lately (the need to bring in
python dependencies).


>
> RDEPENDS, sub package-split et.c. most of the metadata is already avaiable
> in dist/setuptools enables packages. The added bonus of automating as much
> as possible would be a common layout of most packages. Is anyone aware of
> any previous work in this direction ?
>
>
I haven't heard of anything just like this for python packages, so it
sounds like it's worth pursuing.
If you continue to make your work in progress available, I know that I'll
be able to have a look
and help where possible.

Cheers,

Bruce


>  Cheers,
>>
>> Bruce
>>
>>      David Nyström (16):
>>         Removed meta-virtualization private patch, and using upstream
>> instead
>>         Added python-cliff recipe
>>         Added python-cmd2 recipe
>>         Added python-httplib2 recipe
>>         Added python-jsonpatch recipe
>>         Added python-jsonpointer recipe
>>         Added python-jsonschema recipe
>>         Added python-prettytable recipe
>>         Added python-pycrypto recipe
>>         Added python-pyopenssl recipe
>>         Added python-pyparsing recipe
>>         Added python-simplejson recipe
>>         Added python-warlock recipe
>>         Added python-glanceclient recipe
>>         Added python-quantumclient recipe
>>         Added python-keystoneclient recipe
>>
>>        .../glanceclient/python-**glanceclient_git.bb<http://python-glanceclient_git.bb>
>>      <http://python-glanceclient_**git.bb<http://python-glanceclient_git.bb>>
>>        |   26 ++++
>>        .../keystoneclient/python-**keystoneclient_git.bb<http://python-keystoneclient_git.bb>
>>      <http://python-keystoneclient_**git.bb<http://python-keystoneclient_git.bb>>
>>    |   24 ++++
>>        .../quantumclient/python-**quantumclient_git.bb<http://python-quantumclient_git.bb>
>>      <http://python-quantumclient_**git.bb<http://python-quantumclient_git.bb>>
>>      |   23 ++++
>>
>>        .../01-use-proper-tools-for-**cross-build.patch      |  138
>> --------------------
>>        recipes-devtools/python/**python_2.7.3.bbappend      |    9 --
>>        .../files/001-remove-**distribute-dependency.patch   |   24 ++++
>>        recipes-python/cliff/python-**cliff_1.3.bb<http://python-cliff_1.3.bb><
>> http://python-cliff_1.3.bb>
>>             |   29 ++++
>>        recipes-python/cmd2/python-**cmd2_0.6.4.bb<http://python-cmd2_0.6.4.bb><
>> http://python-cmd2_0.6.4.bb>
>>             |   20 +++
>>        recipes-python/httplib2/python**-httplib2_0.7.7.bb<http://python-httplib2_0.7.7.bb>
>>      <http://python-httplib2_0.7.7.**bb <http://python-httplib2_0.7.7.bb>>
>>   |   19 +++
>>        recipes-python/jsonpatch/pytho**n-jsonpatch_0.10.bb<http://python-jsonpatch_0.10.bb>
>>      <http://python-jsonpatch_0.10.**bb <http://python-jsonpatch_0.10.bb>>
>>  |   20 +++
>>        .../jsonpointer/python-**jsonpointer_0.5.bb<http://python-jsonpointer_0.5.bb>
>>      <http://python-jsonpointer_0.**5.bb<http://python-jsonpointer_0.5.bb>>
>>          |   16 +++
>>        recipes-python/jsonschema/pyth**on-jsonschema_0.7.bb<http://python-jsonschema_0.7.bb>
>>      <http://python-jsonschema_0.7.**bb <http://python-jsonschema_0.7.bb>>
>> |   22 ++++
>>        .../prettytable/python-**prettytable_0.6.1.bb<http://python-prettytable_0.6.1.bb>
>>      <http://python-prettytable_0.**6.1.bb<http://python-prettytable_0.6.1.bb>>
>>        |   18 +++
>>        recipes-python/pyOpenSSL/pytho**n-pyopenssl_0.13.bb<http://python-pyopenssl_0.13.bb>
>>      <http://python-pyopenssl_0.13.**bb <http://python-pyopenssl_0.13.bb>>
>>  |   20 +++
>>        .../pycrypto/files/001-remove-**includes.patch       |   11 ++
>>        recipes-python/pycrypto/python**-pycrypto_2.6.bb<http://python-pycrypto_2.6.bb>
>>      <http://python-pycrypto_2.6.bb**>     |   46 +++++++
>>        recipes-python/pyparsing/pytho**n-pyparsing_1.5.6.bb<http://python-pyparsing_1.5.6.bb>
>>      <http://python-pyparsing_1.5.**6.bb<http://python-pyparsing_1.5.6.bb>>
>> |   22 ++++
>>        .../simplejson/python-**simplejson_2.6.2.bb<http://python-simplejson_2.6.2.bb>
>>      <http://python-simplejson_2.6.**2.bb<http://python-simplejson_2.6.2.bb>>
>>          |   21 +++
>>        recipes-python/warlock/python-**warlock_0.7.0.bb<http://python-warlock_0.7.0.bb>
>>      <http://python-warlock_0.7.0.**bb <http://python-warlock_0.7.0.bb>>
>>     |   26 ++++
>>
>>        19 files changed, 387 insertions(+), 147 deletions(-)
>>        create mode 100644 recipes-cloud/glanceclient/pyt**
>> hon-glanceclient_git.bb <http://python-glanceclient_git.bb>
>>      <http://python-glanceclient_**git.bb<http://python-glanceclient_git.bb>
>> >
>>        create mode 100644
>>      recipes-cloud/keystoneclient/p**ython-keystoneclient_git.bb<http://python-keystoneclient_git.bb>
>>      <http://python-keystoneclient_**git.bb<http://python-keystoneclient_git.bb>
>> >
>>        create mode 100644 recipes-cloud/quantumclient/py**
>> thon-quantumclient_git.bb <http://python-quantumclient_git.bb>
>>      <http://python-quantumclient_**git.bb<http://python-quantumclient_git.bb>
>> >
>>
>>        delete mode 100644
>>      recipes-devtools/python/**python/01-use-proper-tools-**
>> for-cross-build.patch
>>        delete mode 100644 recipes-devtools/python/**python_2.7.3.bbappend
>>        create mode 100644
>>      recipes-python/cliff/files/**001-remove-distribute-**
>> dependency.patch
>>        create mode 100644 recipes-python/cliff/python-**cliff_1.3.bb<http://python-cliff_1.3.bb>
>>      <http://python-cliff_1.3.bb>
>>        create mode 100644 recipes-python/cmd2/python-**cmd2_0.6.4.bb<http://python-cmd2_0.6.4.bb>
>>      <http://python-cmd2_0.6.4.bb>
>>        create mode 100644 recipes-python/httplib2/python**
>> -httplib2_0.7.7.bb <http://python-httplib2_0.7.7.bb>
>>      <http://python-httplib2_0.7.7.**bb <http://python-httplib2_0.7.7.bb>
>> >
>>        create mode 100644 recipes-python/jsonpatch/pytho**
>> n-jsonpatch_0.10.bb <http://python-jsonpatch_0.10.bb>
>>      <http://python-jsonpatch_0.10.**bb <http://python-jsonpatch_0.10.bb>
>> >
>>        create mode 100644 recipes-python/jsonpointer/pyt**
>> hon-jsonpointer_0.5.bb <http://python-jsonpointer_0.5.bb>
>>      <http://python-jsonpointer_0.**5.bb<http://python-jsonpointer_0.5.bb>
>> >
>>        create mode 100644 recipes-python/jsonschema/pyth**
>> on-jsonschema_0.7.bb <http://python-jsonschema_0.7.bb>
>>      <http://python-jsonschema_0.7.**bb <http://python-jsonschema_0.7.bb>
>> >
>>        create mode 100644 recipes-python/prettytable/pyt**
>> hon-prettytable_0.6.1.bb <http://python-prettytable_0.6.1.bb>
>>      <http://python-prettytable_0.**6.1.bb<http://python-prettytable_0.6.1.bb>
>> >
>>        create mode 100644 recipes-python/pyOpenSSL/pytho**
>> n-pyopenssl_0.13.bb <http://python-pyopenssl_0.13.bb>
>>      <http://python-pyopenssl_0.13.**bb <http://python-pyopenssl_0.13.bb>
>> >
>>
>>        create mode 100644 recipes-python/pycrypto/files/**
>> 001-remove-includes.patch
>>        create mode 100644 recipes-python/pycrypto/python**
>> -pycrypto_2.6.bb <http://python-pycrypto_2.6.bb>
>>      <http://python-pycrypto_2.6.bb**>
>>        create mode 100644 recipes-python/pyparsing/pytho**
>> n-pyparsing_1.5.6.bb <http://python-pyparsing_1.5.6.bb>
>>      <http://python-pyparsing_1.5.**6.bb<http://python-pyparsing_1.5.6.bb>
>> >
>>        create mode 100644 recipes-python/simplejson/pyth**
>> on-simplejson_2.6.2.bb <http://python-simplejson_2.6.2.bb>
>>      <http://python-simplejson_2.6.**2.bb<http://python-simplejson_2.6.2.bb>
>> >
>>        create mode 100644 recipes-python/warlock/python-**
>> warlock_0.7.0.bb <http://python-warlock_0.7.0.bb>
>>      <http://python-warlock_0.7.0.**bb <http://python-warlock_0.7.0.bb>>
>>
>>
>>      --
>>      1.7.9.5
>>
>>
>>
>>
>> --
>> "Thou shalt not follow the NULL pointer, for chaos and madness await thee
>> at its
>> end"
>>
>>


-- 
"Thou shalt not follow the NULL pointer, for chaos and madness await thee
at its end"
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/meta-virtualization/attachments/20121220/ca4fc0a3/attachment.html>


More information about the meta-virtualization mailing list