Permalink
Browse files

Fix release script owners check.

Allow for the newest `[major].[minor].[patch].dev[N]` style. Previously
only `[major].[minor].[patch]dev[N]` or `[major].[minor].[patch]-dev[N]`
were expected.
  • Loading branch information...
jsirois committed Dec 31, 2016
1 parent 7b37e8f commit a40234429cc05f6483f91b08f10037429710b5b4
Showing with 1 addition and 1 deletion.
  1. +1 −1 build-support/bin/release.sh
@@ -342,7 +342,7 @@ function get_owners() {
latest_package_path=$(
curl -s https://pypi.python.org/pypi/${package_name} | \
- grep -oE "/pypi/${package_name}/[0-9]+\.[0-9]+\.[0-9]+(-?(rc|dev)[0-9]+)?" | head -n1
+ grep -oE "/pypi/${package_name}/[0-9]+\.[0-9]+\.[0-9]+([-.]?(rc|dev)[0-9]+)?" | head -n1
)
curl -s "https://pypi.python.org${latest_package_path}" | \
grep -A1 "Owner" | tail -1 | \

0 comments on commit a402344

Please sign in to comment.