From d3f9e1d94c2e9f31afb9fee156f72799da1f5347 Mon Sep 17 00:00:00 2001 From: Lucas Eckhardt <117225985+lucaseck@users.noreply.github.com> Date: Thu, 21 Mar 2024 08:51:27 -0500 Subject: [PATCH] chore: rename shelf (#120) Signed-off-by: lucaseck <117225985+lucaseck@users.noreply.github.com> --- maya_submitter_plugin/plug-ins/DeadlineCloudForMaya.py | 2 +- src/deadline/maya_submitter/shelf.py | 4 ++-- .../unit/plugins/test_deadline_submitter_maya.py | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/maya_submitter_plugin/plug-ins/DeadlineCloudForMaya.py b/maya_submitter_plugin/plug-ins/DeadlineCloudForMaya.py index 4e61241..ab4f23a 100644 --- a/maya_submitter_plugin/plug-ins/DeadlineCloudForMaya.py +++ b/maya_submitter_plugin/plug-ins/DeadlineCloudForMaya.py @@ -20,7 +20,7 @@ # Tells maya which version of their api to use. maya_useNewAPI = True -VENDOR = "AWS Thinkbox" +VENDOR = "AWS" VERSION = "0.6.0" __log__ = logging.getLogger("Deadline") diff --git a/src/deadline/maya_submitter/shelf.py b/src/deadline/maya_submitter/shelf.py index 1e5c4af..3a0aefb 100644 --- a/src/deadline/maya_submitter/shelf.py +++ b/src/deadline/maya_submitter/shelf.py @@ -1,7 +1,7 @@ # Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. """ -Creates or updates the Deadline shelf. +Creates or updates the AWS Deadline shelf. """ import os from contextlib import contextmanager @@ -60,7 +60,7 @@ def build_shelf() -> None: """ Builds the Deadline Maya Shelf. """ - shelf_name = "Deadline" + shelf_name = "AWSDeadline" with _saved_shelf_selection() as g_shelf_top_level: # Create the Deadline shelf tab if it doesn't exist diff --git a/test/deadline_submitter_for_maya/unit/plugins/test_deadline_submitter_maya.py b/test/deadline_submitter_for_maya/unit/plugins/test_deadline_submitter_maya.py index a5d6940..7bb3398 100644 --- a/test/deadline_submitter_for_maya/unit/plugins/test_deadline_submitter_maya.py +++ b/test/deadline_submitter_for_maya/unit/plugins/test_deadline_submitter_maya.py @@ -62,7 +62,7 @@ class VersionMatcher: def __eq__(self, other: Any) -> bool: return bool(VersionMatcher.VERSION_REGEX.match(other)) - mock_MFnPlugin.assert_called_once_with(plugin, "AWS Thinkbox", VersionMatcher()) + mock_MFnPlugin.assert_called_once_with(plugin, "AWS", VersionMatcher()) plugin_obj.registerCommand.assert_called_once_with( "DeadlineCloudSubmitter", mel_commands.DeadlineCloudSubmitterCmd