Unverified Commit c23d5706 authored by Ke Bao's avatar Ke Bao Committed by GitHub
Browse files

Update whl index path (#3128)

parent 67ad4338
...@@ -8,7 +8,7 @@ for path in sorted(pathlib.Path("sgl-kernel/dist").glob("*.whl")): ...@@ -8,7 +8,7 @@ for path in sorted(pathlib.Path("sgl-kernel/dist").glob("*.whl")):
with open(path, "rb") as f: with open(path, "rb") as f:
sha256 = hashlib.sha256(f.read()).hexdigest() sha256 = hashlib.sha256(f.read()).hexdigest()
ver = re.findall(r"sgl_kernel-([0-9.]+(?:\.post[0-9]+)?)-", path.name)[0] ver = re.findall(r"sgl_kernel-([0-9.]+(?:\.post[0-9]+)?)-", path.name)[0]
index_dir = pathlib.Path(f"sgl-whl/cu118") index_dir = pathlib.Path(f"sgl-whl/cu118/sgl-kernel")
index_dir.mkdir(exist_ok=True) index_dir.mkdir(exist_ok=True)
base_url = "https://github.com/sgl-project/whl/releases/download" base_url = "https://github.com/sgl-project/whl/releases/download"
full_url = f"{base_url}/v{ver}/{path.name}#sha256={sha256}" full_url = f"{base_url}/v{ver}/{path.name}#sha256={sha256}"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment