Skip to content

Commit

Permalink
Improved makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
roll committed Oct 13, 2019
1 parent d2a314f commit f81739f
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
1 change: 1 addition & 0 deletions MAINTAINER.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
roll
15 changes: 14 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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
Expand Down

0 comments on commit f81739f

Please sign in to comment.