From eeca137e7bef366c01d81e958445aee5aa0515f1 Mon Sep 17 00:00:00 2001 From: Kevin Deldycke Date: Sun, 5 Nov 2023 16:36:20 +0400 Subject: [PATCH] Generalize __init__.py version update. Made possible by: https://github.com/callowayproject/bump-my-version/issues/65 https://github.com/callowayproject/bump-my-version/pull/83 --- pyproject.toml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index eec413c29..9ed00a7a1 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -191,8 +191,9 @@ current_version = "4.7.2" allow_dirty = true [[tool.bumpversion.files]] -# Update Python package version. -filename = "./click_extra/__init__.py" +# Update Python package version in any __init__.py file. +glob = "./**/__init__.py" +ignore_missing_version = true [[tool.bumpversion.files]] # Update version in Poetry section.