Skip to content

Commit

Permalink
Fix regex in release script
Browse files Browse the repository at this point in the history
Update regex to accept version numbers in the form 1.2.0devX as well as 1.2.0-devX

Testing Done:
https://travis-ci.org/pantsbuild/pants/builds/159386910

Manually verified that regex correctly pulls in the latest release.

Bugs closed: 3858

Reviewed at https://rbcommons.com/s/twitter/r/4226/
  • Loading branch information
digwanderlust committed Sep 12, 2016
1 parent e8e34aa commit 89b9586
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion build-support/bin/release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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 | \
Expand Down

0 comments on commit 89b9586

Please sign in to comment.