We use build scripts that aren't run from within the project directory because we are building multiple projects at the same time.
We use the command poetry -C ${dir} build-project -f wheel to build the project.
In the pyproject.toml file we use a relative path:
[tool.poetry_bumpversion.file."../../src/<company>/<dept>/<app>/__init__.py"]
However, the bumpverision plugin doesn't pay attention to -C, but only uses cwd, so the relative path is not interpreted properly and it fails.
We use build scripts that aren't run from within the project directory because we are building multiple projects at the same time.
We use the command
poetry -C ${dir} build-project -f wheelto build the project.In the pyproject.toml file we use a relative path:
However, the bumpverision plugin doesn't pay attention to -C, but only uses cwd, so the relative path is not interpreted properly and it fails.