From 9afd7420a116744d62ab1d1bcdfb1cb50337a3c9 Mon Sep 17 00:00:00 2001 From: Markus Ressel Date: Wed, 9 Mar 2022 00:20:39 +0100 Subject: [PATCH] update Makefile --- Makefile | 15 ++++----------- 1 file changed, 4 insertions(+), 11 deletions(-) diff --git a/Makefile b/Makefile index f93add6..1feac55 100644 --- a/Makefile +++ b/Makefile @@ -12,30 +12,23 @@ build: test: pipenv run pytest -upload: - # Upload to Gemfury - # curl -F package=@dist/`ls -t1 dist/ | grep tar.gz | head -n1` https://gems.gemfury.com/ ${PROJECT}/__init__.py -release-patch: _release-patch git-release build upload current-version +release-patch: test _release-patch git-release current-version _release-minor: @echo "__version__ = \"`cat ${PROJECT}/__init__.py | awk -F '("|")' '{ print($$2)}' | awk -F. '{$$(NF-1) = $$(NF-1) + 1;} 1' | sed 's/ /./g' | awk -F. '{$$(NF) = 0;} 1' | sed 's/ /./g' `\"" > ${PROJECT}/__init__.py -release-minor: _release-minor git-release build upload current-version +release-minor: test _release-minor git-release current-version _release-major: @echo "__version__ = \"`cat ${PROJECT}/__init__.py | awk -F '("|")' '{ print($$2)}' | awk -F. '{$$(NF-2) = $$(NF-2) + 1;} 1' | sed 's/ /./g' | awk -F. '{$$(NF-1) = 0;} 1' | sed 's/ /./g' | awk -F. '{$$(NF) = 0;} 1' | sed 's/ /./g' `\"" > ${PROJECT}/__init__.py -release-major: _release-major git-release build upload current-version +release-major: test _release-major git-release current-version release: release-patch