Skip to content

feat: Backlog/monorepo-refactor-2025/story #603

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 7 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
The diff you're trying to view is too large. We only load the first 3000 changed files.
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -57,4 +57,7 @@ Thumbs.db

# Ignore specific resource files
#**/ftrack_qt_style/resource.py
libs/resource
libs/resource

# Ignore no_push_* folder contents
no_push_*/*
15 changes: 9 additions & 6 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
repos:
- repo: https://github.com/psf/black
rev: 23.1.0
hooks:
- id: black
language_version: python3.10
exclude: tools/cookiecutter*
- repo: https://github.com/astral-sh/ruff-pre-commit
# Ruff version.
rev: v0.8.3
hooks:
# Run the linter.
- id: ruff
args: [ --fix ]
# Run the formatter.
- id: ruff-format
File renamed without changes.
64 changes: 64 additions & 0 deletions configuration/maya/ftrack/configuration/maya/launch.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
#_metadata:
#ignore: True # ignore this config file

launcher:
common:
_metadata:
marked_for_deletion: true
context:
- Task
- Shot
environment-variables:
MAYA_PLUGIN_PATH: "/path/to/arnold/plugin"
TRACTOR_SERVER: "http://trartor:80"

maya-default:
icon: maya
application-name: maya
context: ${..common.context}
environment-variables: ${..common.environment-variables}
application-collect:
_metadata:
marked_for_deletion: true
python-packages:
any:
- name: json
version: 1.1.1
- name: pyyaml
version: 6.0.2
"3.7":
- name: ftrack-connect-package
version: 1.0.0
- name: ftrack-framework
version: 3.0.0
"3.11":
- name: ftrack-connect-package
version: 2.0.0
- name: ftrack-framework
version: 3.5.0
windows:
executable: ${ft.glob:C:\Program Files\Autodesk\Maya*\bin\maya.exe}
version: ${ft.regex.search:${.executable}, "\d{4}"}
variant: ${ft.regex.search:${.executable}, ".*bin\\maya(.*)\.exe", "default"}
python: ${ft.regex.sub:${.executable}, "mayapy.exe", "(maya.*?\.exe)"}
python-version: ${ft.regex.search:${ft.exec:${.python},--version},"(\d+\.\d+\.\d+)"}
identifier: ${ft.join:${ft.zip.list:${ft.key:2},${.version},${.variant},${.python-version}}}
python-packages: ${ft.select:${..python-packages}, ${ft.regex.search:${.python-version}, "(\d+\.\d+)", "any"}}
darwin:
executable: ${ft.glob:/Applications/Autodesk/maya2025/Maya.app/Contents/MacOS/Maya}
version: ${ft.regex.search:${.executable}, "\d{4}"}
variant: ${ft.regex.search:${.executable}, ".*bin/maya(.*)", "default"}
python: ${ft.regex.sub:${.executable}, "mayapy", "Maya$"}
python-version: ${ft.regex.search:${ft.exec:${.python},--version},"(\d+\.\d+\.\d+)"}
# ft.key goes on reverse direction, so key0 is identifier, darwin, application-collect, and so on.
identifier: ${ft.join:${ft.zip.list:${ft.key:3},${.version},${.variant},${.python-version}}}
python-packages:
# Setting this on a list otherwise it will not resolve correctly everything is a list and is mathing items.
- - name: pyyaml
version: 6.0.2
- name: click
version: 8.1.7

platform:
windows: ${ft.zip.dict:${..application-collect.windows}}
darwin: ${ft.zip.dict:${..application-collect.darwin}}
16 changes: 16 additions & 0 deletions configuration/maya/pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
[project]
name = "ftrack.configuration.maya"
version = "0.1.0"
description = "Add your description here"
authors = [{name = "ftrack Integrations Team", email = "[email protected]"}]
readme = "README.md"
requires-python = ">=3.11, <3.12"
dependencies = [
# "click>8.0",
# "ftrack-configurator>=0.1.0",
]

[project.entry-points."connect.configuration"]
ftrack-configuration-maya-discovery = "ftrack.configuration.maya"


File renamed without changes.
21 changes: 21 additions & 0 deletions configuration/runtime/ftrack/configuration/runtime/runtime.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
runtime:
username: ${ft.lower:${ft.runtime.cached:username}}
architecture: ${ft.lower:${ft.runtime.cached:architecture}}
platform: ${ft.lower:${ft.runtime.cached:platform}}
hostname: ${ft.lower:${ft.runtime.cached:hostname}}
python_version: ${ft.runtime.cached:python_version}
startup_time: ${ft.runtime.cached:time}
current_time: ${ft.runtime.live:time}

connect:
installation_folder: ftrack-connect

path:
configuration-installation: ${ft.paths:config}/${..connect.installation_folder}/configuration
#connect-installation: ${ft.paths:config}
#tool-installation: ${ft.paths:config}
venv-installation: ${ft.paths:config}/${..connect.installation_folder}/venv
log: ${ft.paths:log}/${..connect.installation_folder}

environment:
HOME: ${oc.env:HOME}
12 changes: 12 additions & 0 deletions configuration/runtime/pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
[project]
name = "ftrack.configuration.runtime"
version = "0.1.0"
description = "Add your description here"
authors = [{name = "ftrack Integrations Team", email = "[email protected]"}]
readme = "README.md"
requires-python = ">=3.11, <3.12"
dependencies = [
]

[project.entry-points."connect.configuration"]
ftrack-configuration-runtime-discovery = "ftrack.configuration.runtime"
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
Empty file.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Loading