Skip to content
  • John Snow's avatar
    beb6b57b
    python: create qemu packages · beb6b57b
    John Snow authored
    
    
    move python/qemu/*.py to python/qemu/[machine, qmp, utils]/*.py and
    update import directives across the tree.
    
    This is done to create a PEP420 namespace package, in which we may
    create subpackages. To do this, the namespace directory ("qemu") should
    not have any modules in it. Those files will go into new 'machine',
    'qmp' and 'utils' subpackages instead.
    
    Implement machine/__init__.py making the top-level classes and functions
    from its various modules available directly inside the package. Change
    qmp.py to qmp/__init__.py similarly, such that all of the useful QMP
    library classes are available directly from "qemu.qmp" instead of
    "qemu.qmp.qmp".
    
    Signed-off-by: default avatarJohn Snow <jsnow@redhat.com>
    Reviewed-by: default avatarVladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
    Reviewed-by: default avatarCleber Rosa <crosa@redhat.com>
    Message-id: 20210527211715.394144-10-jsnow@redhat.com
    Signed-off-by: default avatarJohn Snow <jsnow@redhat.com>
    beb6b57b
    python: create qemu packages
    John Snow authored
    
    
    move python/qemu/*.py to python/qemu/[machine, qmp, utils]/*.py and
    update import directives across the tree.
    
    This is done to create a PEP420 namespace package, in which we may
    create subpackages. To do this, the namespace directory ("qemu") should
    not have any modules in it. Those files will go into new 'machine',
    'qmp' and 'utils' subpackages instead.
    
    Implement machine/__init__.py making the top-level classes and functions
    from its various modules available directly inside the package. Change
    qmp.py to qmp/__init__.py similarly, such that all of the useful QMP
    library classes are available directly from "qemu.qmp" instead of
    "qemu.qmp.qmp".
    
    Signed-off-by: default avatarJohn Snow <jsnow@redhat.com>
    Reviewed-by: default avatarVladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
    Reviewed-by: default avatarCleber Rosa <crosa@redhat.com>
    Message-id: 20210527211715.394144-10-jsnow@redhat.com
    Signed-off-by: default avatarJohn Snow <jsnow@redhat.com>
Loading