Skip to content

Shared redesign of embedded requirements feature #44

Closed
@jaraco

Description

@jaraco

Background

In pypa/pip#3971, key members of the PyPA have leveled critiques of the embedded requirements feature, where a user can supply requirements and other common installer directives to signal to the tool how (best) to run the script. This feature emerged from the use-case where a script author would like to distribute a single file and have that file be runnable by any number of end users with minimal guidance, allowing the file to be published to a gist or alongside other scripts in a directory without needing additional context for executability.

Goals

  • the tool should be able to infer install requirements and index URL.
  • the tool must be able to parse these directives without executing the script (as executing the script should be able to rely on the presence of those items).
  • the syntax should be as intuitive as possible. As a corollary, the syntax should aim to re-use syntax familiar to the user (primarily the author, but also the end user).
  • (optional) the tool should be able to infer additional installer directives such as --extra-index-url or --quiet.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions