So, the script that I need to run with pex works w...
# plugins
p
So, the script that I need to run with pex works when I manually build the pex. Based on those examples, I've fleshed out how to build the pex. Next I need to include the script itself in the input_digest for the VenvPexProcess. Normally, I would reach for
open()
but I suspect that is not very pantsy. The pylint plugin (which you pointed me to for how to make a pex) gets files based on a plugins listed in pants.toml, and the source files its checking, so all of the files are defined somehow outside of that plugin. But my file is right next to the plugin source file (in the same directory), so what's the best way to go about putting that in a digest?