SG-36195 Remove Python<3.9 and SGD<=1.7 compat#157
Conversation
There was a problem hiding this comment.
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/CookieandTypeError/qRegisterResourceDatarecovery branches instartup.py. - Rename
EngineNotCompatibleWithDesktop16→EngineNotCompatibleWithDesktopand update its message/URL (currently with placeholder text). - Raise the compatibility threshold in
__ensure_engine_compatible_with_qt_versionfromv1.6.1tov1.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.
| "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 Report❌ Patch coverage is
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
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
No description provided.