Skip to content

Commit

Permalink
[3.12] gh-112302: Backport SBOM generation tooling (#114730)
Browse files Browse the repository at this point in the history
[3.12] Backport SBOM generation tooling
  • Loading branch information
sethmlarson authored Feb 6, 2024
1 parent f82f695 commit 5e64828
Show file tree
Hide file tree
Showing 5 changed files with 3,402 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ Lib/keyword.py generated
Lib/test/levenshtein_examples.json generated
Lib/test/test_stable_abi_ctypes.py generated
Lib/token.py generated
Misc/sbom.spdx.json generated
Objects/typeslots.inc generated
PC/python3dll.c generated
Parser/parser.c generated
Expand Down
4 changes: 4 additions & 0 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
Expand Up @@ -166,3 +166,7 @@ Lib/ast.py @isidentical

# zipfile.Path
**/*zipfile/_path/* @jaraco

# SBOM
/Misc/sbom.spdx.json @sethmlarson
/Tools/build/generate_sbom.py @sethmlarson
6 changes: 5 additions & 1 deletion Makefile.pre.in
Original file line number Diff line number Diff line change
Expand Up @@ -1320,7 +1320,7 @@ regen-limited-abi: all
regen-all: regen-cases regen-opcode regen-opcode-targets regen-typeslots \
regen-token regen-ast regen-keyword regen-sre regen-frozen \
regen-pegen-metaparser regen-pegen regen-test-frozenmain \
regen-test-levenshtein regen-global-objects
regen-test-levenshtein regen-global-objects regen-sbom
@echo
@echo "Note: make regen-stdlib-module-names and make regen-configure should be run manually"

Expand Down Expand Up @@ -2605,6 +2605,10 @@ autoconf:
regen-configure:
$(srcdir)/Tools/build/regen-configure.sh

.PHONY: regen-sbom
regen-sbom:
$(PYTHON_FOR_REGEN) $(srcdir)/Tools/build/generate_sbom.py

# Create a tags file for vi
tags::
ctags -w $(srcdir)/Include/*.h $(srcdir)/Include/cpython/*.h $(srcdir)/Include/internal/*.h
Expand Down
Loading

0 comments on commit 5e64828

Please sign in to comment.