https://pantsbuild.org/ logo
#announce
Title
# announce
j

jolly-midnight-72759

12/14/2020, 2:08 PM
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

witty-crayon-22786

12/14/2020, 5:34 PM
there is one more fix i’d like to get in, so it hasn’t been released yet
👍🏽 1
j

jolly-midnight-72759

12/14/2020, 5:48 PM
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

witty-crayon-22786

12/14/2020, 5:49 PM
can query pypi for that i think
j

jolly-midnight-72759

12/14/2020, 5:49 PM
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

witty-crayon-22786

12/16/2020, 7:35 PM
@jolly-midnight-72759, @helpful-lunch-92084: these are released now! sorry for the delay.
j

jolly-midnight-72759

12/16/2020, 7:55 PM
No apology necessary. Thank you!