Skip to content

Commit

Permalink
Merge pull request #549 from ynput/feature/AY-4921_Move-TrayPublisher…
Browse files Browse the repository at this point in the history
…-client-code

TrayPublisher: Move client code
  • Loading branch information
iLLiCiTiT authored May 24, 2024
2 parents 55d8f11 + c73e84a commit c7723bb
Show file tree
Hide file tree
Showing 48 changed files with 27 additions and 21 deletions.
1 change: 1 addition & 0 deletions client/ayon_core/addon/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@
MOVED_ADDON_MILESTONE_VERSIONS = {
"applications": VersionInfo(0, 2, 0),
"clockify": VersionInfo(0, 2, 0),
"traypublisher": VersionInfo(0, 2, 0),
"tvpaint": VersionInfo(0, 2, 0),
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ def tray_init(self):
def on_action_trigger(self):
self.run_traypublisher()

def connect_with_addons(self, enabled_modules):
"""Collect publish paths from other modules."""
def connect_with_addons(self, enabled_addons):
"""Collect publish paths from other addons."""
publish_paths = self.manager.collect_plugin_paths()["publish"]
self.publish_paths.extend(publish_paths)

Expand All @@ -55,9 +55,9 @@ def cli_main():
def launch():
"""Launch TrayPublish tool UI."""

from ayon_core.tools import traypublisher
from ayon_traypublisher import ui

traypublisher.main()
ui.main()


@cli_main.command()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
)

REVIEW_EXTENSIONS = set(IMAGE_EXTENSIONS) | set(VIDEO_EXTENSIONS)
SHARED_DATA_KEY = "openpype.traypublisher.instances"
SHARED_DATA_KEY = "ayon.traypublisher.instances"


class HiddenTrayPublishCreator(HiddenCreator):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
from ayon_core.pipeline import install_host
from ayon_core.pipeline.create import CreateContext

from ayon_core.hosts.traypublisher.api import TrayPublisherHost
from ayon_traypublisher.api import TrayPublisherHost


def csvpublish(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,13 @@
CreatorError
)
from ayon_core.pipeline import colorspace
from ayon_core.hosts.traypublisher.api.plugin import TrayPublishCreator
from ayon_traypublisher.api.plugin import TrayPublishCreator


class CreateColorspaceLook(TrayPublishCreator):
"""Creates colorspace look files."""

identifier = "io.openpype.creators.traypublisher.colorspace_look"
identifier = "io.ayon.creators.traypublisher.colorspace_look"
label = "Colorspace Look"
product_type = "ociolook"
description = "Publishes color space look file."
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,7 @@
VIDEO_EXTENSIONS, IMAGE_EXTENSIONS
)
from ayon_core.pipeline.create import CreatorError
from ayon_core.hosts.traypublisher.api.plugin import (
TrayPublishCreator
)
from ayon_traypublisher.api.plugin import TrayPublishCreator


class IngestCSV(TrayPublishCreator):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@
import ayon_api
import opentimelineio as otio

from ayon_core.hosts.traypublisher.api.plugin import (
from ayon_traypublisher.api.plugin import (
TrayPublishCreator,
HiddenTrayPublishCreator
)
from ayon_core.hosts.traypublisher.api.editorial import (
from ayon_traypublisher.api.editorial import (
ShotMetadataSolver
)
from ayon_core.pipeline import CreatedInstance
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
BoolDef,
TextDef,
)
from ayon_core.hosts.traypublisher.api.plugin import TrayPublishCreator
from ayon_traypublisher.api.plugin import TrayPublishCreator


class EditorialPackageCreator(TrayPublishCreator):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@


def initialize():
from ayon_core.hosts.traypublisher.api.plugin import SettingsCreator
from ayon_traypublisher.api.plugin import SettingsCreator

project_name = os.environ["AYON_PROJECT_NAME"]
project_settings = get_project_settings(project_name)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
TaskNotSetError,
)

from ayon_core.hosts.traypublisher.api.plugin import TrayPublishCreator
from ayon_core.hosts.traypublisher.batch_parsing import (
from ayon_traypublisher.api.plugin import TrayPublishCreator
from ayon_traypublisher.batch_parsing import (
get_folder_entity_from_filename
)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@
CreatedInstance,
CreatorError
)
from ayon_core.hosts.traypublisher.api.plugin import TrayPublishCreator
from ayon_traypublisher.api.plugin import TrayPublishCreator


class OnlineCreator(TrayPublishCreator):
"""Creates instance from file and retains its original name."""

identifier = "io.openpype.creators.traypublisher.online"
identifier = "io.ayon.creators.traypublisher.online"
label = "Online"
product_type = "online"
description = "Publish file retaining its original file name"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@

from ayon_core.lib import AYONSettingsRegistry, is_running_from_build
from ayon_core.pipeline import install_host
from ayon_core.hosts.traypublisher.api import TrayPublisherHost
from ayon_core.tools.publisher.control_qt import QtPublisherController
from ayon_core.tools.publisher.window import PublisherWindow
from ayon_core.tools.common_models import ProjectsModel
Expand All @@ -24,6 +23,7 @@
ProjectSortFilterProxy,
PROJECT_NAME_ROLE,
)
from ayon_traypublisher.api import TrayPublisherHost


class TrayPublisherRegistry(AYONSettingsRegistry):
Expand Down
9 changes: 8 additions & 1 deletion server_addon/traypublisher/package.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
name = "traypublisher"
title = "TrayPublisher"
version = "0.1.5"
version = "0.2.0"

client_dir = "ayon_traypublisher"

ayon_required_addons = {
"core": ">0.3.2",
}
ayon_compatible_addons = {}

0 comments on commit c7723bb

Please sign in to comment.