Release v0.7.2 - Redesigned interface and persistent account settings
Validate and generate manual release / package (push) Waiting to run
Validate and generate manual release / package (push) Waiting to run
This commit is contained in:
1 parent
1d894f59fb
commit
398749210a
35 files changed
+2807
-256
No files matched your search
+9
-3
@@ -136,19 +136,25 @@ def build_release(repository=DEFAULT_REPOSITORY,version=None,output=None):
|
||||
if output.is_relative_to(ROOT) and not output.is_relative_to(ROOT/'dist'):raise ValueError('in-repository output must be under ignored dist/')
|
||||
output.mkdir(parents=True,exist_ok=True)
|
||||
allowed={'adaptive-music.zip','module.json','adaptive-music-source.zip','README.md','INSTALL.md','CHANGELOG.md','ARCHITECTURE.md','SECURITY.md','TESTING.md','PROGRESS.md','LICENSE','THIRD-PARTY-NOTICES','release.json','SHA256SUMS',f'adaptive-music-release-v{version}.zip',f'adaptive-music-release-v{version}.zip.sha256'}
|
||||
evidence_name=f'evidence/v{version}-live.json'
|
||||
if (ROOT/evidence_name).is_file():allowed.add(evidence_name)
|
||||
allowed.update(str(p.relative_to(ROOT)) for p in (ROOT/'licenses').rglob('*') if p.is_file())
|
||||
for file in output.rglob('*'):
|
||||
if file.is_symlink() or file.is_file() and str(file.relative_to(output)) not in allowed:raise ValueError('unmanaged file in release output')
|
||||
write_zip(output/'adaptive-music.zip',module_entries(manifest));validate_package(output/'adaptive-music.zip',manifest)
|
||||
(output/'module.json').write_text(json.dumps(manifest,indent=2)+'\n')
|
||||
write_zip(output/'adaptive-music-source.zip',source_entries(manifest))
|
||||
source=source_entries(manifest)
|
||||
write_zip(output/'adaptive-music-source.zip',source)
|
||||
evidence=source.get(f'adaptive-music-source/{evidence_name}')
|
||||
if evidence is not None:
|
||||
(output/evidence_name).parent.mkdir(parents=True,exist_ok=True)
|
||||
(output/evidence_name).write_bytes(evidence)
|
||||
for name in ('README.md','INSTALL.md','CHANGELOG.md','ARCHITECTURE.md','SECURITY.md','TESTING.md','PROGRESS.md','LICENSE','THIRD-PARTY-NOTICES'):(output/name).write_bytes((ROOT/name).read_bytes())
|
||||
for path in (ROOT/'licenses').rglob('*'):
|
||||
if path.is_file():target=output/path.relative_to(ROOT);target.parent.mkdir(parents=True,exist_ok=True);target.write_bytes(path.read_bytes())
|
||||
metadata={'version':version,'repository':manifest['url'],'manifest':manifest['manifest'],'download':manifest['download'],
|
||||
'sourceCommit':local_revision(),'sourceRevisionStatus':'base revision; included source archive is authoritative','sourceArchiveSHA256':hashlib.sha256((output/'adaptive-music-source.zip').read_bytes()).hexdigest(),'destinationStatus':'user-reported existing Gitea; never contacted by this builder','foundryLiveVerified':False,'networkAccessRequired':False}
|
||||
acceptance_file=ROOT/'evidence/v0.7.0-live.json'
|
||||
acceptance=json.loads(acceptance_file.read_text()) if acceptance_file.is_file() else {}
|
||||
acceptance=json.loads(evidence) if evidence is not None else {}
|
||||
metadata['publicationReady']=acceptance.get('publicationReady') is True
|
||||
metadata['maCoreFlowDemonstrated']=acceptance.get('completedCoreRunPassed') is True
|
||||
metadata['macPrivateRouteVerified']=acceptance.get('macPrivateRouteVerified') is True
|
||||
|
||||
Reference in new issue
Block a user