镜像站点 · 本页由第三方 GitHub 只读镜像提供,非 GitHub 官方站点,不接受任何登录或凭据输入。前往 github.com
Skip to content

Update compile_pip_requirements to support requirements.in files from multiple external repositories #624

Closed

Description

@UebelAndre

🚀 feature request

Relevant Rules

compile_pip_requirements

Description

I have some external repositories that have some rules backed by python targets and have some requirements. Instead of needing to create multiple pip_parse or pip_install repositories, I would like to generate a requirements.txt file that has all the necessary packages so I don't end up downloading things multiple times.

Describe the solution you'd like

I would like to be able to pass the requirements.in files to compile_pip_requirements and have that inject them as -r {requirements} before compiling.

compile_pip_requirements(
    name = "requirements",
    extra_args = ["--allow-unsafe"],
    requirements_in = "requirements.in",
    requirements_txt = "requirements.txt",
    external_requirements = [
        "@tool_a//:requirements.in",
        "@tool_b//:requirements.in",
        "@tool_c//:requirements.in",
    ],
)

Describe alternatives you've considered

Have you considered any alternative solutions or workarounds?

Open to ideas but I'd like to easily be able to merge other sets of requirements into one collection (which is one of the benefits of being able to compile a locked requirements.txt file).

Activity

  1. UebelAndre commented on Feb 17, 2022

    @UebelAndre
    ContributorAuthor

    Do I recall correctly that @mattem had sketched up a potential solution once upon a time?

  2. github-actions commented on Dec 11, 2022

    @github-actions
    Contributor

    This issue has been automatically marked as stale because it has not had any activity for 180 days. It will be closed if no further activity occurs in 30 days.
    Collaborators can add an assignee to keep this open indefinitely. Thanks for your contributions to rules_python!

  3. github-actions commented on Jan 10, 2023

    @github-actions
    Contributor

    This issue was automatically closed because it went 30 days without a reply since it was labeled "Can Close?"

  4. UebelAndre commented on Jan 11, 2023

    @UebelAndre
    ContributorAuthor

    This is still desired.

    I don't think rules_python gets so many issues that this bot needs to continually close them. This functionality should be disabled.

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions