Skip to content

Commit 102be1e

Browse files
committed
add human readable page listing all PyPI indexes
1 parent 66cf0aa commit 102be1e

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

update-pytorch.sh

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,3 +79,25 @@ du -sh whl/*
7979

8080
for d in whl/simple whl/*/simple ; do echo "$(ls $d | wc -l | xargs) $d" ; done > summary.txt
8181
cat summary.txt
82+
83+
cat <<EOF > whl/index.html
84+
<!DOCTYPE html>
85+
<html>
86+
<body>
87+
<h1>Sonatype <a href="https://pytorch.org/">PyTorch</a> PyPI <b>improved</b> indexes</h1>
88+
89+
Generated by <a href="https://github.com/sonatype-nexus-community/pytorch-pypi">sonatype-nexus-community/pytorch-pypi</a> from <a href="https://download.pytorch.org/whl/">https://download.pytorch.org/whl/</a>
90+
91+
<ul>
92+
<li><a href="simple">simple</a> full index</li>
93+
<li>compute platform filtered indexes:<ul>
94+
$(for d in whl/*
95+
do
96+
d="$(echo $d | cut -c 5-)"
97+
[ -d "whl/$d" ] && [ "$d" != "simple" ] && echo "<li><a href=\"$d/simple\">$d/simple</a></li>"
98+
done)
99+
</ul></li>
100+
</ul>
101+
</body>
102+
</html>
103+
EOF

0 commit comments

Comments
 (0)