Skip to content

Commit 412e4aa

Browse files
committed
Adding makefile to bump __verion__ at 3 places.
1 parent a699b7d commit 412e4aa

3 files changed

Lines changed: 11 additions & 1 deletion

File tree

Makefile

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
VERSION=$(shell cat VERSION)
2+
3+
.PHONY: bump
4+
5+
bump:
6+
@echo $(VERSION) > VERSION
7+
@python3 -c "import re; f=open('setup.py'); c=f.read(); f.close(); open('setup.py','w').write(re.sub(r\"version='[^']*'\", \"version='$(VERSION)'\", c))"
8+
@python3 -c "import re; f=open('bugsnag/notifier.py'); c=f.read(); f.close(); open('bugsnag/notifier.py','w').write(re.sub(r\"'version': '[^']*'\", \"'version': '$(VERSION)'\", c))"
9+
@echo "Bumped to $(VERSION)"

VERSION

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
4.8.1

bugsnag/notifier.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
_NOTIFIER_INFORMATION = {
22
'name': 'Python Bugsnag Notifier',
33
'url': 'https://github.com/bugsnag/bugsnag-python',
4-
'version': '4.8.0'
4+
'version': '4.8.1'
55
}

0 commit comments

Comments
 (0)