Home | History | Annotate | Download | only in pkg_resources

Lines Matching refs:Requirement

206     'Distribution', 'Requirement', 'EntryPoint',
250 Requirement.
342 """Return an IResourceProvider for the named module or requirement"""
343 if isinstance(moduleOrReq, Requirement):
468 """Return a current distribution object for a Requirement or string"""
470 dist = Requirement.parse(dist)
471 if isinstance(dist, Requirement):
474 raise TypeError("Expected string, Requirement, or Distribution", dist)
583 Build a working set from a requirement spec. Rewrites sys.path.
622 """Find a distribution matching requirement `req`
625 returns it as long as it meets the version requirement specified by
627 does *not* meet the `req` requirement, ``VersionConflict`` is raised.
711 `requirements` must be a sequence of ``Requirement`` objects. `env`,
715 will be invoked with each requirement that cannot be met by an
723 invoked to obtain the correct version of the requirement and activate
729 optional requirement. Instead, we want to be able to assert that these
743 # Mapping of requirement to set of distributions that required it;
933 Map each requirement to the extras that demanded it.
1040 environment that meets the ``Requirement`` in `req`. If no suitable
1059 def obtain(self, requirement, installer=None):
1060 """Obtain a distribution matching `requirement` (e.g. via download)
1062 Obtain a distro that matches requirement (e.g. via download). In the
1064 ``installer(requirement)``, unless `installer` is None, in which case
1069 return installer(requirement)
2380 req = Requirement.parse('x' + extras_spec)
2678 """Return a ``Requirement`` that matches this distribution exactly"""
2684 return Requirement.parse(spec)
2915 """Yield ``Requirement`` objects for each specification in `strs`
2933 yield Requirement(line)
2936 class Requirement(packaging.requirements.Requirement):
2938 """DO NOT CALL THIS UNDOCUMENTED METHOD; use Requirement.parse()!"""
2940 super(Requirement, self).__init__(requirement_string)
2959 isinstance(other, Requirement) and
2982 return "Requirement.parse(%r)" % str(self)