Skip to content

Commit

Permalink
patch bumpversion call from makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
fmigneault authored and plstcharles committed Jul 28, 2020
1 parent 3b1dcd7 commit 9bd0d1d
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -135,24 +135,24 @@ test-all: check ## run all checks and tests in the installed environment

.PHONY: bump
bump: install-dev ## bump version using version specified as user input
$(shell bash -c 'read -p "Version: " VERSION_PART; \
@bash -c 'read -p "Version: " VERSION_PART; \
source $(CONDA_HOME)/bin/activate $(CONDA_ENV); \
$(CONDA_ENV_PATH)/bin/bumpversion --config-file $(CUR_DIR)/setup.cfg \
--verbose --allow-dirty --no-tag --new-version $$VERSION_PART patch;')
--verbose --allow-dirty --no-tag --new-version $$VERSION_PART patch;'

.PHONY: bump-dry
bump-dry: install-dev ## bump version using version specified as user input (dry-run)
$(shell bash -c 'read -p "Version: " VERSION_PART; \
@bash -c 'read -p "Version: " VERSION_PART; \
source $(CONDA_HOME)/bin/activate $(CONDA_ENV); \
$(CONDA_ENV_PATH)/bin/bumpversion --config-file $(CUR_DIR)/setup.cfg \
--verbose --allow-dirty --dry-run --tag --tag-name "{new_version}" --new-version $$VERSION_PART patch;')
--verbose --allow-dirty --dry-run --tag --tag-name "{new_version}" --new-version $$VERSION_PART patch;'

.PHONY: bump-tag
bump-tag: install-dev ## bump version using version specified as user input, tags it and commits the change in git
$(shell bash -c 'read -p "Version: " VERSION_PART; \
@bash -c 'read -p "Version: " VERSION_PART; \
source $(CONDA_HOME)/bin/activate $(CONDA_ENV); \
$(CONDA_ENV_PATH)/bin/bumpversion --config-file $(CUR_DIR)/setup.cfg \
--verbose --allow-dirty --tag --tag-name "{new_version}" --new-version $$VERSION_PART patch;')
--verbose --allow-dirty --tag --tag-name "{new_version}" --new-version $$VERSION_PART patch;'

## --- execution targets --- ##

Expand Down

0 comments on commit 9bd0d1d

Please sign in to comment.