def parse_setuppy_dependency(package):
    package = 'python-' + package.replace('_', '-')
    if '=' in package:
        i = package.index('=')
        offset = 0
        if package[package.rindex('=')-1] in ('<', '>', '='):
            offset = 1

        name, sign, version = package[:i-offset], package[i-offset:i+1], package[i+1:]
        return Dependency(name, version, sign)
    return Dependency(package)
dataset/ETHPy150Open ella/citools/citools/debian/commands.py/parse_setuppy_dependency/original