def as_requirement(self):
        if isinstance(self.parsed_version, packaging.version.Version):
            spec = "%s==%s" % (self.project_name, self.parsed_version)
        else:
            spec = "%s===%s" % (self.project_name, self.parsed_version)

        return Requirement.parse(spec)
Registers callbacks found in a plugin
dataset/ETHPy150Open anzev/hedwig/build/pip/pip/_vendor/pkg_resources/__init__.py/Distribution.as_requirement--crossover with--dataset/ETHPy150Open JohnMaguire/Cardinal/cardinal/plugins.py/PluginManager._register_plugin_callbacks