-
Notifications
You must be signed in to change notification settings - Fork 212
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: add pypi index #2416
feat: add pypi index #2416
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, could you add it in the docs/reference/project_configuration.md
?
python = "~=3.12.0" | ||
|
||
[pypi-dependencies] | ||
foo = {{ version = "*", index = "{pypi_indexes}multiple-indexes-a/index" }} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it's good to also add torch here, it shouldn't be to slow as it's only solving and it's the main usecase for this feature.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've added this in different test, I think its better to isolate this one :)
Co-authored-by: Ruben Arts <[email protected]>
Something is broken, we need to have this fix first: #2501 |
This should all be good now, the failing test is unrelated. |
Description
The stretch goal is to add custom indexes for pixi like here: https://docs.astral.sh/uv/configuration/indexes/
However, In this PR we add only
pinning
https://docs.astral.sh/uv/configuration/indexes/#pinning-a-package-to-an-indexA small example of this would be would be:
We want to iterate on this further and allow the user to specify indexes in the manifest and pin to them by name. This will be done in subsequent PR's.
Tests
There are two automated tests that have been added: