Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(9)  |  Call(7)  |  Derive(0)  |  Import(2)
Parse and test package version predicates.

>>> v = VersionPredicate('pyepat.abc (>1.0, <3333.3a1, !=1555.1b3)')

The `name` attribute provides the full dotted name that is given::

>>> v.name
'pyepat.abc'

The str() of a `VersionPredicate` provides a normalized(more...)

src/b/e/Bento-HEAD/bento/compat/dist.py   Bento(Download)
    def set_requires(self, value):
        import distutils.versionpredicate
        for v in value:
            distutils.versionpredicate.VersionPredicate(v)
        self.requires = value
    def set_obsoletes(self, value):
        import distutils.versionpredicate
        for v in value:
            distutils.versionpredicate.VersionPredicate(v)
        self.obsoletes = value

src/n/o/nova-HEAD/nova/scheduler/filters/image_props_filter.py   nova(Download)
                return True
            img_prop_predicate = versionpredicate.VersionPredicate(
                'image_prop (%s)' % version_required)
            hyper_ver_str = utils.convert_version_to_str(hyper_version)
            return img_prop_predicate.satisfied_by(hyper_ver_str)

src/n/o/nova-HEAD/nova/cells/filters/image_properties.py   nova(Download)
    def _matches_version(self, version, version_requires):
        predicate = versionpredicate.VersionPredicate(
                             'prop (%s)' % version_requires)
        return predicate.satisfied_by(version)
 

src/g/s/gsdview-HEAD/gsdview/pluginmanager.py   gsdview(Download)
import pkgutil
import logging
from distutils.versionpredicate import VersionPredicate
 
try:
 
        try:
            vp = VersionPredicate(depstring)
        except ValueError as e:
            # @TODO: remove dependency from self._app

src/g/o/gocept.selenium-2.1.1/src/gocept/selenium/util.py   gocept.selenium(Download)
            if have_predicate:
                requirement = distutils.versionpredicate.VersionPredicate(
                    'Browser (%s)' % self.required_version)
                skip = not requirement.satisfied_by(
                    str(agent['browser']['version']))

src/g/a/gantt-HEAD/gantt/scheduler/filters/image_props_filter.py   gantt(Download)
                return True
            img_prop_predicate = versionpredicate.VersionPredicate(
                'image_prop (%s)' % version_required)
            hyper_ver_str = utils.convert_version_to_str(hyper_version)
            return img_prop_predicate.satisfied_by(hyper_ver_str)

src/4/s/4Suite-XML-1.0.2/Ft/Lib/DistExt/Version.py   4Suite-XML(Download)
 
try:
    from distutils.versionpredicate import VersionPredicate, \
         split_provision as SplitProvision, \
         splitUp as SplitComparison