Skip to content

Commit

Permalink
make target to bump version
Browse files Browse the repository at this point in the history
  • Loading branch information
CamJN committed Dec 10, 2023
1 parent 62c86df commit 673b40d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
version := $(shell awk '/version = /{print $$3}' pyproject.toml | tr -d '"')
new_version := $(shell echo $(version) | awk -F . '{OFS="."; $$NF+=1; print}')

.PHONY: activate deps db version upload-production upload-test build build-sdist sign check test clean console load devel docs

Expand All @@ -16,6 +17,9 @@ db: compile_commands.json
compile_commands.json:
bear -- python setup.py build

bump_version:
sed -e 's/version = "$(version)"/version = "$(new_version)"/' -i '' pyproject.toml

version:
@echo $(version)

Expand Down

0 comments on commit 673b40d

Please sign in to comment.