Add support for reading dependencies from pyproject.toml / requirements.txt?
Hi @imbev, Could you provide some description about this? Thanks,
It would be useful if dependencies of the wrapped script could be specified and added to the html file via pyproject.toml or requirements.txt .
The syntax might be something like pyscript wrap <filename.py> --require pyproject.toml
Hi! Thanks for the idea, I was thinking about something similar. Essentially, I also think it would be nice to generate <py-env> section from requirements.txt, pyproject.toml, or environment.yml.
I haven't had time to look into how this mapping would work, as the version constraint syntax is slightly different between pip, poetry, conda, etc. We would need to take these into account when generating the <py-env> section from a file.