Hi all, me again seeking some guidance. I current...
# general
t
Hi all, me again seeking some guidance. I currently have a repository with multiple libraries that each require versioned individually. I use poetry for definition/configuration of those libraries (using a pyproject.toml file per project) My current thinking is to add a command that developers can run to increase the version number running
poetry 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:
Copy code
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!!
I added a commend in the https://github.com/pantsbuild/pants/issues/18179 as it is sort of related