microsoft / mu_devops

Project Mu Developer Operations
https://microsoft.github.io/mu/
Other
26 stars 22 forks source link

pip: Sync core stuart requirements #304

Closed Javagedes closed 4 months ago

Javagedes commented 8 months ago

Note: I plan on this being new functionality for 202311 and should not be merged (if accepted) until then.

Description

There are multiple core pip packages required for stuart to work (both for the invocable itself, and the core plugins). This commit adds a requirements.txt file to the .pytool directory to sync these requirements across all repositories using stuart.

Repositories should not pip install this file directly, but instead link against it in their own requirements file using -r .pytool/requirements.txt. They should still add repository specific requirements to their own requirements file.

Adds packages to the ignore list of dependabot so that it does not create PRs for dependencies in .pytool/requirements.txt

The main benefit of this change is to allow multiple requirements to be updated at the same time, in a single PR, to reduce churn and total PRs necessary.

Example

mu_feature_config

.
├── .pytool
│      ├── requirements.txt (sync'd)
├── pip-requirements.txt

pip-requirements.txt

-r .pytool/requirements.txt
pywin32==306; sys_platform == 'win32

final command (unchanged) pip install --upgrade -r pip-requirements.txt

github-actions[bot] commented 5 months ago

This PR has been automatically marked as stale because it has not had activity in 60 days. It will be closed if no further activity occurs within 7 days. Thank you for your contributions.

github-actions[bot] commented 4 months ago

This pull request has been automatically been closed because it did not have any activity in 60 days and no follow up within 7 days after being marked stale. Thank you for your contributions.