Skip to content

fix: reuse existing tool.pixi.feature pypi-dependencies table#5504

Merged
ruben-arts merged 3 commits intoprefix-dev:mainfrom
Premkumar-2004:issue-5492
Feb 16, 2026
Merged

fix: reuse existing tool.pixi.feature pypi-dependencies table#5504
ruben-arts merged 3 commits intoprefix-dev:mainfrom
Premkumar-2004:issue-5492

Conversation

@Premkumar-2004
Copy link
Contributor

@Premkumar-2004 Premkumar-2004 commented Feb 14, 2026

Description

pixi add --pypi -f <feature> was always creating [dependency-groups] entries even when [tool.pixi.feature.<feature>.pypi-dependencies] already existed. Fixed by checking for existing table first.

Fixes #5492

How Has This Been Tested?

Added tests for both cases - reusing existing table and fallback to dependency-groups.

AI Disclosure

  • This PR contains AI-generated content.
    • I have tested any AI-generated content in my PR.
    • I take responsibility for any AI-generated content in my PR.

Tools: Claude

Checklist:

  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • I have added sufficient tests to cover my changes.
  • I have verified that changes that would impact the JSON schema have been made in schema/model.py.

Copy link
Contributor

@ruben-arts ruben-arts left a comment

Choose a reason for hiding this comment

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

This works, thank you

@ruben-arts ruben-arts merged commit 657c6ee into prefix-dev:main Feb 16, 2026
37 checks passed
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.

When using pixi add --pypi -f <feature> <package> reuse the existing tool.pixi.feature table

2 participants