Skip to content

SG-36195 Remove Python<3.9 and SGD<=1.7 compat#157

Draft
julien-lang wants to merge 1 commit into
masterfrom
ticket/SG-36195-remove-py37-compatibility
Draft

SG-36195 Remove Python<3.9 and SGD<=1.7 compat#157
julien-lang wants to merge 1 commit into
masterfrom
ticket/SG-36195-remove-py37-compatibility

Conversation

@julien-lang
Copy link
Copy Markdown
Member

No description provided.

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Removes legacy compatibility shims for Python < 3.9 and tk-desktop <= 1.7, simplifying the bootstrap/run paths and renaming the now-only error class EngineNotCompatibleWithDesktop16 to EngineNotCompatibleWithDesktop. The Qt-compatibility version threshold for raising this error is bumped from v1.6.1 to v1.8.0, and the error message text is being reworded.

Changes:

  • Drop Python 3 / pre-0.19 core SyntaxError/Cookie and TypeError/qRegisterResourceData recovery branches in startup.py.
  • Rename EngineNotCompatibleWithDesktop16EngineNotCompatibleWithDesktop and update its message/URL (currently with placeholder text).
  • Raise the compatibility threshold in __ensure_engine_compatible_with_qt_version from v1.6.1 to v1.8.0.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.

File Description
python/shotgun_desktop/startup.py Removes obsolete Py3/old-core fallback exception handlers, renames the exception used, and bumps the compatibility version check to v1.8.0.
python/shotgun_desktop/errors.py Renames EngineNotCompatibleWithDesktop16 to EngineNotCompatibleWithDesktop and rewrites its user-facing message and link (contains TODO/placeholder content).

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +142 to +147
"Your version of tk-desktop is not compatible with this FlowPT Desktop {}.\n"
"\n"
"Please upgrade your site configuration's tk-desktop to v2.5.9+ or "
"download PTR desktop app 1.5.9 or earlier <a href='{}'>here</a>".format(
"Please upgrade your site configuration's tk-desktop to v2.5.9+ or " ## TODO change
"download FlowPT desktop v1.XXX5.9 or earlier <a href='{}'>here</a>".format( # OK but wrong info since unsupported....
app_version,
"https://community.shotgridsoftware.com/t/a-new-version-of-shotgrid-desktop-has-been-released/13877/99999",
"https://community.shotgridsoftware.com/t/13877",
EngineNotCompatibleWithDesktop16,
EngineNotCompatibleWithDesktop,
UpgradeCoreError,
UpgradeCorePython3Error,
@@ -663,8 +640,8 @@ def __ensure_engine_compatible_with_qt_version(engine, app_version):
return

# Versions of desktop older than v2.5.0 have issues with desktop 1.6.1+, so raise an error.
@codecov
Copy link
Copy Markdown

codecov Bot commented May 15, 2026

Codecov Report

❌ Patch coverage is 0% with 5 lines in your changes missing coverage. Please review.
✅ Project coverage is 10.50%. Comparing base (a2eacff) to head (0d4b446).

Files with missing lines Patch % Lines
python/shotgun_desktop/startup.py 0.00% 4 Missing ⚠️
python/shotgun_desktop/errors.py 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master     #157      +/-   ##
==========================================
+ Coverage   10.30%   10.50%   +0.19%     
==========================================
  Files          13       13              
  Lines         582      571      -11     
==========================================
  Hits           60       60              
+ Misses        522      511      -11     
Flag Coverage Δ
Linux 10.15% <0.00%> (+0.19%) ⬆️
Python-3.10 10.15% <0.00%> (-0.16%) ⬇️
Python-3.11 10.50% <0.00%> (+0.19%) ⬆️
Python-3.13 10.15% <0.00%> (-0.16%) ⬇️
Python-3.9 10.50% <0.00%> (+0.19%) ⬆️
Windows 9.98% <0.00%> (+0.18%) ⬆️
macOS 9.80% <0.00%> (+0.18%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

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