8000 fix: Bump version in consts.py · etherscan-io/sentry-python@63beb0b · GitHub
[go: up one dir, main page]

Skip to content

Commit 63beb0b

Browse files
committed
fix: Bump version in consts.py
Fix getsentry#97
1 parent a72a534 commit 63beb0b

File tree

3 files changed

+13
-3
lines changed

3 files changed

+13
-3
lines changed

scripts/bump-version.sh

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/bin/bash
22
set -eux
33

4-
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
4+
SCRIPT_DIR="$( dirname "$0" )"
55
cd $SCRIPT_DIR/..
66

77
OLD_VERSION="${1}"
@@ -10,4 +10,13 @@ NEW_VERSION="${2}"
1010
echo "Current version: $OLD_VERSION"
1111
echo "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

sentry_sdk/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
"""
2525
from sentry_sdk.api import * # noqa
2626
from sentry_sdk.api import __all__ # noqa
27+
from sentry_sdk.consts import VERSION # noqa
2728

2829
# modules we consider public
2930
__all__.append("integrations")

sentry_sdk/consts.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import socket
22

33

4-
VERSION = "0.1"
4+
VERSION = "0.3.6"
55
DEFAULT_SERVER_NAME = socket.gethostname() if hasattr(socket, "gethostname") else None
66
DEFAULT_OPTIONS = {
77
"dsn": None,

0 commit comments

Comments
 (0)
0