Skip to content

Commit 4c8e4d3

Browse files
committed
more robust version lookup
1 parent 814915c commit 4c8e4d3

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

scripts/latest_versions.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,4 @@ else
77
GREP=grep
88
fi
99

10-
VERSIONS=$(curl -sL https://pypi.org/simple/$1/ | $GREP -oh '[[:digit:]]*\.[[:digit:]]*\.[[:digit:]]*\.tar\.gz<' | cut -d"." -f 1,2,3 | tail -${2:-10})
11-
echo $VERSIONS
10+
curl -sL https://pypi.org/simple/$1/ | $GREP -oh '[[:digit:]]*\.[[:digit:]]*\.[[:digit:]].**[\.whl|\.tar\.gz]<' | cut -d"." -f 1,2,3 | cut -d"-" -f 1 | uniq | tail -${2:-10}

0 commit comments

Comments
 (0)