コード例 #1
0
def unlock(project_dir, env_spec_name):
    """Unlock dependency versions."""
    project = load_project(project_dir)
    if console_utils.print_project_problems(project):
        return 1
    status = project_ops.unlock(project, env_spec_name=env_spec_name)
    return _handle_status(status)
コード例 #2
0
    def unlock(self, project, env_spec_name):
        """Attempt to unfreeze dependency versions in anaconda-project-lock.yml.

        If the env_spec_name is None rather than a name,
        all env specs are unfrozen.

        Args:
            project (Project): the project
            env_spec_name (str): environment spec name or None for all environment specs

        Returns:
            ``Status`` instance
        """
        return project_ops.unlock(project=project, env_spec_name=env_spec_name)