diskimage-builder/diskimage_builder
Gregory Haynes 5da7574aee Add get_elements; preserve backwards compat for expand_dependencies
expand_dependencies() was a public interface so we should try and
preserve backwards compat. However, since the interface is really
broken, add a new exported function "get_elements" that instack can
switch to.  This returns the canonical list of elements without
duplicates, and gives the path to each element too.

This highlighted that the unit tests were really a bit wrong.  They're
testing inner functions when we have an "API" in the get_elements()
function.  Convert all unit-tests to use this function instead.  Since
this is a library call, convert the sys.exit() calls to raised
exceptions.

Refactor the variable output into a separate function so we can do a
sanity check on it.

The added flake8 ignores are for the "over-indented for ... indent"
which happens a lot with these new longer lines.  Most other projects
ignore them.

This is an alternative proposal to
I15609389c18adf3017220fc94552514d195b323a

Change-Id: If97bcd21e45de1b5ed91023fdc441a4617051a6b
2016-12-20 08:18:59 +11:00
..
block_device Refactor: block-device handling (local loop) 2016-09-08 04:31:01 +00:00
elements Merge remote-tracking branch 'origin/master' into merge-branch 2016-11-29 07:43:46 +11:00
lib Merge remote-tracking branch 'origin/master' into merge-branch 2016-11-29 07:43:46 +11:00
tests Add get_elements; preserve backwards compat for expand_dependencies 2016-12-20 08:18:59 +11:00
__init__.py Bump hacking to 0.9.x series 2014-07-21 10:15:41 +02:00
dib_run_parts.py Move dib-run-parts into diskimage-builder 2016-11-04 17:07:37 +11:00
disk_image_create.py Remove execute perm from disk-image-create 2016-11-04 17:11:27 +11:00
element_dependencies.py Add get_elements; preserve backwards compat for expand_dependencies 2016-12-20 08:18:59 +11:00
logging_config.py Add python logger configuration 2016-06-16 13:54:50 +10:00
paths.py Move diskimage-image-create to an entry point 2016-11-02 05:12:11 +00:00
version.py Create docs site containing element READMEs 2015-02-10 11:45:35 -08:00