@publisher
def check_only_published_versions_are_used():
    non_published_versions = []
    for ref in pm.listReferences():
        v = ref.version
        if v and not v.is_published:
            non_published_versions.append(v)

    if len(non_published_versions):
        raise PublishError(
            'Please use only <b>published</b> versions for:<br><br>%s' %
            '<br>'.join(
                map(lambda x: x.nice_name,
                    non_published_versions[:MAX_NODE_DISPLAY])
            )
        )
Get a package given its name
dataset/ETHPy150Open eoyilmaz/anima/anima/env/mayaEnv/publish.py/check_only_published_versions_are_used--crossover with--dataset/ETHPy150Open aldebaran/qibuild/python/qitoolchain/database.py/DataBase.get_package