github.com/replit/upm@v0.0.0-20240423230255-9ce4fc3ea24c/scripts/index-pypi.bash (about) 1 #!/usr/bin/env bash 2 3 set -e 4 set -o pipefail 5 6 # Normalize the package names to lowercase and using hyphens instead 7 # of underscores. I believe they actually come like this already, but 8 # let's be extra sure since we rely on it in the Go code. 9 curl -s https://pypi.org/simple/ \ 10 | grep -o '/simple/[^/]\+/' \ 11 | grep -o '[^/]\+/$' \ 12 | grep -o '[^/]\+' \ 13 | sed 's/_/-/g' \ 14 | tr A-Z a-z \ 15 > resources/python/pypi