FollowTheProcess/pytoil

[FEATURE] New python starter should export a requirements.txt or environment.yml

FollowTheProcess opened this issue · 1 comments

When using pytoil new --starter python --venv [venv|conda] pytoil should export a populated requirements.txt or environment.yml file into the created project which would include all common_packages specified in the config as well as any additional packages passed on the command line.

The solution you would like

On invoking the mentioned command, and after the starter template and virtual environment has been set up, pytoil should export the requirements. This will be different depending on the environment:

  • venv: Just write the list of packages to requirements.txt in append mode
  • conda: Run conda env export --from-history --name <envname>

Closed because it already does this, the python starter does not use conda anyway. Apparently I don't understand my own project!