Skip to content

Commit a315a46

Browse files
committed
Merge remote-tracking branch 'origin/master' into pymanager
2 parents 57abf9b + 251083e commit a315a46

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

release.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -635,7 +635,7 @@ def export(tag: Tag, silent: bool = False, skip_docs: bool = False) -> None:
635635

636636
# Remove directories we don't want to ship in tarballs.
637637
run_cmd(["blurb", "export"], silent=silent)
638-
for name in (".azure-pipelines", ".git", ".github", ".hg"):
638+
for name in (".azure-pipelines", ".git", ".github", ".hg", "Misc/mypy"):
639639
shutil.rmtree(name, ignore_errors=True)
640640

641641
if not skip_docs and (tag.is_final or tag.level == "rc"):

sbom.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -608,12 +608,12 @@ def create_sbom_for_source_tarball(tarball_path: str) -> SBOM:
608608
# Now we walk the tarball and compare known files to our expected checksums in the SBOM.
609609
# All files that aren't already in the SBOM can be added as "CPython" files.
610610
for member in tarball.getmembers():
611-
if member.isdir(): # Skip directories!
611+
if not member.isfile(): # Only keep files (no symlinks)
612612
continue
613613

614614
# Get the member from the tarball. CPython prefixes all of its
615615
# source code with 'Python-{version}/...'.
616-
assert member.isfile() and member.name.startswith(f"Python-{cpython_version}/")
616+
assert member.name.startswith(f"Python-{cpython_version}/")
617617

618618
# Calculate the hashes, either for comparison with a known value
619619
# or to embed in the SBOM as a new file. SHA1 is only used because

0 commit comments

Comments
 (0)