pkgcheck.sources module

Custom package sources used for feeding checks.

class pkgcheck.sources.CategoryRepoSource(options, source=None)[source]

Bases: _CombinedSource

Ebuild repository source yielding lists of versioned packages per category.

keyfunc = operator.attrgetter('category')
scope = <PackageScope desc='category' @0x7fc9bedc9110>
class pkgcheck.sources.EbuildFileRepoSource(options, source=None)[source]

Bases: RepoSource

Ebuild repository source yielding package objects and their file contents.

itermatch(restrict, **kwargs)[source]

Yield packages matching the given restriction from the selected source.

class pkgcheck.sources.EbuildParseRepoSource(options, source=None)[source]

Bases: RepoSource

Ebuild repository source yielding parsed packages.

itermatch(restrict, **kwargs)[source]

Yield packages matching the given restriction from the selected source.

class pkgcheck.sources.EclassParseRepoSource(*args, eclass_addon, **kwargs)[source]

Bases: EclassRepoSource

Eclass repository source yielding parsed eclass objects.

itermatch(restrict, **kwargs)[source]

Yield packages matching the given restriction from the selected source.

class pkgcheck.sources.EclassRepoSource(*args, eclass_addon, **kwargs)[source]

Bases: RepoSource

Repository eclass source.

itermatch(restrict, **kwargs)[source]

Yield packages matching the given restriction from the selected source.

required_addons = (<class 'pkgcheck.addons.eclass.EclassAddon'>,)
scope = <LocationScope desc='eclass' @0x7fc9bedc9610>
class pkgcheck.sources.EmptySource(scope, options)[source]

Bases: Source

Empty source meant for skipping item feed.

class pkgcheck.sources.FilteredPackageRepoSource(pkg_filter, *args, **kwargs)[source]

Bases: FilteredRepoSource

Ebuild repository source supporting custom package filtering.

scope = <PackageScope desc='package' @0x7fc9bedc8f50>
class pkgcheck.sources.FilteredRepoSource(pkg_filter, *args, **kwargs)[source]

Bases: RepoSource

Ebuild repository source supporting custom package filtering.

itermatch(restrict, **kwargs)[source]

Yield packages matching the given restriction from the selected source.

class pkgcheck.sources.LatestPkgsFilter(source_iter)[source]

Bases: object

Flag the latest non-VCS and VCS slots for filtering package sets.

class pkgcheck.sources.LatestVersionRepoSource(options, source=None)[source]

Bases: RepoSource

Repo source that returns only the latest non-VCS and VCS slots

itermatch(*args, **kwargs)[source]

Yield packages matching the given restriction from the selected source.

class pkgcheck.sources.LatestVersionsFilter(source_iter)[source]

Bases: object

Filter source packages, yielding those from the latest non-VCS and VCS slots.

class pkgcheck.sources.PackageRepoSource(options, source=None)[source]

Bases: _CombinedSource

Ebuild repository source yielding lists of versioned packages per package.

keyfunc = operator.attrgetter('key')
scope = <PackageScope desc='package' @0x7fc9bedc8f50>
class pkgcheck.sources.Profile(node: ProfileNode, files: set)[source]

Bases: object

Generic profile object.

files: set
node: ProfileNode
class pkgcheck.sources.ProfilesRepoSource(*args, **kwargs)[source]

Bases: RepoSource

Repository profiles file source.

itermatch(restrict, **kwargs)[source]

Yield packages matching the given restriction from the selected source.

scope = <LocationScope desc='profile_node' @0x7fc9bf0c7410>
class pkgcheck.sources.RawRepoSource(options)[source]

Bases: RepoSource

Ebuild repository source returning raw CPV objects.

itermatch(restrict, **kwargs)[source]

Yield packages matching the given restriction from the selected source.

class pkgcheck.sources.RepoSource(options, source=None)[source]

Bases: Source

Base template for a repository source.

itermatch(restrict, sorter=<built-in function sorted>, **kwargs)[source]

Yield packages matching the given restriction from the selected source.

scope = <PackageScope desc='version' @0x7fc9bedc9290>
class pkgcheck.sources.RepositoryRepoSource(options, source=None)[source]

Bases: RepoSource

Ebuild repository source yielding lists of versioned packages per package.

scope = <PackageScope desc='repo' @0x7fc9bedc9d90>
class pkgcheck.sources.RestrictionRepoSource(restriction, *args, **kwargs)[source]

Bases: RepoSource

Ebuild repository source supporting custom restrictions.

itermatch(restrict, **kwargs)[source]

Yield packages matching the given restriction from the selected source.

class pkgcheck.sources.Source(options, source)[source]

Bases: object

Base template for a source.

itermatch(restrict, **kwargs)[source]
required_addons = ()
scope = <PackageScope desc='repo' @0x7fc9bedc9d90>
class pkgcheck.sources.UnmaskedRepoSource(*args, **kwargs)[source]

Bases: RepoSource

Repository source that uses profiles/package.mask to filter packages.

itermatch(restrict, **kwargs)[source]

Yield packages matching the given restriction from the selected source.

class pkgcheck.sources.UnversionedSource(options)[source]

Bases: _FilteredSource

Source yielding unversioned atoms from matching packages.

keyfunc = operator.attrgetter('unversioned_atom')
class pkgcheck.sources.VersionedSource(options)[source]

Bases: _FilteredSource

Source yielding versioned atoms from matching packages.

keyfunc = operator.attrgetter('versioned_atom')
pkgcheck.sources.init_source(source, options, addons_map=None)[source]

Initialize a given source.