-
-
Notifications
You must be signed in to change notification settings - Fork 870
Add docs for updating external dependencies #1280
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
sethmlarson
wants to merge
7
commits into
python:main
Choose a base branch
from
sethmlarson:sbom-externals
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 1 commit
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
6b6bbad
Add docs for updating external dependencies
sethmlarson 6646cf8
Apply suggestions from code review
sethmlarson cefc01d
Add PCbuild/build.bat --regen option to docs
sethmlarson a154e01
Apply suggestions from code review
sethmlarson cc0709a
Update developer-workflow/sbom.rst
sethmlarson b32b691
Add warning for non-core developers and external dependencies
sethmlarson 3588722
Apply suggestions from code review
sethmlarson File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Apply suggestions from code review
Co-authored-by: Ezio Melotti <[email protected]>
- Loading branch information
commit a154e0129b682f3ab2e18d9a307cf361efd12512
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -111,17 +111,22 @@ When removing a dependency: | |
Updating external dependencies (cpython-source-deps) | ||
---------------------------------------------------- | ||
|
||
Dependencies for Windows CPython builds are `stored in a separate repository <https://github.com/python/cpython-source-deps>`_ | ||
and then fetched during builds of CPython for Windows in the script :cpy-file:`PCbuild/get_externals.bat`. | ||
Dependencies for Windows CPython builds are `stored in a separate repository | ||
<https://github.com/python/cpython-source-deps>`_ and then fetched during | ||
builds of CPython for Windows in the script :cpy-file:`PCbuild/get_externals.bat`. | ||
|
||
In this script the libraries to fetch are designated by ``{name}-{version}`` Git refs being added to the ``libraries`` variable. | ||
SBOM tooling in the CPython repository matches these Git refs in order to build the :cpy-file:`Misc/externals.spdx.json` | ||
SBOM file. | ||
In this script the libraries to fetch are designated by ``{name}-{version}`` | ||
sethmlarson marked this conversation as resolved.
Show resolved
Hide resolved
|
||
Git refs being added to the ``libraries`` variable. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Would be helpful to clarify where the There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is still unclear. |
||
SBOM tooling in the CPython repository matches these Git refs in order | ||
to build the :cpy-file:`Misc/externals.spdx.json` SBOM file. | ||
|
||
When updating external dependencies for a CPython branch: | ||
|
||
1. Push the update to the ``cpython-source-deps`` repository and create a new Git tag. | ||
1. Push the update to the ``cpython-source-deps`` repository and | ||
create a new Git tag. | ||
2. Update the entry for the project in ``get_externals.bat``. | ||
3. Run ``make regen-sbom`` or ``PCbuild/build.bat --regen`` in the CPython source repository. | ||
4. Verify the metadata (like version, download location) in ``externals.spdx.json`` SBOM is updated as expected with ``git diff``. | ||
3. Run ``make regen-sbom`` or ``PCbuild/build.bat --regen`` | ||
in the CPython source repository. | ||
4. Use ``git diff`` to verify that the metadata (like version, download location) | ||
in ``externals.spdx.json`` SBOM is updated as expected. | ||
5. Commit the changes and have them merged together. |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.