-
Notifications
You must be signed in to change notification settings - Fork 232
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Command to create new Pixi environments from requirements.txt
or environment.yml
files
#1410
Comments
You can already import an environment.yml during init via |
Thanks, could not find any references to this while going through the docs. Does this command also work with |
Nope, it does not sorry. |
Linking this to a discord chat: https://discord.com/channels/1082332781146800168/1261794228460195910 For those reading this, we would also like to support Which means reading @Kaweees mentioned in Discord he wanted to give this a go, please do! |
In case |
@jacobj45 Could you clarify the intended scope of this issue? I'm new to pixi, but from what I understand so far, So my questions are:
I ask because all the discussion above is focused on creating new pixi projects from |
Hi @ctrueden, good question. This issue was indeed always looked at from the project idea. But I agree it would be awesome to have an import command on an existing project! I haven't giving this much though yet but I could imagine we support @olivier-lacroix what do you think of that? |
What about a new toplevel command |
@ctrueden I like that option :-) |
I just used You can get it with: pipx install --force git+https://github.com/conda/conda-lock@main You can generate a conda-lock render-lock-spec --kind=pixi.toml --stdout \
--file=environments/dev-environment.yaml \
--file=pyproject.toml \
--pixi-project-name=conda-lock \
--editable conda-lock=. \
> pixi.toml You can view the result here. This should hopefully work in general with almost any |
I threw together a quick draft of a migration guide in conda/conda-lock#708: preview link. I'm hoping to use this technique to migrate a bunch of projects to pixi. I hope it can help others do the same! I'm very eager to get feedback 😁 |
Looks like |
Description
It would be great to have a command that can create new Pixi environments from existing
requirements.txt
(pip) orenvironment.yml
(conda) files.Motivation
Having such a command would make it easier for existing projects that use these files for dependency management to migrate to Pixi.
The text was updated successfully, but these errors were encountered: