You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Add support for reading dependencies from pyproject.toml / requirements.txt? #15
changed the title [-]Add support for reading dependencies from pyproject.toml / requirements.txt[/-][+]Add support for reading dependencies from pyproject.toml / requirements.txt?[/+]on May 17, 2022
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.
Activity
[-]Add support for reading dependencies from pyproject.toml / requirements.txt[/-][+]Add support for reading dependencies from pyproject.toml / requirements.txt?[/+]rilma commentedon Jul 29, 2022
Hi @imbev,
Could you provide some description about this?
Thanks,
imbev commentedon Jul 29, 2022
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.tomlmattkram commentedon Aug 8, 2022
Hi! Thanks for the idea, I was thinking about something similar. Essentially, I also think it would be nice to generate
<py-env>section fromrequirements.txt,pyproject.toml, orenvironment.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.