@staticmethod
def split_package_version(package_version):
    """Split package==3.2.3 pip freeze output."""
    split_string = package_version.split('==')
    if len(split_string) < 2 and '-e' in package_version:
        split_string = package_version.split('=')
        return {'name': split_string[1]}
    return {'name': split_string[0], 'version': split_string[1]}
