monim67 / poetry-bumpversion

Poetry plugin to update __version__ in __init__ file and other files containing version strings
https://pypi.org/project/poetry-bumpversion/
MIT License
81 stars 4 forks source link

bumpversion doesn't pay attention to the -C directive #11

Open corby opened 4 months ago

corby commented 4 months ago

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.