From f81739f68752471b3d1dfcd7c7c634393c9688d0 Mon Sep 17 00:00:00 2001 From: roll Date: Sun, 13 Oct 2019 13:49:45 +0300 Subject: [PATCH] Improved makefile --- MAINTAINER.md | 1 + Makefile | 15 ++++++++++++++- 2 files changed, 15 insertions(+), 1 deletion(-) create mode 100644 MAINTAINER.md diff --git a/MAINTAINER.md b/MAINTAINER.md new file mode 100644 index 0000000..e8b747f --- /dev/null +++ b/MAINTAINER.md @@ -0,0 +1 @@ +roll diff --git a/Makefile b/Makefile index a81444f..10d6106 100644 --- a/Makefile +++ b/Makefile @@ -1,8 +1,9 @@ -.PHONY: all install list release test version +.PHONY: all install list readme release templates test version PACKAGE := $(shell grep '^PACKAGE =' setup.py | cut -d "'" -f2) VERSION := $(shell head -n 1 $(PACKAGE)/VERSION) +MAINTAINER := $(shell head -n 1 MAINTAINER.md) all: list @@ -18,6 +19,18 @@ readme: md_toc -p README.md github --header-levels 3 sed -i '/(#tableschema-ckan-datastore-py)/,+2d' README.md +release: + git checkout master + git pull origin + git fetch -p + git commit -a -m 'v$(VERSION)' + git tag -a v$(VERSION) -m 'v$(VERSION)' + git push --follow-tags + +templates: + sed -i -E "s/@(\w*)/@$(MAINTAINER)/" .github/issue_template.md + sed -i -E "s/@(\w*)/@$(MAINTAINER)/" .github/pull_request_template.md + test: pylama $(PACKAGE) tox