I assume the answer is legacy: Why is `src/python/...
# development
p
I assume the answer is legacy: Why is
src/python/pants/backends/python/goals/setup_py.py
called
setup_py.py
instead of something like
package_dists.py
?
1
h
I think it's probably fine (and good!) to rename
p
Ah. API wise is moving that file something we could do for 2.16.x? Or is that too big of a plugin API change for an RC?
h
I don't think we could do that for an RC. We're supposed to avoid API changes because the goal is stabilization
p
Got it. Then two PRs it is, one minor refactor for 2.16.x, and the bigger move for 2.17.x 😄
h
Yeah, that name is historical, fine to change it
p
My bigger change moves most of that file to util_rules/package_dist.py and leaves goals/package_dist.py as a bare bones rule + rules registration 🙂
RFR https://github.com/pantsbuild/pants/pull/18701 (for the one I want to cherry-pick to 2.16.x) This only has [+40 -21] lines changed.
1
And here’s the somewhat larger rename PR: https://github.com/pantsbuild/pants/pull/18702 (18701 should be merged first). I say somewhat larger because it only changes [+144 -116] lines.