[conda] Support conda-style requirements.txt files? #450
Labels
integration
Integrating FawltyDeps with other tools
invalid
This doesn't seem right
needs-real-projects-test
This issue is more easily tackled once we have a project in `real_project` that illustrate the issue
parsing-deps
research-needed
type: feature request
(found while exploring potential Conda support for FawltyDeps, see e.g. #447 for more context)
I'm following the documentation at https://www.activestate.com/resources/quick-reads/how-to-manage-python-dependencies-with-conda/ to see what file format(s) conda use to encode dependency declarations.
Specifically, the following commands are mentioned here:
conda create --name my_conda_project python=3.8 conda activate my_conda_project conda install requests conda list -e > requirements.txt
This yields the following
requirements.txt
on my machine:This file is NOT compatible with
pip
(see e.g. https://stackoverflow.com/questions/50777849/from-conda-create-requirements-txt-for-pip3) and it does not follow https://pip.pypa.io/en/stable/reference/requirements-file-format/.Instead, the Conda documentation states that this
requirements.txt
can be installed with this conda command:Currently, attempting to parse the above
requirements.txt
file with FawltyDeps yields nothing at all.We can add som debug log messages to our requirements.txt parsing code to print out invalid lines from the parse:
And with this, we get the following debug output from the parser for each line in the above
requirements.txt
:I don't know how prevalent this
requirements.txt
format is compared to e.g. theenvironment.yml
format that Conda is also known to use. I suspect that we will need to somehow add support for this differentrequirements.txt
format if we want to support Conda fully.The text was updated successfully, but these errors were encountered: