Skip to content

Conversation

@simon-d-bmw
Copy link
Contributor

Prior to this change, python dependencies were only downloaded from the index
defined in requirements.txt. This is a limitation of rules_py, which usually uses
the bazel downloader for python dependencies. However, if a locked
requirements.txt is provided, it directly uses pip to download patches
from the index specified in the file.

Allow specifying custom index URLs through an environment variable.

Similar to eclipse-score/docs-as-code#103.

Prior to this change, python dependencies were only downloaded from the index
defined in requirements.txt. This is a limitation of rules_py, which usually uses
the bazel downloader for python dependencies. However, if a locked
requirements.txt is provided, it directly uses pip to download patches
from the index specified in the file.

Allow specifying custom index URLs through an environment variable.
@simon-d-bmw
Copy link
Contributor Author

@AlexanderLanin could you please review this pull request?

@AlexanderLanin AlexanderLanin requested a review from Copilot July 1, 2025 05:38
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR enables specifying a custom pip index URL via an environment variable when using pip to download dependencies in Bazel.

  • Enhances pip.parse() in MODULE.bazel with envsubst and extra_pip_args parameters.
  • Removes a trailing '-' line at the end of the file, potentially cleaning up file formatting.
Comments suppressed due to low confidence (1)

python_basics/MODULE.bazel:61

  • [nitpick] The removal of the trailing '-' line may be unintentional or affect file formatting consistency. Please verify if this change was intended.
use_repo(multitool, "multitool")

@AlexanderLanin AlexanderLanin merged commit 985c2e6 into eclipse-score:main Jul 1, 2025
2 checks passed
@github-project-automation github-project-automation bot moved this from Draft to Done in Infrastructure Jul 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants