def get_package_name(project, version=None, config=None):
    """ Get the package name of a project. """
    res = [project.name]
    if version:
        res.append(version)
    if config:
        res.append(config)
    return '-'.join(res)
