def find_name_version_debian(project):
    """Find the name and the version of a Debian project.

    Args:
        project (str): project name with version (e.g. dpkg-1.18.25)

    Returns:
        name, version (tuple): name and version (e.g. dpkg,1.18.25)

    """
    name = project[:project[:project.find('.')].rfind('-')]
    version = project[project[:project.find('.')].rfind('-') + 1:]
    return (name, version)