Just wanted to share a win. Previously when we ne...
# general
b
Just wanted to share a win. Previously when we needed scripts from packages to be invoked as regular dev workflow we had to add it to our monumental list of requirements and run it through the user's virtual environment šŸ¤® Now, we have: ā€¢ An isolated resolve for 3rdparty tools to be used directly as scripts (like `pip-tools`'s
pip-compile
) ā€¢ An easy way to make sure the packaging is consistent and portable (
pex_binary
) ā—¦ With macros to make this easy for devs to declare ā€¢ A consistent and portable way to invoke the tool (
./pants run ...
)
šŸ™Œ 4
My only wish would be to not have to specify the function in
pex_binary
entry_point
, but instead declare an entry point name exposed by the tool (and then the machinery uses the definition of that)
h
b
coke
h
also tip to use cli,alias so you can do ./pants poetry fo example
b
We have a lot of scripts. Until we can shuffle the aliases under a customly named goal I'll just use
run
šŸ‘ 1