python-template icon indicating copy to clipboard operation
python-template copied to clipboard

bump-my-version: use explicit search patterns

Open egpbos opened this issue 1 year ago • 0 comments

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.

egpbos avatar Dec 21 '23 09:12 egpbos