Skip to content

chore: Remove pyside2 form extras during constraints generation#1411

Merged
Czaki merged 1 commit into
developfrom
fix_dependecies
Jun 9, 2026
Merged

chore: Remove pyside2 form extras during constraints generation#1411
Czaki merged 1 commit into
developfrom
fix_dependecies

Conversation

@Czaki

@Czaki Czaki commented Jun 9, 2026

Copy link
Copy Markdown
Collaborator

The pyside2no longer have releases and is about to remove from project (as napari 0.7.0 changed bundle to PySide6)

Summary by Sourcery

CI:

  • Remove the pyside2 extra from the upgrade-dependencies workflow when compiling constraints.

Summary by CodeRabbit

  • Chores
    • Updated the automated dependency upgrade workflow configuration to use updated Python UI library options.

The `pyside2`no longer have releases and is about to remove from project (as napari 0.7.0 changed bundle to `PySide6`)
@Czaki Czaki added this to the 0.17.0 milestone Jun 9, 2026
@sourcery-ai

sourcery-ai Bot commented Jun 9, 2026

Copy link
Copy Markdown
Contributor
Reviewer's guide (collapsed on small PRs)

Reviewer's Guide

This PR updates the dependency constraints generation workflow to stop including the deprecated pyside2 extra, aligning constraints with the current supported GUI backends.

File-Level Changes

Change Details Files
Stop generating constraints for the deprecated pyside2 extra in the upgrade-dependencies workflow.
  • Remove the --extra pyside2 flag from the flags array used for constraints generation
  • Ensure the constraints compilation loop now only targets pyqt6, pyside6, test, and pyinstaller_base extras
.github/workflows/upgrade-dependencies.yml

Tips and commands

Interacting with Sourcery

  • Trigger a new review: Comment @sourcery-ai review on the pull request.
  • Continue discussions: Reply directly to Sourcery's review comments.
  • Generate a GitHub issue from a review comment: Ask Sourcery to create an
    issue from a review comment by replying to it. You can also reply to a
    review comment with @sourcery-ai issue to create an issue from it.
  • Generate a pull request title: Write @sourcery-ai anywhere in the pull
    request title to generate a title at any time. You can also comment
    @sourcery-ai title on the pull request to (re-)generate the title at any time.
  • Generate a pull request summary: Write @sourcery-ai summary anywhere in
    the pull request body to generate a PR summary at any time exactly where you
    want it. You can also comment @sourcery-ai summary on the pull request to
    (re-)generate the summary at any time.
  • Generate reviewer's guide: Comment @sourcery-ai guide on the pull
    request to (re-)generate the reviewer's guide at any time.
  • Resolve all Sourcery comments: Comment @sourcery-ai resolve on the
    pull request to resolve all Sourcery comments. Useful if you've already
    addressed all the comments and don't want to see them anymore.
  • Dismiss all Sourcery reviews: Comment @sourcery-ai dismiss on the pull
    request to dismiss all existing Sourcery reviews. Especially useful if you
    want to start fresh with a new review - don't forget to comment
    @sourcery-ai review to trigger a new review!

Customizing Your Experience

Access your dashboard to:

  • Enable or disable review features such as the Sourcery-generated pull request
    summary, the reviewer's guide, and others.
  • Change the review language.
  • Add, remove or edit custom review instructions.
  • Adjust other review settings.

Getting Help

@coderabbitai

coderabbitai Bot commented Jun 9, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

📝 Walkthrough

Walkthrough

This PR updates the Python dependency constraint compilation workflow step, replacing the pyside2 extra with pyside6 while retaining pyqt6 in the compilation flags.

Changes

Dependency Compilation Extras

Layer / File(s) Summary
Update extras flags in constraint compilation
.github/workflows/upgrade-dependencies.yml
The uv pip compile step updates the extras array to include --extra pyqt6 and --extra pyside6, replacing --extra pyside2.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~2 minutes

Possibly related PRs

  • 4DNucleome/PartSeg#1215: Both PRs modify the same workflow constraint compilation step, changing extras flags and resulting constraint output filenames.
  • 4DNucleome/PartSeg#1157: Aligned goal of updating install constraints for Qt packages, with this PR swapping pyside2 for pyside6 in the dependency compilation extras.

Poem

🐰 From pyside2 to pyside6, what a switch!
Qt extras now shimmer, oh so rich,
Constraints compiled fresh, the workflow's delight,
One tiny line makes the dependencies right! ✨

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title accurately describes the main change: removing pyside2 from extras during constraints generation in the workflow.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fix_dependecies

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@sourcery-ai sourcery-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Hey - I've reviewed your changes and they look great!


Sourcery is free for open source - if you like our reviews please consider sharing them ✨
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.

@sonarqubecloud

sonarqubecloud Bot commented Jun 9, 2026

Copy link
Copy Markdown

@Czaki Czaki added the skip check PR title skip spellcheking PR title label Jun 9, 2026
@Czaki

Czaki commented Jun 9, 2026

Copy link
Copy Markdown
Collaborator Author

@coderabbitai review

@coderabbitai

coderabbitai Bot commented Jun 9, 2026

Copy link
Copy Markdown
Contributor
✅ Action performed

Review finished.

Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🧹 Nitpick comments (1)
.github/workflows/upgrade-dependencies.yml (1)

36-36: Adjust scope: pyside alias doesn’t affect the workflow’s constraint generation

The workflow generates constraints with --extra pyside6 (not --extra pyside), and there’s no usage of PartSeg[pyside] / --extra pyside elsewhere in the repo. So pyproject.toml’s pyside = ["PartSeg[pyside2]"] is not an active contract mismatch with the current constraints-generation step.

Optional: if you intend the generic pyside extra to mean “current” backend (PySide6), consider renaming/updating that alias; otherwise leave it for the PySide2 legacy backend.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In @.github/workflows/upgrade-dependencies.yml at line 36, The workflow uses
flags=(--extra pyqt6 --extra pyside6 --extra test --extra pyinstaller_base)
while pyproject.toml defines pyside = ["PartSeg[pyside2]"], so the workflow’s
constraint generation targets pyside6 not the pyside alias; fix by making the
intent explicit: either add/replace --extra pyside in the flags tuple to match
the pyproject alias (flags (…) include --extra pyside) or update the
pyproject.toml alias pyside to reference the current backend (e.g., Point to
PartSeg[pyside6] or rename the alias to pyside2 if you intend the legacy
backend); update the symbol names flags, --extra pyside6, and the pyproject.toml
entry pyside = ["PartSeg[pyside2]"] accordingly.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Nitpick comments:
In @.github/workflows/upgrade-dependencies.yml:
- Line 36: The workflow uses flags=(--extra pyqt6 --extra pyside6 --extra test
--extra pyinstaller_base) while pyproject.toml defines pyside =
["PartSeg[pyside2]"], so the workflow’s constraint generation targets pyside6
not the pyside alias; fix by making the intent explicit: either add/replace
--extra pyside in the flags tuple to match the pyproject alias (flags (…)
include --extra pyside) or update the pyproject.toml alias pyside to reference
the current backend (e.g., Point to PartSeg[pyside6] or rename the alias to
pyside2 if you intend the legacy backend); update the symbol names flags,
--extra pyside6, and the pyproject.toml entry pyside = ["PartSeg[pyside2]"]
accordingly.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: 51c3f531-3f40-4b24-9173-20e82009e464

📥 Commits

Reviewing files that changed from the base of the PR and between 1ac2cb2 and b0bb253.

📒 Files selected for processing (1)
  • .github/workflows/upgrade-dependencies.yml

@Czaki Czaki merged commit bb02649 into develop Jun 9, 2026
59 of 61 checks passed
@Czaki Czaki deleted the fix_dependecies branch June 9, 2026 23:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

skip check PR title skip spellcheking PR title

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant