Skip to content

SG-40980 Add support for VFX CY2026 - Python 3.13 - Qt 6.8#1080

Merged
julien-lang merged 13 commits intomasterfrom
ticket/SG-40980
Feb 5, 2026
Merged

SG-40980 Add support for VFX CY2026 - Python 3.13 - Qt 6.8#1080
julien-lang merged 13 commits intomasterfrom
ticket/SG-40980

Conversation

@julien-lang
Copy link
Copy Markdown
Member

@julien-lang julien-lang commented Jan 6, 2026

This pull request updates support for newer Python and VFX Reference Platform versions, improves compatibility with Python 3.13, and includes several bug fixes and documentation updates. The most significant changes are compatibility improvements for Python 3.13, updates to documentation and badges, and minor bug fixes and refactoring in the vendored shotgun_api3 library.

Python 3.13 and VFX Platform Support

  • Updated badges in README.md to reflect support for VFX Reference Platform CY2022–CY2026 and Python 3.9, 3.10, 3.11, and 3.13.
  • Updated CI pipeline to use a branch that supports Python 3.13 (azure-pipelines.yml).

Python Compatibility and Bug Fixes

  • Added shims in pyside6_patcher.py to prevent warnings for exec_ methods, improving PySide2/6 compatibility.
  • Adjusted test logic in test_sgre.py to handle deprecation of positional arguments in Python 3.13.
  • Fixed file URL handling in test_shotgun.py to be cross-platform and clarified usage of keyword arguments for download_url. [1] [2]
  • Updated a warning message to recommend upgrading to Python 3.13 instead of 3.11.

Vendored shotgun_api3 Updates

  • Bumped vendored API version to 3.10.0 and updated commit ID. [1] [2]
  • Improved docstring formatting and links for the export_page method.
  • Refactored authenticate_human_user to use a finally block for restoring config, simplifying error handling.
  • Simplified datetime parsing in _inbound_visitor to use datetime.datetime.strptime.
  • Fixed typo in a comment and removed an outdated Python 2/3 compatibility note in shotgun.py. [1] [2]

General Improvements

  • Minor code cleanup (removed extra blank line) and added missing imports for clarity in test files. [1] [2] [3]

@julien-lang julien-lang changed the title SG-40980 Test run CI SG-40980 Add support for Python 3.13 Jan 7, 2026
Comment thread tests/util_tests/test_shotgun.py
@codecov
Copy link
Copy Markdown

codecov Bot commented Jan 28, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 79.63%. Comparing base (5eb446f) to head (e98fb99).
⚠️ Report is 1 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #1080   +/-   ##
=======================================
  Coverage   79.63%   79.63%           
=======================================
  Files         198      198           
  Lines       20620    20620           
=======================================
  Hits        16420    16420           
  Misses       4200     4200           
Flag Coverage Δ
Linux 79.09% <ø> (ø)
Python-3.10 79.45% <ø> (+0.34%) ⬆️
Python-3.11 79.35% <ø> (ø)
Python-3.13 79.35% <ø> (?)
Python-3.9 79.41% <ø> (ø)
Windows 79.12% <ø> (ø)
macOS 79.10% <ø> (ø)

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.

@julien-lang julien-lang requested a review from Copilot February 4, 2026 17:59
Copy link
Copy Markdown
Contributor

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

This pull request adds support for Python 3.13 and updates the VFX Reference Platform compatibility while incorporating bug fixes and improvements to the vendored shotgun_api3 library. The changes ensure the codebase remains compatible with modern Python versions and follows current best practices.

Changes:

  • Added Python 3.13 support with appropriate CI pipeline updates and compatibility adjustments
  • Updated vendored shotgun_api3 to version 3.10.0 with improved error handling and code modernization
  • Fixed cross-platform file URL handling in tests and corrected deprecated API usage

Reviewed changes

Copilot reviewed 9 out of 9 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
README.md Updated badges to reflect support for VFX Platform CY2022-CY2026 and Python 3.9-3.13
azure-pipelines.yml Updated CI to use branch with Python 3.13 support
python/tank_vendor/shotgun_api3/init.py Updated deprecation warning to recommend Python 3.13
python/tank_vendor/shotgun_api3/shotgun.py Bumped version to 3.10.0, fixed typo, improved docstrings, refactored error handling, and modernized datetime parsing
python/tank_vendor/shotgun_api3/lib/README.md Removed outdated Python 2/3 compatibility note
python/tank_vendor/shotgun_api3/commit_id Updated to reflect new vendored version
python/tank/util/pyside6_patcher.py Added shims for exec_ methods to prevent warnings
tests/util_tests/test_shotgun.py Fixed Windows file URL handling and updated to use keyword argument
tests/util_tests/test_sgre.py Added conditional logic to handle Python 3.13 deprecation of positional arguments

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

Comment thread tests/util_tests/test_shotgun.py
@julien-lang julien-lang marked this pull request as ready for review February 4, 2026 18:00
@julien-lang julien-lang requested a review from a team February 4, 2026 18:00
Copy link
Copy Markdown
Contributor

@carlos-villavicencio-adsk carlos-villavicencio-adsk left a comment

Choose a reason for hiding this comment

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

Great job! 🚀

@julien-lang julien-lang changed the title SG-40980 Add support for Python 3.13 SG-40980 Add support for VFX CY2026 Feb 4, 2026
@julien-lang julien-lang changed the title SG-40980 Add support for VFX CY2026 SG-40980 Add support for VFX CY2026 - Python 3.13 - Qt 6.8 Feb 5, 2026
@julien-lang julien-lang merged commit b8b3764 into master Feb 5, 2026
27 checks passed
@julien-lang julien-lang deleted the ticket/SG-40980 branch February 5, 2026 21:33
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.

3 participants