Skip to content

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

Open

Description

@imbev
No description provided.

Activity

  1. 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
  2. rilma commented on Jul 29, 2022

    @rilma

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

  3. imbev commented on Jul 29, 2022

    @imbev
    Author

    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

  4. mattkram commented on Aug 8, 2022

    @mattkram
    Contributor

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions