There are some tests that check that Pants works w...
# development
c
There are some tests that check that Pants works with Python 2.7 code. Is there a "how long do we intend to support python2.7?" policy. https://github.com/pantsbuild/pants/blob/main/src/python/pants/backend/python/util_rules/local_dists_pep660_test.py#L95
b
We bring this up periodically. I think the answer we continually come up with is "we would need a good reason to drop support" and papercuts aren't a good enough reason. Perhaps if we had some kind of metrics on usage we could find out better where that bar really is, but we don't so 🤷‍♂️
w
I don't know if it's official, but the vibe I get is that we support it, so long as
pex
supports it. And `pex`still supports it Here's pip's opinion on the matter. Maybe it's worth rolling this into a GH discussion, in lieu of a bunch of slack convos over the years?
Copy code
Supported Versions

The latest version of the pip is the only supported version, previous versions should be considered unsupported. Users are encouraged to make regular updates to their version of pip in order to remain supported.

Python 2 Support

pip 20.3 was the last version of pip that supported Python 2. Bugs reported with pip which only occur on Python 2.7 will likely be closed as "won't fix" issues by pip's maintainers.

Python Support Policy
In general, a given Python version is supported until its usage on PyPI falls below 5%. This is at the maintainers' discretion, in case extraordinary circumstances arise.
c
Perhaps if we had some kind of metrics on usage we could find out better where that bar really is, but we don't so
We could add something like "what backends/languages" are you using to the end of year survey? Which would at least be ~something.
Here's pip's opinion on the matter. Maybe it's worth rolling this into a GH discussion, in lieu of a bunch of slack convos over the years?
👍