Skip to content
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

Add pypi-dependencies to the [target.<platform>.*] syntax and functionality #499

Closed
ruben-arts opened this issue Nov 27, 2023 · 0 comments · Fixed by #539
Closed

Add pypi-dependencies to the [target.<platform>.*] syntax and functionality #499

ruben-arts opened this issue Nov 27, 2023 · 0 comments · Fixed by #539
Assignees

Comments

@ruben-arts
Copy link
Contributor

ruben-arts commented Nov 27, 2023

Just like normal dependencies we need pypi-dependencies per target.

[target.win-64.pypi-depencencies]
pytest = "*"

pytest should then only be added on win-64.

baszalmstra added a commit that referenced this issue Dec 7, 2023
This PR will let the user add pypi packages to the `pixi.toml`
Examples:
- `pixi add --pypi pytest matplotlib==3.8.0`
- `pixi add --pypi --platform linux-64 pytest<7`

Some notable mentions:
- The `pixi add` spec type is not a `matchspec` anymore but a normal
string to create two code paths.
- This also add the `[target.platfrom.pypi-dependencies]` to the
manifest
- This PR does **not**  include the `pixi rm --pypi x` yet

Closes #498 and closes #499

---------

Co-authored-by: Bas Zalmstra <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Status: Done
Development

Successfully merging a pull request may close this issue.

1 participant