forked from vllm-project/vllm
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[cd][release] add pypi index for every commit and nightly build (vllm…
…-project#11404) Signed-off-by: youkaichao <[email protected]> Co-authored-by: Roger Wang <[email protected]>
- Loading branch information
1 parent
29c7489
commit 4a91397
Showing
2 changed files
with
39 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
import argparse | ||
import os | ||
|
||
template = """<!DOCTYPE html> | ||
<html> | ||
<body> | ||
<h1>Links for vLLM</h1/> | ||
<a href="../{wheel_html_escaped}">{wheel}</a><br/> | ||
</body> | ||
</html> | ||
""" | ||
|
||
parser = argparse.ArgumentParser() | ||
parser.add_argument("--wheel", help="The wheel path.", required=True) | ||
args = parser.parse_args() | ||
|
||
filename = os.path.basename(args.wheel) | ||
|
||
with open("index.html", "w") as f: | ||
print(f"Generated index.html for {args.wheel}") | ||
# cloudfront requires escaping the '+' character | ||
f.write( | ||
template.format(wheel=filename, | ||
wheel_html_escaped=filename.replace("+", "%2B"))) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters