forked from typeddjango/django-stubs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* + versions don't work sadface * Update bump-version.sh * use post versions
- Loading branch information
1 parent
d635dc9
commit 5f0428b
Showing
2 changed files
with
4 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,9 @@ | ||
#!/usr/bin/env bash | ||
set -euxo pipefail | ||
|
||
if ! grep -E '^.*\+sentry[0-9]+' <<< "$2"; then | ||
: "version must be D.D.D+sentryD got: $2" | ||
if ! grep -E '^[0-9]+\.[0-9]+\.[0-9]+-[0-9]+$' <<< "$2"; then | ||
: "expected #.#.#-# got $2" | ||
exit 1 | ||
fi | ||
|
||
sed -i "s/^ version="'"'".*"'"'",$/ version="'"'"$2"'"'",/" setup.py |