This is revised version of the last patch series. Some of the already acknowledged commits are included because they are related to other patches and required for the changes to be applied. ACKed commits: - 1/24 sources: Set default format with a constant - 2/24 sources: Use default values of arguments - 5/24 setup: Use find_packages() - 6/24 Split 'sources' module into files - 13/24 Make UID/GID mapping reusable - 14/24 Split the function mapping_uid_gid - 15/24 Enable UID/GID mapping for qcow2 Commits (24): sources: Set default format with a constant sources: Use default values of arguments tests: Remove redundant arguments Use explicit import setup: Use find_packages() Split 'sources' module into files Add guestfs-python dependency DockerSoure: Keep list of tar files for image Make the code get compression type reusable Create qcow2 images with python-guestfs Use libguestfs python's binding Drop unused functions Make UID/GID mapping reusable Split the function mapping_uid_gid Enable UID/GID mapping for qcow2 Simplify setting permissins of shadow file Make set_root_password_in_rootfs reusable Build_QCOW2_Image: Enable setting root password Use Build_QCOW2_Image to set root password Add flag --faster tests: Update tests for untar() sources: Add support for virt-builder tests: DockerSource for fmt='qcow2' tests: FileSource for fmt='qcow2' MANIFEST.in | 3 +- setup.py | 23 +- src/virtBootstrap/sources/__init__.py | 27 ++ .../{sources.py => sources/docker_source.py} | 97 ++--- src/virtBootstrap/sources/file_source.py | 86 ++++ src/virtBootstrap/sources/virt_builder_source.py | 134 ++++++ src/virtBootstrap/utils.py | 463 +++++++++++++++------ src/virtBootstrap/virt_bootstrap.py | 100 +---- tests/test_docker_source.py | 113 ++--- tests/test_file_source.py | 51 ++- tests/test_utils.py | 424 ++++++++++--------- tests/test_virt_bootstrap.py | 176 +------- 12 files changed, 983 insertions(+), 714 deletions(-) create mode 100644 src/virtBootstrap/sources/__init__.py rename src/virtBootstrap/{sources.py => sources/docker_source.py} (80%) create mode 100644 src/virtBootstrap/sources/file_source.py create mode 100644 src/virtBootstrap/sources/virt_builder_source.py -- 2.13.3 _______________________________________________ virt-tools-list mailing list virt-tools-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/virt-tools-list