Is there any way to set a dependency in pants (lik...
# general
f
Is there any way to set a dependency in pants (like twine) and use pants to run a "custom" command? Basically I want to build my python library with pants and publish it with twine, but I do not want to define it to another system externally to pants (like pip/pipenv), I want to reuse the pants venv. This is how I do it right now
Copy code
./pants setup-py my_lib -- sdist
pipenv run twine upload dist/*
and I would like something like
Copy code
./pants setup-py my_lib -- sdist
./pants twine upload dist/*
# or 
./pants run twine upload dist/*
h
Which version of Pants are you using? It shouldn't be hard to write a custom goal to run twine. We haven't done it yet because we weren't sure if it was sufficiently generalizable to put in the main Python backend. But you could use it internally for a bit and then upstream it, for example.
f
latest stable 1.30. do you have a doc on how to write goals?