-
Notifications
You must be signed in to change notification settings - Fork 151
Add pixi config to pyproject.toml #1794
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
base: main
Are you sure you want to change the base?
Conversation
| [tool.pixi.environments] | ||
| default = { solve-group = "default" } | ||
| complete = { features = ["complete"], solve-group = "default" } | ||
| development = { features = ["development"], solve-group = "default" } | ||
| jax = { features = ["jax"], solve-group = "default" } | ||
| numba = { features = ["numba"], solve-group = "default" } | ||
| rtd = { features = ["rtd"], solve-group = "default" } | ||
| tests = { features = ["tests"], solve-group = "default" } |
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.
Does this work when you don't have anything defined under tool.pixi.features? IIUC, this is using the different entries under project.optional-dependencies, right?
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.
Yes, that's correct!
|
|
||
| [tool.pixi.workspace] | ||
| channels = ["conda-forge"] | ||
| platforms = ["linux-64"] |
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 this will only support development on linux?
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 suppose, but I wouldn't be able to test it on any other platform so I am thinking that it is easier if people who want support on other platforms add it themselves
| rtd = { features = ["rtd"], solve-group = "default" } | ||
| tests = { features = ["tests"], solve-group = "default" } | ||
|
|
||
| [tool.pixi.tasks] |
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.
Why this empty entry?
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.
pixi init created this entry but one could add tasks. Maybe testing, running mypy, building the docs, etc?
|
I like Pixi a lot and I've been using it almost everywhere now. We use it for Bambi and Formulae. If you want to have a look, these are the pyproject.toml https://github.com/bambinos/bambi/blob/main/pyproject.toml https://github.com/bambinos/formulae/blob/master/pyproject.toml. They are quite similar. In short, we use setuptools for building the package, and pixi for anything dev related. Dev specific dependencies, such as those needed for tests, do not go into With that said, I can imagine not everybody uses pixi for developing |
Description
Related Issue
Checklist
Type of change