pkgcore.ebuild.cpv module

gentoo ebuild specific base package class

class pkgcore.ebuild.cpv.CPV(*args, versioned=None)[source]

Bases: base

base ebuild package class

Variables:
  • category – str category

  • package – str package

  • key – strkey (cat/pkg)

  • version – str version

  • revision – str revision

  • versioned_atom – atom matching this exact version

  • unversioned_atom – atom matching all versions of this package

category
cpvstr
fullver
key
package
revision
classmethod unversioned(*args)[source]
property unversioned_atom
version
classmethod versioned(*args)[source]
property versioned_atom
class pkgcore.ebuild.cpv.Revision(*args, **kwargs)[source]

Bases: UserString

Internal revision class storing revisions as strings and comparing as integers.

class pkgcore.ebuild.cpv.UnversionedCPV(*args)[source]

Bases: CPV

class pkgcore.ebuild.cpv.VersionedCPV(*args)[source]

Bases: CPV

pkgcore.ebuild.cpv.isvalid_pkg_name(chunks)[source]
pkgcore.ebuild.cpv.isvalid_rev(s: str)[source]
pkgcore.ebuild.cpv.ver_cmp(ver1: str, rev1: str, ver2: str, rev2: str) int[source]