Skip to content
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

[cuegui] Add dynamic version fetching for the CueGUI About menu #1517

Conversation

ramonfigueiredo
Copy link
Collaborator

@ramonfigueiredo ramonfigueiredo commented Sep 25, 2024

  • Implemented new configuration options in cuegui.yaml:
    • cuegui.use.custom.version: Toggle between using VERSION.in or custom CueGUI version.
    • cuegui.custom.cmd.version.stable: Command to fetch stable version (setenv OPENCUE_BETA 0)
    • cuegui.custom.cmd.version.beta: Command to fetch beta version (setenv OPENCUE_BETA 1)
  • Modified Constants.py to fetch version dynamically based on config.
  • Updated MainWindows.py to display the correct version (stable or beta) in the About menu.
  • Fallback to VERSION.in if custom version is disabled.

- Implemented new configuration options in cuegui.yaml:
  - `cuegui.use.custom.version`: Toggle between using VERSION.in or dynamic spawn version.
  - `cuegui.custom.cmd.version.stable`: Command to fetch stable version from spawn.
  - `cuegui.custom.cmd.version.beta`: Command to fetch beta version from spawn.
- Modified Constants.py to fetch version dynamically based on config.
- Updated MainWindows.py to display the correct version (stable or beta) in the About menu.
- Fallback to VERSION.in if custom version is disabled.
@ramonfigueiredo
Copy link
Collaborator Author

ramonfigueiredo commented Sep 25, 2024

CueGUI About menu

If you go to the CueGUI About menu (Cuetopia or Cuecommander):

  • Menu: Help > About

image

The current version doesn't show the CueGUI version, only QT and Python versions

Cuetopia
image

Cuecommander
image

New solution: If cuegui.use.custom.version = True, use custom version

  • cuegui.custom.cmd.version.stable: Command to fetch stable version (setenv OPENCUE_BETA 0)
  • cuegui.custom.cmd.version.beta: Command to fetch beta version (setenv OPENCUE_BETA 1)

New CueGUI About Menu with custom version (BETA version)

Cuetopia
image

Cuecommander
image

New solution: New CueGUI About Menu with custom version (STABLE version)

Cuetopia
image

Cuecommander
image

If cuegui.use.custom.version = False, use the VERSION.in version

Cuetopia
image

Cuecommander
image

New CueGUI About Menu with custom version (STABLE version)

Cuetopia
image

Cuecommander
image

@ramonfigueiredo
Copy link
Collaborator Author

The reason for giving the option to show the custom CueGUI version using a shell command:

  • Currently, Sony Pictures Imageworks (SPI) uses the SPK and SPAWN (https://getspk.io/) to deploy the CueGUI. So it is interesting to have an option to run the SPK/SPAWN CLI tool to get the current version of the CueGUI (BETA or STABLE versions) using the shell.

@ramonfigueiredo ramonfigueiredo self-assigned this Sep 25, 2024
cuegui/cuegui/MainWindow.py Outdated Show resolved Hide resolved
cuegui/cuegui/config/cuegui.yaml Outdated Show resolved Hide resolved
cuegui/cuegui/config/cuegui.yaml Outdated Show resolved Hide resolved
Co-authored-by: Diego Tavares <[email protected]>
Signed-off-by: Ramon Figueiredo <[email protected]>
@ramonfigueiredo ramonfigueiredo force-pushed the dynamic-version-about-menu branch from b0931a3 to 8f02f32 Compare September 26, 2024 02:51
ramonfigueiredo and others added 3 commits September 25, 2024 19:52
Co-authored-by: Diego Tavares <[email protected]>
Signed-off-by: Ramon Figueiredo <[email protected]>
Co-authored-by: Diego Tavares <[email protected]>
Signed-off-by: Ramon Figueiredo <[email protected]>
- Added `check=True` to subprocess.run to raise errors on non-zero exit codes.
- Added handling for `subprocess.CalledProcessError` to improve error reporting.
- Ensured more robust command execution with explicit failure handling.
@ramonfigueiredo ramonfigueiredo marked this pull request as ready for review September 26, 2024 10:38
@ramonfigueiredo ramonfigueiredo removed their assignment Sep 26, 2024
@ramonfigueiredo ramonfigueiredo merged commit 4e0ec97 into AcademySoftwareFoundation:master Sep 26, 2024
13 checks passed
@ramonfigueiredo ramonfigueiredo deleted the dynamic-version-about-menu branch October 15, 2024 17:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants