Package portage :: Package tests :: Package resolver :: Module ResolverPlayground :: Class ResolverPlayground
[hide private]

Class ResolverPlayground

source code

object --+
         |
        ResolverPlayground

This class helps to create the necessary files on disk and the needed settings instances, etc. for the resolver to do its work.

Instance Methods [hide private]
 
__init__(self, ebuilds={}, binpkgs={}, installed={}, profile={}, repo_configs={}, user_config={}, sets={}, world=[], world_sets=[], distfiles={}, targetroot=False, debug=False)
ebuilds: cpv -> metadata mapping simulating available ebuilds.
source code
 
_get_repo_dir(self, repo)
Create the repo directory if needed.
source code
 
_create_distfiles(self, distfiles) source code
 
_create_ebuilds(self, ebuilds) source code
 
_create_ebuild_manifests(self, ebuilds) source code
 
_create_binpkgs(self, binpkgs) source code
 
_create_installed(self, installed) source code
 
_create_profile(self, ebuilds, installed, profile, repo_configs, user_config, sets) source code
 
_create_world(self, world, world_sets) source code
 
_load_config(self) source code
 
run(self, atoms, options={}, action=None) source code
 
run_TestCase(self, test_case) source code
 
cleanup(self) source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Class Variables [hide private]
  config_files = frozenset(['eapi', 'layout.conf', 'make.conf', ...
  metadata_xml_template = '<?xml version="1.0" encoding="UTF-8"?...
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, ebuilds={}, binpkgs={}, installed={}, profile={}, repo_configs={}, user_config={}, sets={}, world=[], world_sets=[], distfiles={}, targetroot=False, debug=False)
(Constructor)

source code 

ebuilds: cpv -> metadata mapping simulating available ebuilds.
installed: cpv -> metadata mapping simulating installed packages.
        If a metadata key is missing, it gets a default value.
profile: settings defined by the profile.

Overrides: object.__init__

Class Variable Details [hide private]

config_files

Value:
frozenset(['eapi',
           'layout.conf',
           'make.conf',
           'package.accept_keywords',
           'package.keywords',
           'package.license',
           'package.mask',
           'package.properties',
...

metadata_xml_template

Value:
'''<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<herd>%(herd)s</herd>
<maintainer>
<email>maintainer-needed@gentoo.org</email>
<description>Description of the maintainership</description>
</maintainer>
...