File tree 1 file changed +13
-4
lines changed
1 file changed +13
-4
lines changed Original file line number Diff line number Diff line change @@ -36,6 +36,8 @@ SPHINXBUILD_WARNING_LOG = sphinx-warnings.log
36
36
SPHINXAUTOBUILD := sphinx-autobuild
37
37
SPHINXAUTOBUILD_OPTS := --watch ${PACKAGE_DIR} --ignore ${DOCS_REFERENCE_DIR}
38
38
39
+ BUMPVERSION_DIFF_FILES := diff-files.txt
40
+
39
41
.PHONY : help
40
42
help : # # Display this help screen
41
43
@grep -E ' ^[\.a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST ) | sort | awk ' BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'
@@ -104,12 +106,19 @@ build_package: ## build package (source + wheel)
104
106
${PYTHON} setup.py bdist_wheel
105
107
106
108
.PHONY : bump_version_patch
107
- bump_version_patch : # # bump package version by the patch part
108
- bump2version patch
109
+ bump_version_patch : bump_version_check # # bump package version by the patch part
110
+ git add CHANGELOG.md
111
+ bump2version patch --allow-dirty
109
112
110
113
.PHONY : bump_version_minor
111
- bump_version_minor : # # bump package version by the minor part
112
- bump2version minor
114
+ bump_version_minor : bump_version_check # # bump package version by the minor part
115
+ git add CHANGELOG.md
116
+ bump2version minor --allow-dirty
117
+
118
+ .PHONY : bump_version_check
119
+ bump_version_check :
120
+ git diff --name-status
121
+ git diff-files --name-only | grep -q CHANGELOG.md
113
122
114
123
.PHONY : build_docs
115
124
build_docs : # # build documentation
You can’t perform that action at this time.
0 commit comments