提交 4b8942ba 编写于 作者: S Shenghang Tsai

ci install beautifulsoup4


Former-commit-id: 94acb160
上级 de045e45
......@@ -40,7 +40,7 @@ jobs:
dir=${git_branch}/${timestamp}-${git_hash}
$HOME/ossutil64 cp --update -r $ONEFLOW_CI_TMP_DIR/wheelhouse oss://oneflow-static/staging/${dir}
python3 -m pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple
python3 -m pip install oss2 --user
python3 -m pip install oss2 beautifulsoup4 --user
python3 tools/create_pip_index.py --dir_key staging/${dir} -b oneflow-static --index_key=staging/${git_branch}/pip.index.html
pack_src:
name: Pack source code
......
......@@ -46,12 +46,14 @@ def generate_index_file(endpoint, bucket, dir_key, file_path, index_key=None):
bucket_obj = oss2.Bucket(auth, endpoint, bucket)
files = bucket_obj.list_objects(dir_key + "/")
count = 0
for f in files.object_list:
key = f.key
print(key)
link = url4key(endpoint, bucket, key)
append_link(soup, link)
count += 1
assert count
html = soup.prettify()
with open(file_path, "w+") as f:
f.write(html)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册