https://pantsbuild.org/ logo
#general
Title
# general
f

full-oyster-41619

08/24/2020, 9:12 AM
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/*
7 Views