]> granicus.if.org Git - graphviz/commitdiff
Update schema of generated deploy.py JSON
authorMark Hansen <markhansen@google.com>
Sat, 18 Sep 2021 23:12:59 +0000 (09:12 +1000)
committerMark Hansen <markhansen@google.com>
Sun, 19 Sep 2021 00:25:09 +0000 (10:25 +1000)
I've updated the schema in the docs dir, to make room for Windows releases in here.

I haven't filled in the windows array yet.

ci/deploy.py

index d501a7a4cd7904c0b331175fde60c4894ffc028e..c3f356db4a72d3fc1172f34b17dfbfee88b27e36 100644 (file)
@@ -157,8 +157,10 @@ def main(args: List[str]) -> int: # pylint: disable=missing-function-docstring
 
   # data for the website’s download page
   webdata = {
-    "version":f"graphviz-{options.version}",
-    "archives":[],
+    "version": f"graphviz-{options.version}",
+    "sources": [],
+    # TODO: fill in
+    "windows": [],
   }
 
   for tarball in (Path(f"graphviz-{gv_version}.tar.gz"),
@@ -168,18 +170,19 @@ def main(args: List[str]) -> int: # pylint: disable=missing-function-docstring
       log.error(f"source {tarball} not found")
       return -1
 
-    webentry = {"format":tarball.suffix[1:]}
-
     # accrue the source tarball and accompanying checksum(s)
     url = upload(package_version, tarball)
     assets.append(url)
-    webentry["url"] = url
+    webentry = {
+      "format": tarball.suffix[1:],
+      "url": url
+    }
     for check in checksum(tarball):
       url = upload(package_version, check)
       assets.append(url)
       webentry[check.suffix[1:]] = url
 
-    webdata["archives"].append(webentry)
+    webdata["sources"].append(webentry)
 
   for stem, _, leaves in os.walk("Packages"):
     for leaf in leaves: