Skip to content
Bitcoin Roots

v30.3-roots.1 · Commit 67: [PATCH 67/68] fix(release): defer expanded dependency notice coverage

ci/release/create-draft.py

Before: ci/release/create-draft.py · After: ci/release/create-draft.py

File metadata
index c17568cdd8b71e91f6b8cfa0fc7729dab05965da..6591133387d3176c6316658718d437578838205d 100755

Download original patch · Release notes

Diff rows 1–32 of 32. Line numbers refer to the original before/after files.

+ Added− RemovedUnmarked lines are context.

Scroll the code area horizontally to read long lines. The two line-number columns refer to before and after.

ci/release/create-draft.py CHANGED
@@ -19,13 +19,12 @@ import tarfile
19
19
  import zipfile
20
20
 
21
21
  import archive
22
- import notices
23
22
 
24
23
  ROOT = Path(__file__).resolve().parents[2]
25
24
  SCRIPTS = ROOT / "ci/release"
26
25
  PACKAGE_NAMES = {
27
26
  f"bitcoin-roots-{platform}.{'tar.gz' if platform.startswith('linux') else 'zip'}": platform
28
- for platform in notices.PLATFORMS
27
+ for platform in ("linux-x86_64", "linux-aarch64", "darwin-x86_64", "darwin-arm64", "windows-x86_64")
29
28
  }
30
29
 
31
30
 
@@ -69,9 +68,8 @@ def snapshot_packet(args, destination):
69
68
  if digest(destination / name, "sha512") != checksum:
70
69
  raise ValueError(f"Release checksum mismatch: {name}")
71
70
  expected_root = archive.archive_root_name(args.tag, None)
72
- for name, platform in PACKAGE_NAMES.items():
71
+ for name in PACKAGE_NAMES:
73
72
  archive.validate_archive_root(destination / name, expected_root, ROOT / "COPYING")
74
- notices.validate_archive(destination / name, expected_root, platform)
75
73
  if args.notes.is_symlink() or not args.notes.is_file() or not args.notes.stat().st_size:
76
74
  raise ValueError("Reviewed release notes must be a nonempty regular file")
77
75
  # Use a private snapshot for upload so changes to the input packet cannot
@@ -161,7 +159,7 @@ def prepare_draft(args):
161
159
  command.extend(str(assets / name) for name in names)
162
160
  print(run(command))
163
161
  else:
164
- print("Validated immutable source, six assets, notices, patch replay and reviewed notes; no draft created")
162
+ print("Validated immutable source, six assets, canonical COPYING, patch replay and reviewed notes; no draft created")
165
163
 
166
164
 
167
165
  def main():