def package_name_from_repo(repository):
    """
    Owner and project from repository.
    >>> package_name_from_repo('https://github.com/NoRedInk/noredink.git')
    ('NoRedInk', 'noredink')
    """

    repo_without_domain = repository.split('https://github.com/')[1].split('.git')[0]

    (owner, project) = repo_without_domain.split('/')
    return (owner, project)