Closed jklebes closed 1 month ago
I assume it should be all under [tool.hatch.envs.testdask]
:
[tool.hatch.envs.testdask]
type = "conda"
environment-file = "environment.yml"
Thanks @imagejan , you're right, this was just a case of reading instructions too literally on my part.
Hi, I would like to use this on my project with an existing conda environment.yml , but after following the recommended additions to pyproject.toml it does not seem to trigger conda install of the required libraries into the hatch virtual environment.
I tried this test project:
I added these lines to the bottom of
pyproject.toml
:I added this simple
environment.yml
:conda is present and this enivronment.yml works to create the desired environment via conda.
run
hatch -e testdask shell
checkconda list
There is no dask etc in the conda list, but there is my project hatchtest.py 0.0.1 .
From the other issues I vaguely got the impression that it doesn't work to create the hatch environment via
shell
, so I also triedrun
in, it also did not install numpy and dask.
Not sure if I'm doing it wrong (then the documentation is unclear) or if it's broken.
Thanks, Jason