conda / conda-lock

Lightweight lockfile for conda environments
https://conda.github.io/conda-lock/
Other
495 stars 104 forks source link

Support project-specific dep overrides / settings in pyproject.toml #115

Open mdekstrand opened 3 years ago

mdekstrand commented 3 years ago

It would be useful for conda-lock's pyproject.toml support if it could support configuring dependency-specific information directly in pyproject.toml. I see at least two things that would be useful to configure:

This could look something like:

[tool.cargo-lock.dependencies]
hpfrec = { source = "pip" }
msgpack = { conda-package = "python-msgpack" }
mariusvniekerk commented 3 years ago

This is conda-lock not cargo-lock?

mdekstrand commented 3 years ago

@mariusvniekerk Oops, sorry. Meant conda-lock and "Conda package" - using both Conda & Cargo on different projects, brain slipped.

mariusvniekerk commented 3 years ago

Okay, that sounds reasonable to me. Changes would probably be needed mostly in the source parser and maybe the spec handler class to carry along the pip dependencies.

olivier-lacroix commented 2 years ago

Being able to specify which packages should be installed via pip would indeed be great.

My understanding is that it is possible for poetry users currently, but that users of PEP621 pyproject.toml are unfortunately out of luck.

olivier-lacroix commented 2 years ago

I have given it a go in https://github.com/conda-incubator/conda-lock/pull/186 (for the pip item only)