Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for reading dependencies from pyproject.toml / requirements.txt? #15

Open
imbev opened this issue May 17, 2022 · 3 comments
Labels
enhancement New feature or request

Comments

@imbev
Copy link

imbev commented May 17, 2022

No description provided.

@imbev imbev changed the title Add support for reading dependencies from pyproject.toml / requirements.txt Add support for reading dependencies from pyproject.toml / requirements.txt? May 17, 2022
@rilma
Copy link

rilma commented Jul 29, 2022

Hi @imbev,
Could you provide some description about this?
Thanks,

@imbev
Copy link
Author

imbev commented 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.toml

@mattkram
Copy link
Collaborator

mattkram commented 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 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.

@mattkram mattkram added the enhancement New feature or request label Sep 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants