[package]
# Semantic Versioning is used: https://semver.org/
version = "1.1.13"
category = "Internal"

# Lists people or organizations that are considered the "authors" of the package.
authors = ["NVIDIA"]

# The title and description fields are primarly for displaying extension info in UI
title = "Stage Templates"
description="Allows custom stage templates to be loaded on omni.usd.get_context().new_stage_async()"

[dependencies]
"omni.kit.commands" = {}
"omni.usd" = {}
"omni.kit.actions.core" = {}
"omni.kit.primitive.mesh" = {}

[settings]
persistent.app.newStage.defaultTemplate = "sunlight"
persistent.app.newStage.templatePath = ["${app_documents}/scripts/new_stage"]
persistent.app.stage.timeCodeRange = [0, 100]

[[python.module]]
name = "omni.kit.stage_templates"

[[test]]
args = [
    "--/renderer/enabled=pxr",
    "--/renderer/active=pxr",
    "--/renderer/multiGpu/enabled=false",
    "--/renderer/multiGpu/autoEnable=false", # Disable mGPU with PXR due to OM-51026, OM-53611
    "--/renderer/multiGpu/maxGpuCount=1",
    "--/app/asyncRendering=false",
    "--/app/file/ignoreUnsavedStage=true",
    "--/app/window/dpiScaleOverride=1.0",
    "--/app/window/scaleToMonitor=false",
    "--no-window",
]

dependencies = [
    "omni.hydra.pxr",
    "omni.kit.renderer.capture",
    "omni.kit.mainwindow",
    "omni.kit.window.file",
    "omni.kit.menu.utils",
    "omni.kit.window.preferences",
    "omni.kit.property.usd",
    "omni.kit.ui_test",
    "omni.kit.test_suite.helpers",
    "omni.kit.material.library"
]

stdoutFailPatterns.exclude = [
    "*HydraRenderer failed to render this frame*",  # Can drop a frame or two rendering with OpenGL interop
    "*Cannot use omni.hydra.pxr without OpenGL interop*" # Linux TC configs with multi-GPU might not have OpenGL available
]

pyCoverageFilter = ["omni.kit.stage_templates"]  # Restrict coverage to this extension
