)]}'
{"install_rally.sh":[{"author":{"_account_id":9234,"name":"Steve Heyman","email":"steve@heyman.com","username":"hockeynut"},"change_message_id":"0b75c50dfbeecedace128315980887f4e4a3c46b","unresolved":false,"context_lines":[{"line_number":280,"context_line":"    # returned from pypi and fetches the URL for the latest version of"},{"line_number":281,"context_line":"    # the source (i.e., .tar.gz) package."},{"line_number":282,"context_line":"    url\u003d$(download - \"http://pypi.python.org/pypi/${pkg}/json/\" | \\"},{"line_number":283,"context_line":"                       python -c \u0027import sys,json;i\u003djson.load(sys.stdin);print([p[\"url\"] for p in i[\"releases\"][i[\"info\"][\"version\"]] if p[\"python_version\"] \u003d\u003d \"source\"][0])\u0027)"},{"line_number":284,"context_line":""},{"line_number":285,"context_line":"    if [ -n \"$url\" ]; then"},{"line_number":286,"context_line":"        download \"$(basename \"$url\")\" \"$url\""}],"source_content_type":"text/x-sh","patch_set":1,"id":"dab17558_26488c2d","line":283,"updated":"2016-05-06 00:14:57.000000000","message":"maybe a bit of creative formatting could make this more readable?","commit_id":"d19673f284212f3cc1fbf9db2df025874ae6fd2f"},{"author":{"_account_id":10475,"name":"Alexander Maretskiy","email":"amaretskiy@mirantis.com","username":"maretskiy"},"change_message_id":"2d8184c28e05fd3398300680d53b59a9a5fe42c6","unresolved":false,"context_lines":[{"line_number":280,"context_line":"    # returned from pypi and fetches the URL for the latest version of"},{"line_number":281,"context_line":"    # the source (i.e., .tar.gz) package."},{"line_number":282,"context_line":"    url\u003d$(download - \"http://pypi.python.org/pypi/${pkg}/json/\" | \\"},{"line_number":283,"context_line":"                       python -c \u0027import sys,json;i\u003djson.load(sys.stdin);print([p[\"url\"] for p in i[\"releases\"][i[\"info\"][\"version\"]] if p[\"python_version\"] \u003d\u003d \"source\"][0])\u0027)"},{"line_number":284,"context_line":""},{"line_number":285,"context_line":"    if [ -n \"$url\" ]; then"},{"line_number":286,"context_line":"        download \"$(basename \"$url\")\" \"$url\""}],"source_content_type":"text/x-sh","patch_set":1,"id":"dab17558_3c724ae6","line":283,"in_reply_to":"dab17558_26488c2d","updated":"2016-05-06 12:19:20.000000000","message":"This can be simplified: http://paste.openstack.org/show/496323/","commit_id":"d19673f284212f3cc1fbf9db2df025874ae6fd2f"},{"author":{"_account_id":10475,"name":"Alexander Maretskiy","email":"amaretskiy@mirantis.com","username":"maretskiy"},"change_message_id":"1f890d6c1aba6269eeab68310bef9e78184671fd","unresolved":false,"context_lines":[{"line_number":280,"context_line":"    # returned from pypi and fetches the URL for the latest version of"},{"line_number":281,"context_line":"    # the source (i.e., .tar.gz) package."},{"line_number":282,"context_line":"    url\u003d$(download - \"http://pypi.python.org/pypi/${pkg}/json/\" | \\"},{"line_number":283,"context_line":"                       python -c \u0027import sys,json;i\u003djson.load(sys.stdin);print([p[\"url\"] for p in i[\"releases\"][i[\"info\"][\"version\"]] if p[\"python_version\"] \u003d\u003d \"source\"][0])\u0027)"},{"line_number":284,"context_line":""},{"line_number":285,"context_line":"    if [ -n \"$url\" ]; then"},{"line_number":286,"context_line":"        download \"$(basename \"$url\")\" \"$url\""}],"source_content_type":"text/x-sh","patch_set":1,"id":"dab17558_b29023ee","line":283,"in_reply_to":"dab17558_32f8b3e5","updated":"2016-05-06 13:14:54.000000000","message":"We need canonical tarball only, because we explicitly run `tar xzf\u0027 later - https://github.com/openstack/rally/blob/109f43367c4ab36103203e16a0cd2956d1dce2c4/install_rally.sh#L453\n\nAlso, we can even more simplify this script, because we run download_from_pypi only once and only for setuptools (I do not know if this function is really can be re-used for another package). As we see from JSON, setuptools packages include tarball format.","commit_id":"d19673f284212f3cc1fbf9db2df025874ae6fd2f"},{"author":{"_account_id":11748,"name":"Chris St. Pierre","email":"cstpierr@cisco.com","username":"stpierre"},"change_message_id":"8d1ec07f22a88dcdb33f3ef2971cf2c9b69efa47","unresolved":false,"context_lines":[{"line_number":280,"context_line":"    # returned from pypi and fetches the URL for the latest version of"},{"line_number":281,"context_line":"    # the source (i.e., .tar.gz) package."},{"line_number":282,"context_line":"    url\u003d$(download - \"http://pypi.python.org/pypi/${pkg}/json/\" | \\"},{"line_number":283,"context_line":"                       python -c \u0027import sys,json;i\u003djson.load(sys.stdin);print([p[\"url\"] for p in i[\"releases\"][i[\"info\"][\"version\"]] if p[\"python_version\"] \u003d\u003d \"source\"][0])\u0027)"},{"line_number":284,"context_line":""},{"line_number":285,"context_line":"    if [ -n \"$url\" ]; then"},{"line_number":286,"context_line":"        download \"$(basename \"$url\")\" \"$url\""}],"source_content_type":"text/x-sh","patch_set":1,"id":"dab17558_32f8b3e5","line":283,"in_reply_to":"dab17558_3c724ae6","updated":"2016-05-06 12:54:40.000000000","message":"I like your second variant, but I\u0027m concerned that they both depend on a) the source link always being a .tar.gz; and b) the only .tar.gz being the source link. How reliably are those assumptions?","commit_id":"d19673f284212f3cc1fbf9db2df025874ae6fd2f"},{"author":{"_account_id":12395,"name":"Roman Vasylets","email":"pomeo92@gmail.com","username":"rvasilets"},"change_message_id":"e082c94634dfb73cf863fcfb8001e3db41946ccc","unresolved":false,"context_lines":[{"line_number":280,"context_line":"    # the source (i.e., .tar.gz) package. It\u0027s safe here to look for"},{"line_number":281,"context_line":"    # the .tar.gz explicitly (rather than matching on package type \u003d\u003d"},{"line_number":282,"context_line":"    # source) because we untar it later anyway."},{"line_number":283,"context_line":"    url\u003d$(python -c \"import urllib2,json;print [u[\u0027url\u0027] for u in json.load(urllib2.urlopen(\u0027http://pypi.python.org/pypi/setuptools/json/\u0027))[\u0027urls\u0027] if u[\u0027filename\u0027].endswith(\u0027.tar.gz\u0027)].pop()\")"},{"line_number":284,"context_line":""},{"line_number":285,"context_line":"    if [ -n \"$url\" ]; then"},{"line_number":286,"context_line":"        download \"$(basename \"$url\")\" \"$url\""}],"source_content_type":"text/x-sh","patch_set":2,"id":"dab17558_859f8902","line":283,"updated":"2016-05-06 18:34:46.000000000","message":"I\u0027d like to see that with normal python indentation. Could you make it please? http://unix.stackexchange.com/a/74351","commit_id":"0dc87281e8b56865e5cec0f15b160e0a195db4d8"},{"author":{"_account_id":11748,"name":"Chris St. Pierre","email":"cstpierr@cisco.com","username":"stpierre"},"change_message_id":"0aad25d91a8df09114417e79ed584f052b46c5bb","unresolved":false,"context_lines":[{"line_number":280,"context_line":"    # the source (i.e., .tar.gz) package. It\u0027s safe here to look for"},{"line_number":281,"context_line":"    # the .tar.gz explicitly (rather than matching on package type \u003d\u003d"},{"line_number":282,"context_line":"    # source) because we untar it later anyway."},{"line_number":283,"context_line":"    url\u003d$(python -c \"import urllib2,json;print [u[\u0027url\u0027] for u in json.load(urllib2.urlopen(\u0027http://pypi.python.org/pypi/setuptools/json/\u0027))[\u0027urls\u0027] if u[\u0027filename\u0027].endswith(\u0027.tar.gz\u0027)].pop()\")"},{"line_number":284,"context_line":""},{"line_number":285,"context_line":"    if [ -n \"$url\" ]; then"},{"line_number":286,"context_line":"        download \"$(basename \"$url\")\" \"$url\""}],"source_content_type":"text/x-sh","patch_set":2,"id":"dab17558_3b799efd","line":283,"in_reply_to":"dab17558_859f8902","updated":"2016-05-06 19:16:52.000000000","message":"There\u0027s not much to indent, but done.","commit_id":"0dc87281e8b56865e5cec0f15b160e0a195db4d8"},{"author":{"_account_id":9234,"name":"Steve Heyman","email":"steve@heyman.com","username":"hockeynut"},"change_message_id":"e66c0b75529fd7c0a03f5476d76578fe03c6a77b","unresolved":false,"context_lines":[{"line_number":275,"context_line":""},{"line_number":276,"context_line":"download_setuptools () {"},{"line_number":277,"context_line":"    local url"},{"line_number":278,"context_line":"    # NOTE(stpierre): This (admittedly ugly) one-liner parses the JSON"},{"line_number":279,"context_line":"    # returned from pypi and fetches the URL for the latest version of"},{"line_number":280,"context_line":"    # the source (i.e., .tar.gz) package. It\u0027s safe here to look for"},{"line_number":281,"context_line":"    # the .tar.gz explicitly (rather than matching on package type \u003d\u003d"}],"source_content_type":"text/x-sh","patch_set":3,"id":"dab17558_aa49b18d","line":278,"updated":"2016-05-06 22:23:14.000000000","message":"kinda not really a one-liner anymore :-)","commit_id":"3e60ab567d0b123cc47b4ee02af787d98d50c126"}]}
