From 60f2bb743d39ddce8d7e129f29dbdc933384c7db Mon Sep 17 00:00:00 2001 From: Zach White Date: Thu, 12 Aug 2021 10:18:13 -0700 Subject: [PATCH] Move bumpversion config to .bumpversion.cfg It seems that bumpversion only bumps the first match in a file, with no way I can find to get around that. This works around the problem so that bumpversion works in our setup.py-less world. --- .bumpversion.cfg | 12 ++++++++++++ setup.cfg | 12 ++---------- 2 files changed, 14 insertions(+), 10 deletions(-) create mode 100644 .bumpversion.cfg diff --git a/.bumpversion.cfg b/.bumpversion.cfg new file mode 100644 index 0000000..2b8ee2c --- /dev/null +++ b/.bumpversion.cfg @@ -0,0 +1,12 @@ +[bumpversion] +current_version = 0.3.1 +commit = True +tag = True +tag_name = {new_version} +message = New release: {current_version} → {new_version} + +[bumpversion:file:.bumpversion.cfg] + +[bumpversion:file:qmk_cli/__init__.py] + +[bumpversion:file:setup.cfg] diff --git a/setup.cfg b/setup.cfg index 93019dd..f7d642d 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,13 +1,5 @@ -[bumpversion] -current_version = 0.3.1 -commit = True -tag = True -tag_name = {new_version} -message = New release: {current_version} → {new_version} - -[bumpversion:file:qmk_cli/__init__.py] - -[bumpversion:file:setup.cfg] +#[bumpversion] +# Bumpversion config has been moved to .bumpversion.cfg [bdist_wheel] universal = 1