From c8cab7c15ccba933b5feb6a31277b271e9a02805 Mon Sep 17 00:00:00 2001 From: Kevin Deldycke Date: Sun, 3 Mar 2024 19:21:48 +0400 Subject: [PATCH] Set ignore_missing_files option globally in pyproject.toml Refs: https://github.com/callowayproject/bump-my-version/issues/145 --- .github/workflows/changelog.yaml | 4 ++-- changelog.md | 2 ++ pyproject.toml | 3 +-- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/changelog.yaml b/.github/workflows/changelog.yaml index f6e430d39..8f38238ee 100644 --- a/.github/workflows/changelog.yaml +++ b/.github/workflows/changelog.yaml @@ -52,7 +52,7 @@ jobs: # TODO: get configuration URL once https://github.com/callowayproject/bump-my-version/issues/148 is addressed, # so we can factorize projects' pyproject.toml files to kdeldycke/workflow/pyproject.toml . run: | - bump-my-version bump --verbose --ignore-missing-files ${{ matrix.part }} + bump-my-version bump --verbose ${{ matrix.part }} - name: Extract version id: get_version run: | @@ -192,7 +192,7 @@ jobs: # TODO: get configuration URL once https://github.com/callowayproject/bump-my-version/issues/148 is addressed, # so we can factorize projects' pyproject.toml files to kdeldycke/workflow/pyproject.toml . run: | - bump-my-version bump --verbose --ignore-missing-files patch + bump-my-version bump --verbose patch - name: Commit post-release version bump run: | git commit --all --message="[changelog] Post-release version bump" diff --git a/changelog.md b/changelog.md index 97daac404..3273c37d4 100644 --- a/changelog.md +++ b/changelog.md @@ -6,6 +6,8 @@ This version is not released yet and is under active development. ``` +- Set `ignore_missing_files` option globally in `pyproject.toml`. + ## [3.3.4 (2024-03-01)](https://github.com/kdeldycke/workflows/compare/v3.3.3...v3.3.4) - Add some debug messages. diff --git a/pyproject.toml b/pyproject.toml index 759786dcd..78358fd6e 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,8 +1,7 @@ [tool.bumpversion] current_version = "3.3.5" allow_dirty = true -# XXX Wait for https://github.com/callowayproject/bump-my-version/issues/145 to activate global option. -# ignore_missing_files = true +ignore_missing_files = true [[tool.bumpversion.files]] # Update Python package version in any __init__.py file.