From a2e9e266b6d7b9f44c0cd7c6a8f05855e978a1a5 Mon Sep 17 00:00:00 2001 From: Tomi Poveda Date: Sat, 26 Oct 2019 05:41:10 +0200 Subject: [PATCH] Updating configuration files to work with new YAML based config --- artellapipe/config/__init__.py | 70 ------------------- ...tellapipe-launcher-plugins-dccselector.yml | 59 ++++++++++++++++ artellapipe/config/artellapipe-launcher.yml | 5 ++ .../{config.yml => artellapipe-project.yml} | 1 - artellapipe/config/config.json | 30 -------- 5 files changed, 64 insertions(+), 101 deletions(-) create mode 100644 artellapipe/config/artellapipe-launcher-plugins-dccselector.yml create mode 100644 artellapipe/config/artellapipe-launcher.yml rename artellapipe/config/{config.yml => artellapipe-project.yml} (94%) delete mode 100644 artellapipe/config/config.json diff --git a/artellapipe/config/__init__.py b/artellapipe/config/__init__.py index bc156c6..e69de29 100644 --- a/artellapipe/config/__init__.py +++ b/artellapipe/config/__init__.py @@ -1,70 +0,0 @@ -#! /usr/bin/env python -# -*- coding: utf-8 -*- - -""" -Initialization module for artellapipe-config -""" - -from __future__ import print_function, division, absolute_import - -__author__ = "Tomas Poveda" -__license__ = "MIT" -__maintainer__ = "Tomas Poveda" -__email__ = "tpovedatd@gmail.com" - -import os -import inspect - - -class ArtellaConfigs(object): - - CHANGELOG_FILE_NAME = 'changelog.yml' - CONFIG_FILE_NAME = 'config.yml' - NAMING_FILE_NAME = 'naming.yml' - - def get_configurations_path(self): - """ - Returns path where tpNameIt module is stored - :return: str - """ - - try: - mod_dir = os.path.dirname(inspect.getframeinfo(inspect.currentframe()).filename) - except Exception: - try: - mod_dir = os.path.dirname(__file__) - except Exception: - try: - import tpDccLib - mod_dir = tpDccLib.__path__[0] - except Exception: - return None - - return mod_dir - - def get_changelog_file(self): - """ - Returns path where changelog file is located - :return: str - """ - - from tpPyUtils import path as path_utils - return path_utils.clean_path(os.path.join(self.get_configurations_path(), self.CHANGELOG_FILE_NAME)) - - def get_project_configuration_file(self): - """ - Returns path where project configuration file is located - :return: str - """ - - from tpPyUtils import path as path_utils - return path_utils.clean_path(os.path.join(self.get_configurations_path(), self.CONFIG_FILE_NAME)) - - def get_naming_file(self): - """ - Returns path where naming rules file is located - :return: str - """ - - from tpPyUtils import path as path_utils - return path_utils.clean_path(os.path.join(self.get_configurations_path(), self.NAMING_FILE_NAME)) diff --git a/artellapipe/config/artellapipe-launcher-plugins-dccselector.yml b/artellapipe/config/artellapipe-launcher-plugins-dccselector.yml new file mode 100644 index 0000000..743e68f --- /dev/null +++ b/artellapipe/config/artellapipe-launcher-plugins-dccselector.yml @@ -0,0 +1,59 @@ +# Base Configuration file for artellapipe-launcher-plugins-dccselector + +maya: + enabled: False + icon: color/maya + supported_versions: [] + default_version: "" + departments: [] + plugins: {} + +3ds max: + enabled: False + icon: color/maya + supported_versions: [] + default_version: "" + departments: [] + plugins: {} + +nuke: + enabled: False + icon: color/maya + supported_versions: [] + default_version: "" + departments: [] + +houdini: + enabled: False + icon: color/maya + supported_versions: [] + default_version: "" + departments: [] + +photoshop: + enabled: False + icon: color/maya + supported_versions: [] + default_version: "" + departments: [] + +zbrush: + enabled: False + icon: color/maya + supported_versions: [] + default_version: "" + departments: [] + +substance painter: + enabled: False + icon: color/maya + supported_versions: [] + default_version: "" + departments: [] + +substance designer: + enabled: False + icon: color/maya + supported_versions: [] + default_version: "" + departments: [] \ No newline at end of file diff --git a/artellapipe/config/artellapipe-launcher.yml b/artellapipe/config/artellapipe-launcher.yml new file mode 100644 index 0000000..87ad526 --- /dev/null +++ b/artellapipe/config/artellapipe-launcher.yml @@ -0,0 +1,5 @@ +# Base Configuration file for artellapipe-launcher + +version: 0.0.0 +name: Artella +plugins: [] \ No newline at end of file diff --git a/artellapipe/config/config.yml b/artellapipe/config/artellapipe-project.yml similarity index 94% rename from artellapipe/config/config.yml rename to artellapipe/config/artellapipe-project.yml index 4137a15..b1faada 100644 --- a/artellapipe/config/config.yml +++ b/artellapipe/config/artellapipe-project.yml @@ -1,6 +1,5 @@ # Base Configuration for Artella Projects -# Define configuration variables for project project: name: ${title} env_var: ${project_upper + "_PROJECT"} diff --git a/artellapipe/config/config.json b/artellapipe/config/config.json deleted file mode 100644 index f459963..0000000 --- a/artellapipe/config/config.json +++ /dev/null @@ -1,30 +0,0 @@ -{ - "PROJECT_NAME": "Artella", - "PROJECT_ENV_VARIABLE": "ARTELLA_PROJECT", - "SHELF_ICON": "", - "TRAY_ICON": "", - "PROJECT_NUMBER": "", - "PROJECT_ID": "", - "PROJECT_ICON": "artella", - "PROJECT_VERSION_FILE": "version.json", - "PROJECT_NAMING_FILE": "naming.json", - "PROJECT_URL": "", - "PROJECT_ASSET_DATA_FILENAME": "data.json", - "ASSET_TYPES": [], - "ASSET_FILES": [], - "ASSET_MUST_FILES": [], - "ASSET_IGNORED_PATHS": [], - "ASSETS_LIBRARY_SUPPORTED_FILES": {}, - "ASSET_WIP_STATUS": "working", - "ASSET_PUBLISH_STATUS": "published", - "PATHS_TO_REGISTER": ["pipeline", "pipeline/externals"], - "PROGRESS_BAR_COLOR_0": "255, 255, 255", - "PROGRESS_BAR_COLOR_1": "255, 255, 255", - "TAG_TYPES": [], - "OUTLINER_CATEGORIES": [], - "SHOT_REGEX": "*", - "SHOT_FILE_TYPES": [], - "SHOT_EXTENSION": ".shot", - "SHADERS_EXTENSION": ".ashader", - "PLAYBLAST_PRESETS_URL": "" -} \ No newline at end of file