thousands-france-27863
02/13/2023, 10:45 AMpoetry version $(type)
been the type major, minor or patch.
I have tried adding an experimental_run_shell_command
and sort of works, but I can’t find a way to run it in all packages.
Currently I have to do ./pants run src/python/library1:bumpversion
but ideally I would like to do ./pants run --changed-sinse=main ::bumpversion
.
Is this possible? also, it is possible to pass arguments to that run command?
here the command:
experimental_run_shell_command(
name="bump_version",
tags=["bump_version"],
workdir=f"src/python/{name}/",
command=f"poetry version patch",
)
Maybe I should write a goal…?? if so, do you have any examples? Some extra option in the python_distribution target/goal??
Thanks in advance!!thousands-france-27863
02/13/2023, 11:23 AM