For my own edification, have we ever, or would we ...
# development
b
For my own edification, have we ever, or would we ever consider dropping Pants support of Python 2? I've always been musing using LibCST to parse the AST for dep inference as it is much more powerful/robust. But it's Python 3 only. We could use different parsers for Py2 v Py3, but documentation+maintanance of that seems ripe for staleness/errors
h
I've encouraged it for a while. Python 2 users can still use Pants 2.15 for example
b
Maybe we ought to get this on the meetup? Then next step would likely be a public Discussion?
👍 2
h
I'd be down for that. I think the most helpful thing would be identifying how it helps the project. Dropping Py2 support only for the sake of dropping Py2 support is capricious if we don't have actual benefits
b
Are there other places Py2 support is holding us back? If not, I don't think this alone is a forcing function. We could freeze Py2 dep inference, or offload the inference onto users
E.g.
--debug-adapter
only works on Python 3.7+ but that doesn't stop people from using Pants (although I suspect the error is not great 😂 )
h
Not that I can think of. The main thing is Pex code still has to work with Python 2, although John has been okay with that in the past to help out users. And he wouldn't want to drop Py2 support until Pex 3.0
1
h
Definitely something to discuss and socialize at length
I suspect that the number of Pants 2.x users whose code is still Python 2.7 is ~0 though
2
But we must find out
Otherwise we're making decisions in the dark
b
Hmm maybe a more fruitful discussion would be how we can expand our telemetry
h
The telemetry that very few opt in to...
b
I opt out because I have no clue what it does. It might just be a matter of user expectation
(I mean I have a clue now that I went poking through source code, but I didn't back when. And the telemtry we do get seems not terribly exciting)
h
We document it, but yeah
Specifically re 2.7 we can send a wide blast about a possible plan to EOL our support for it and see who bites
b
h
In fact we can have Pants itself pop up a question about that!
b
Perhaps one thing to do is add a question to the Community Roadmap Survey this year, so we can begin to establish for the sake of the roadmap whether Python 2 support is something the community wants prioritized? If not, cool beans.
Holy smokes. That's very nice. Can we use it to once a year ask politely that as a user one please participate in the Community Roadmap Survey? https://pantsbuild.slack.com/archives/C0D7TNJHL/p1671036106975409?thread_ts=1671035249.353819&cid=C0D7TNJHL
e
The only recent almost use case I am aware of was from Foursquare. Pants 2.7 support could have helped them transition to Pants v2. They migrated to Bazel instead though and sucked up migrating from Python 2.7 to 3 1st IIUC.
👍 2
Maybe ... one of the satellite companies?
b
@dry-analyst-73584 might have some light in that domain 😛
e
Dark Sky or Black Sky?
Yeah - we commiserated during that once or twice.
❤️ 1