Skip to content

Commit

Permalink
more awesome automation
Browse files Browse the repository at this point in the history
  • Loading branch information
JnyJny committed Oct 27, 2015
1 parent c807efa commit 7509d78
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ README = README.md

TMPFILES= VERSION dist build ${TARGET}.egg-info

GIT = git
SED = sed
RM = rm
MV = mv
Expand All @@ -45,6 +46,13 @@ all:
@echo "make test-install - pip install from PYPI=${PYPI}"
@echo "make test-upgrade - pip upgrade from PYPI=${PYPI}"
@echo ""
@echo "Update workflow:"
@echo "----------------"
@echo "make bump_"
@echo "make update"
@echo "make tag"
@echo "make upload"
@echo ""


bump_major:
Expand All @@ -68,11 +76,12 @@ update:
@${MV} ${PKG_INIT}.tmp ${PKG_INIT}
@${SED} -e ${UPDTRDME} ${README} > ${README}.tmp
@${MV} ${README}.tmp ${README}

@${GIT} add .
@${GIT} commit -m ${VERSION}

tag:
git tag ${VERSION}
git push origin ${VERSION}
${GIT} tag ${VERSION}
${GIT} push origin ${VERSION}

sdist:
${PYSETUP} build sdist
Expand Down

0 comments on commit 7509d78

Please sign in to comment.