This page mentions 2.1.1rc2 being released on 12/0...
# announce
j
This page mentions 2.1.1rc2 being released on 12/09/2020: https://github.com/pantsbuild/pants/blob/master/src/python/pants/notes/2.1.x.rst When I go to PyPI though it isn't there as of 12/14/2020: https://pypi.org/project/pantsbuild.pants/2.1.1rc2/
w
there is one more fix i’d like to get in, so it hasn’t been released yet
👍🏽 1
j
Gives me an idea for a goal or feature that would be mildly useful while we are following the cutting edge of pants. Having a
./pants --version
return the latest version available. So if I have
2.0.1
configured. Then when I run
./pants --version
it would return
Copy code
2.0.1
Note: v2.1.0 is the latest stable release (<https://www.pantsbuild.org/docs/versions>)
Not sure if that could easily be done with existing infrastructure.
w
can query pypi for that i think
j
not sure if that's available in json or other easily parsed format.
The RSS feed doesn't have a "stable" tag for the current recommended version.
curl -sG -H 'Host: <http://pypi.org|pypi.org>' -H 'Accept: application/json' <https://pypi.org/pypi/pantsbuild.pants/json> | jq ".urls"
seems the most reliable way to get the "latest" version. Of course it can never be as simple as
| jq ".latest_version"
.
https <http://pypi.org/pypi/pantsbuild.pants/json|pypi.org/pypi/pantsbuild.pants/json> | jq -r ".urls[0].filename" | awk -F'-' '{print $2}'
(using httpie) will give the "latest version".
w
@jolly-midnight-72759, @helpful-lunch-92084: these are released now! sorry for the delay.
j
No apology necessary. Thank you!