forked from Lainports/freebsd-ports
Tools/scripts: In pypi-get-latest-version.sh, exclude alpha/beta/rc versions
This commit is contained in:
parent
867dd1e931
commit
d9dd505d67
1 changed files with 1 additions and 0 deletions
|
|
@ -40,6 +40,7 @@ done
|
||||||
fetch -o - https://pypi.python.org/pypi/$PACKAGE_NAME/json 2>/dev/null |
|
fetch -o - https://pypi.python.org/pypi/$PACKAGE_NAME/json 2>/dev/null |
|
||||||
jq -r '.releases | keys[]' |
|
jq -r '.releases | keys[]' |
|
||||||
grep -v dev |
|
grep -v dev |
|
||||||
|
grep -v -E ".*(a|b|rc)[0-9]*$" |
|
||||||
version_sort |
|
version_sort |
|
||||||
tail -1 ||
|
tail -1 ||
|
||||||
echo "failed to find the Python package '$PACKAGE_NAME'"
|
echo "failed to find the Python package '$PACKAGE_NAME'"
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue