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 1
1
#! /bin/bash
2
2
set -eux
3
3
4
- SCRIPT_DIR=" $( cd " $( dirname " ${BASH_SOURCE[0]} " ) " && pwd ) "
4
+ SCRIPT_DIR=" $( dirname " $0 " ) "
5
5
cd $SCRIPT_DIR /..
6
6
7
7
OLD_VERSION=" ${1} "
@@ -10,4 +10,13 @@ NEW_VERSION="${2}"
10
10
echo " Current version: $OLD_VERSION "
11
11
echo " Bumping version: $NEW_VERSION "
12
12
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 24
24
"""
25
25
from sentry_sdk .api import * # noqa
26
26
from sentry_sdk .api import __all__ # noqa
27
+ from sentry_sdk .consts import VERSION # noqa
27
28
28
29
# modules we consider public
29
30
__all__ .append ("integrations" )
Original file line number Diff line number Diff line change 1
1
import socket
2
2
3
3
4
- VERSION = "0.1 "
4
+ VERSION = "0.3.6 "
5
5
DEFAULT_SERVER_NAME = socket .gethostname () if hasattr (socket , "gethostname" ) else None
6
6
DEFAULT_OPTIONS = {
7
7
"dsn" : None ,
You can’t perform that action at this time.
0 commit comments