Repository navigation
Conversation
…g-requirements-files
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
There was a problem hiding this comment.
Thanks! Looks good overall. Only pixi can benefit from an improvement
pixi: files from a named environment are reinstalled as default.
Pixi can have multiple environments in one toml file:
[dependencies]
python = "3.12.*"
[feature.image_processing.dependencies]
numpy = ">=2.0"
scipy = "*"
[feature.reporting.dependencies]
pandas = "*"
[environments]
image_processing = ["image_processing"]
reporting = ["reporting"]We could store the environment being used
{
"manager": "pixi",
"environment": "image_processing",
"files": [
"pixi.toml",
"pixi.lock",
],
}
E.g. modify _gather_files to pass environment: Environment
# /path/to/project/.pixi/envs/image_processing/bin/python
environment_name = python.parents[2].name
Edit: or just Path(sys.prefix).name. Anyway, you get the idea.
And then ewoks install could do
pixi install --environment image_processing
This solve the default problem and installs only the the environment that is used.
|
@woutdenolf I had created this issue about the pixi problem: #355 I will fix the problem here then. Thanks! |
woutdenolf
left a comment
There was a problem hiding this comment.
You can do it in a follow-up PR linked to that issue. Thanks!
PR summary
ewoks convertnow stores the project files of the current environment.pyproject.toml+uv.lockpyproject.toml+poetry.lockpixi.toml(orpyproject.toml) +pixi.lockfilesstays empty andewoks installrecreates the environment from the storeddistributions.Limitations
.venv(poetry needsvirtualenvs.in-project true).default.AI Disclosure