File tree Expand file tree Collapse file tree 1 file changed +9
-11
lines changed
Expand file tree Collapse file tree 1 file changed +9
-11
lines changed Original file line number Diff line number Diff line change @@ -27,30 +27,28 @@ protoc: ## Generate python client from proto file
2727release : # # Release new version
2828 $(if $(shell git status -s) , $(error "Please commit your changes or stash them before you release.") )
2929
30- # Remove dev from version number
30+ # Make sure local develop branch is up-to-date
31+ git fetch origin
3132 git checkout develop
33+ git merge origin/develop
34+
35+ # Remove dev from version number
3236 $(eval VERSION := $(subst .dev,,$(shell python -c "exec(open('$(VERSION_FILE)').read());print(__version__)")))
3337 $(info release $(VERSION)...)
3438 sed -i '' "s/, 'dev'//" $(VERSION_FILE)
3539 git commit -a -m "release $(VERSION)"
3640
37- # Merge to master
38- git checkout master
39- git merge develop
40- git push origin master
41-
42- # Tag it
43- git tag v$(VERSION)
44- git push --tags
45-
4641 # Bump version for development
47- git checkout develop
4842 $(eval NEXT_VERSION := $(shell echo $(VERSION) | awk -F. '{print $$1"."($$2+1)".0"}'))
4943 $(eval VERSION_CODE := $(shell echo $(NEXT_VERSION) | sed 's/\./, /g'))
5044 sed -i '' -E "s/[0-9]+, [0-9]+, [0-9]+/$(VERSION_CODE), 'dev'/" $(VERSION_FILE)
5145 git commit -a -m "start $(NEXT_VERSION)"
5246 git push origin develop
5347
48+ # Tag it, push the tag, release the package to pypi
49+ git tag v$(VERSION)
50+ git push --tags
51+
5452doc :
5553 $(MAKE ) setup \
5654 && source venv/bin/activate \
You can’t perform that action at this time.
0 commit comments