Skip to content
Snippets Groups Projects
Commit d9dd505d authored by Yuri Victorovich's avatar Yuri Victorovich
Browse files

Tools/scripts: In pypi-get-latest-version.sh, exclude alpha/beta/rc versions

parent 867dd1e9
No related branches found
No related tags found
No related merge requests found
......@@ -40,6 +40,7 @@ done
fetch -o - https://pypi.python.org/pypi/$PACKAGE_NAME/json 2>/dev/null |
jq -r '.releases | keys[]' |
grep -v dev |
grep -v -E ".*(a|b|rc)[0-9]*$" |
version_sort |
tail -1 ||
echo "failed to find the Python package '$PACKAGE_NAME'"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment