Merge lp:~zyga/lava-core/utils-interface into lp:lava-core

Proposed by Zygmunt Krynicki
Status: Merged
Merged at revision: 10
Proposed branch: lp:~zyga/lava-core/utils-interface
Merge into: lp:lava-core
Prerequisite: lp:~zyga/lava-core/plugin-loader-respin
Diff against target: 0 lines
To merge this branch: bzr merge lp:~zyga/lava-core/utils-interface
Reviewer Review Type Date Requested Status
Linaro Validation Team Pending
Review via email: mp+104968@code.launchpad.net

Description of the change

This branch adds the old interface module from lava-utils-interface (see below for details about that piece of code). Originally it was a standalone pypi package (and still is) but to simplify development of lava-core I've decided to just put it in lava-core directly. Namespace packages still cause pip and setuptools to mis-communicate, this causes odd import failures where python runtime sees only some of the namespaces packages, depending on order of installation. Note that I deliberately left out lava-utils-interface directory in the top of the tree. Once lava-core merge process is complete and we don't need to release any of the old components anymore they can be safely removed.

Quote of the commit message:

  Add lava.core.utils module

  This module will contain various small utilities that don't warrant a dedicated
  module for themselves.

  This patch adds the well-known Interface class that makes abc.ABCMeta usage a
  little less scary. The Interface class (or the equivalent copy from
  lava-utils-interface package before lava-core was introduced) is used
  throughout LAVA to document extensible pieces and ensure API conformance. The
  Interface class is expected to be used with the standard python library abc
  module and the assorted collection of decorators it provides. All of the
  interfaces used by lava-core will be defined in the upcoming
  lava.core.interfaces module.

To post a comment you must log in.
Revision history for this message
Michael Hudson-Doyle (mwhudson) wrote :

This one seems boringly fine :-)

Cheers,
mwh

lp:~zyga/lava-core/utils-interface updated
8. By Zygmunt Krynicki

Infrastructure for history and logging

9. By Zygmunt Krynicki

Infrastructure for plugins

10. By Zygmunt Krynicki

Add lava.core.utils module

This module will contain various small utilities that don't warrant a dedicated
module for themselves.

This patch adds the well-known Interface class that makes abc.ABCMeta usage a
little less scary. The Interface class (or the equivalent copy from
lava-utils-interface package before lava-core was introduced) is used
throughout LAVA to document extensible pieces and ensure API conformance. The
Interface class is expected to be used with the standard python library abc
module and the assorted collection of decorators it provides. All of the
interfaces used by lava-core will be defined in the upcoming
lava.core.interfaces module.

Preview Diff

Empty

Subscribers

People subscribed via source and target branches