support conda env and pyproject.toml?
Question: Often I like to create a dev conda environment with the required dependencies of a project, containing conda/mamba packages instead of pip. I.e. I would like to be able to create a development environment for a python package as a conda env using
mamba env create -f environment.yml
mamba activate theenv
pip install -e . # doesn't install any deps, since mamba did it already
However, maintaining dependencies in environment.yml
and pyproject.toml
separately is a pain and error-prone. I don't think conda supports reading pyproject.toml unfortunately, but this StackOverflow discussion shows that it is possible to support it by using an old-style requirements.txt
file separate from the pyproject.toml
file. Would this be a reasonable way to support both?