Skip to content

Conversation

@aryanyk
Copy link

@aryanyk aryanyk commented Dec 16, 2025

Context

This PR implements support for specifying a custom PyPI index when adding a PyPI dependency via the pixi add command, as requested in #4587.

Currently, users must manually edit the manifest to configure a non-default PyPI index. This change brings Pixi in line with tools like uv add by allowing the index to be specified directly at add-time.


What’s changed

  • Added a new --index <URL> parameter to pixi add --pypi
  • Wired the provided index URL into the generated PixiPypiSpec for the added dependency
  • Ensured the change is per-dependency, not workspace-wide
  • Added an integration test validating that the index is persisted correctly in the manifest

result

Example

pixi add --pypi requests --index https://example.com/simple


### Checklist:

-  I have performed a self-review of my own code
-  I have commented my code, particularly in hard-to-understand areas
-  I have added sufficient tests to cover my changes.




@aryanyk aryanyk marked this pull request as draft December 16, 2025 18:38
@baszalmstra
Copy link
Contributor

Can we close this in favor of #5151 ?

@lucascolley lucascolley added enhancement New features area:add Related to pixi add pypi Issue related to PyPI dependencies labels Dec 31, 2025
@tdejager tdejager closed this Jan 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:add Related to pixi add enhancement New features pypi Issue related to PyPI dependencies

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants