Did I find the right examples for you? yes no

All Samples(2)  |  Call(2)  |  Derive(0)  |  Import(0)

src/d/e/depsolver-HEAD/depsolver/solver/rule.py   depsolver(Download)
        elif reason == "package_requires":
            try:
                Requirement.from_string(reason_details, version_factory=version_factory)
            except Exception:
                raise DepSolverError("Invalid requirement string '%s'" % (reason_details,))
    def required_package_name(self):
        if self.reason == "job_install":
            return self.reason_data
        elif self.reason == "package_requires":
            return Requirement.from_string(self.reason_data)