pkgcore.restrictions.packages module¶
restriction classes designed for package level matching
- class pkgcore.restrictions.packages.Conditional(*args: Hashable, disable_inst_caching=False, **kwargs: Hashable)[source]¶
Bases:
PackageRestrictionBase object representing a conditional package restriction.
Used to control whether a payload of restrictions are accessible or not.
- conditional = True¶
- payload¶
- class pkgcore.restrictions.packages.KeyedAndRestriction(*args: Hashable, disable_inst_caching=False, **kwargs: Hashable)[source]¶
Bases:
AndRestriction- type: T_restriction = 'package'¶
- class pkgcore.restrictions.packages.PackageRestriction(*args: Hashable, disable_inst_caching=False, **kwargs: Hashable)[source]¶
Bases:
GenericEquality,basePackage data restriction.
- property attr¶
- property attrs¶
- conditional = False¶
- ignore_missing¶
- negate¶
- restriction¶
- subtype = 'values'¶
- type: T_restriction = 'package'¶