Skip to content

SG-44795 Add PySide as a hard dependency - #83

Draft
julien-lang wants to merge 2 commits into
masterfrom
ticket/SG-44795-add-pyside-dependency
Draft

SG-44795 Add PySide as a hard dependency#83
julien-lang wants to merge 2 commits into
masterfrom
ticket/SG-44795-add-pyside-dependency

Conversation

@julien-lang

Copy link
Copy Markdown
Member

Summary

tk-docs-preview requires PySide to be importable when building documentation for Toolkit repos, but PySide was never declared as a dependency in setup.py. A direct install of tk-toolchain therefore fails immediately with ERROR PySide2, or PySide6 are required to build the documentation.

This PR adds PySide as a hard dependency using loose, unpinned constraints:

"PySide2; python_version <= '3.10'",
"PySide6; python_version > '3.10'",

Loose constraints are intentional: tk-docs-preview only checks that PySide is importable — it does not call any PySide API, so any working version is sufficient. Callers such as CI pipelines or DCC environments that need a specific version can continue to control it via their own install step, which will take precedence.

Test plan

  • Create a fresh virtual environment with no PySide installed
  • Run pip install git+https://github.com/shotgunsoftware/tk-toolchain.git@ticket/SG-44795-add-pyside-dependency
  • Confirm PySide2 or PySide6 was installed as a transitive dependency
  • Run tk-docs-preview on a Toolkit repo and confirm documentation builds successfully
  • Confirm CI passes (existing qt_wrapper matrix still controls the exact version used in tests)

🤖 Generated with Claude Code

tk-docs-preview requires PySide to be importable to build documentation
for Toolkit repos. Previously PySide was only provided by tk-internal,
so a direct install of tk-toolchain left it missing. Loose constraints
are used intentionally - any working version suffices for doc generation,
and callers such as tk-ci-tools control the exact version separately.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@codecov

codecov Bot commented Sep 1, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 48.95%. Comparing base (538f78e) to head (4c483c3).

Additional details and impacted files
@@           Coverage Diff           @@
##           master      #83   +/-   ##
=======================================
  Coverage   48.95%   48.95%           
=======================================
  Files          19       19           
  Lines         721      721           
=======================================
  Hits          353      353           
  Misses        368      368           
Flag Coverage Δ
Linux 48.54% <ø> (ø)
Python-3.10 48.54% <ø> (ø)
Python-3.11 48.95% <ø> (ø)
Python-3.13 48.95% <ø> (ø)
Python-3.9 48.54% <ø> (ø)
Windows 48.53% <ø> (ø)
macOS 48.68% <ø> (ø)

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

☔ View full report in Codecov by Harness.
📢 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.

1 participant