File tree Expand file tree Collapse file tree 3 files changed +13
-3
lines changed Expand file tree Collapse file tree 3 files changed +13
-3
lines changed Original file line number Diff line number Diff line change 11#! /bin/bash
22set -eux
33
4- SCRIPT_DIR=" $( cd " $( dirname " ${BASH_SOURCE[0]} " ) " && pwd ) "
4+ SCRIPT_DIR=" $( dirname " $0 " ) "
55cd $SCRIPT_DIR /..
66
77OLD_VERSION=" ${1} "
@@ -10,4 +10,13 @@ NEW_VERSION="${2}"
1010echo " Current version: $OLD_VERSION "
1111echo " Bumping version: $NEW_VERSION "
1212
13- sed -i ' ' -e " 1,/^\s*version=/ s/version=\" [^\" ]*\" /version=\" $NEW_VERSION \" /" setup.py
13+ function replace() {
14+ grep " $1 " $3
15+ ! grep " $2 " $3
16+
17+ perl -i -pe " s/$1 /$2 /g" $3
18+ grep " $2 " $3 # verify that replacement was successful
19+ }
20+
21+ replace " version=\" $OLD_VERSION \" " " version=\" $NEW_VERSION \" " ./setup.py
22+ replace " VERSION = \" $OLD_VERSION \" " " VERSION = \" $NEW_VERSION \" " ./sentry_sdk/consts.py
Original file line number Diff line number Diff line change 2424"""
2525from sentry_sdk .api import * # noqa
2626from sentry_sdk .api import __all__ # noqa
27+ from sentry_sdk .consts import VERSION # noqa
2728
2829# modules we consider public
2930__all__ .append ("integrations" )
Original file line number Diff line number Diff line change 11import socket
22
33
4- VERSION = "0.1 "
4+ VERSION = "0.3.6 "
55DEFAULT_SERVER_NAME = socket .gethostname () if hasattr (socket , "gethostname" ) else None
66DEFAULT_OPTIONS = {
77 "dsn" : None ,
You can’t perform that action at this time.
0 commit comments