Skip to content

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

@corby

Description

@corby

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions