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. Before is on the left; after is on the right. Unified view fits narrow screens more easily.

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