pixi icon indicating copy to clipboard operation
pixi copied to clipboard

Support --format and --import together

Open claudiushaag opened this issue 10 months ago • 1 comments

Problem description

When reactivating an old conda project, I wanted to introduce a pyproject.toml and using pixi at once. This currently does not work, as the error

pixi init --format pyproject --import .\environment_droplet_from_history.yml
    error: the argument '--format <FORMAT>' cannot be used with '--import <ENVIRONMENT_FILE>'

appears. I then had to move the pixi.toml content manually into a pyproject.toml.

It would be awesome if Pixi would handle that manual step!

claudiushaag avatar Apr 03 '25 09:04 claudiushaag

Sounds reasonable to me 🙂

Hofer-Julian avatar Apr 03 '25 09:04 Hofer-Julian

Was just wondering if this feature is on the roadmap. Was honestly the first thing I tried when installing pixi and would very much help in transferring conda environments while also remaining compatible with pyproject specs.

sidmadala avatar May 04 '25 23:05 sidmadala