Skip to content

bump-my-version: use explicit search patterns #367

Open
@egpbos

Description

@egpbos

As mentioned here by @stefsmeets, it might be smarter to use explicit search patterns for finding and replacing the versions using bump-my-version. The default behavior is to just do a search-and-replace on the raw version string anywhere in the file. For some files this may not be an issue, for instance when there's not expected to be any other version strings in the file. For pyproject.toml, however, it can lead to versions of dependencies to be changed as well if they happen to match your package's version.

Metadata

Metadata

Assignees

No one assigned

    Labels

    generated-packageRelated to the generated package, i.e. after running cookiecuttertemplateRelated to the template itself, as opposed to the generated code

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions