From d52a60975b6fda37d6ca08c4e23bd882e541ad2c Mon Sep 17 00:00:00 2001 From: Ramon Figueiredo Date: Tue, 21 Jan 2025 16:55:43 -0800 Subject: [PATCH] [cuesubmit] Replace PySide2 with qtpy in CueSubmit files - Import statements updated to use `qtpy` instead of `PySide2` - Documentation in `README.md` updated to reflect the change - `setup.py` modified to include `qtpy` in the `install_requires` list instead of `PySide2` --- cuesubmit/README.md | 2 +- cuesubmit/plugins/maya/CueMayaSubmit.py | 2 +- cuesubmit/plugins/nuke/CueNukeSubmit.py | 2 +- cuesubmit/setup.py | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/cuesubmit/README.md b/cuesubmit/README.md index fc7c55937..658b7b4af 100644 --- a/cuesubmit/README.md +++ b/cuesubmit/README.md @@ -4,5 +4,5 @@ The OpenCue job submission GUI. This is a Python-based QT app through which you can submit jobs to an OpenCue deployment. It can run as a standalone application, or as a plugin in -applications that support PySide2 integration, such as Autodesk's Maya or +applications that support PySide/qtpy integration, such as Autodesk's Maya or the Foundry's Nuke. diff --git a/cuesubmit/plugins/maya/CueMayaSubmit.py b/cuesubmit/plugins/maya/CueMayaSubmit.py index a3a7f67f0..df72949e4 100644 --- a/cuesubmit/plugins/maya/CueMayaSubmit.py +++ b/cuesubmit/plugins/maya/CueMayaSubmit.py @@ -19,7 +19,7 @@ import maya.cmds as cmds import maya.utils -from PySide2 import QtCore, QtWidgets +from qtpy import QtCore, QtWidgets # Path where all of the Cue Python libraries and their dependencies are installed. # The recommended workflow is for this to be a virtual environment, like: diff --git a/cuesubmit/plugins/nuke/CueNukeSubmit.py b/cuesubmit/plugins/nuke/CueNukeSubmit.py index 7b98f5e83..c756d5a33 100644 --- a/cuesubmit/plugins/nuke/CueNukeSubmit.py +++ b/cuesubmit/plugins/nuke/CueNukeSubmit.py @@ -15,7 +15,7 @@ import argparse import logging -from PySide2 import QtCore, QtWidgets +from qtpy import QtCore, QtWidgets from cuesubmit import Constants from cuesubmit import JobTypes diff --git a/cuesubmit/setup.py b/cuesubmit/setup.py index 1bb39a057..272f29408 100644 --- a/cuesubmit/setup.py +++ b/cuesubmit/setup.py @@ -61,7 +61,7 @@ 'future', 'grpcio', 'grpcio-tools', - 'PySide2', + 'qtpy', 'PyYAML', ] )