Hi folks! How do you guys handle uploading/downloa...
# general
q
Hi folks! How do you guys handle uploading/downloading pex files using pants? The
publish
goal uses Twine under the hood I believe which doesn't support pex uploads/downloads.
h
Commonly they are baked into Docker images. But if you're running pexes directly on some remote system then that is out of scope for Pants itself, as there are so many ways you might want to do it.
scp maybe?
w
I think I used something like adhoc_tool or run_shell_command or something of that flavour to run whatever command I had on my machine to support copying, so it's still part of pants goals Sometimes that's scp, rsync, or a command on the CLI tool of a cloud system, etc
c
[Twine] doesn't support whl uploads/downloads.
I was surprised by this and had to check it out.. to me it seems whl ought to be supported by twine..? https://twine.readthedocs.io/en/stable/index.html
h
I think that was a typo and the OP meant Twine doesn't support pex upload/download?
c
Ah, yea that makes sense.
q
Yes, sorry, that was a typo! I meant pex (fixed it) So would extending the
publish
goal with running
curl
in a
Process
to upload a pex be a viable option?
c
Yea, the publish goal is tool agnostic, so can use different processes for different targets. (It already uses twine, as you know, for Python distributions, and for Docker images it uses the
docker
CLI client to push to a remote registry.)