limited-art-78990
04/16/2025, 8:17 AMblack inside my requirements file which I'm now able to run using:
pants run 3rdparty/python_default:reqs#black
Now I'm interested in the pex of this target, but running pants package 3rdparty/python_default:reqs#black doesn't result into a file being written into the dist directory. How do I generate a pex file for this target?limited-art-78990
04/16/2025, 11:38 AMpex_binary target like:
pex_binary(
name = "black",
dependencies = [
":reqs#black",
],
# <https://github.com/psf/black/blob/main/pyproject.toml#L87>
entry_point = "black:patched_main",
)
Which works, but it's a bit unfortunate as I have to search for specify the entry_point myself now. It feels like all of this information is already available in Pants and can be made easier 🤔curved-manchester-66006
04/16/2025, 5:27 PMlimited-art-78990
04/16/2025, 6:18 PMpip-tools which exposes pip-compile and pip-sync I'd just expose both targets.limited-art-78990
04/16/2025, 6:18 PM