2022-04-14 11:01:35 +02:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
|
|
|
# Bump the version in the setup.py files.
|
|
|
|
|
|
|
|
set -u
|
|
|
|
|
|
|
|
error() {
|
|
|
|
echo >&2 "error: $*"
|
|
|
|
exit 1
|
|
|
|
}
|
|
|
|
|
|
|
|
command -v sed > /dev/null || error "sed command not found!"
|
|
|
|
|
2022-09-12 10:24:53 +02:00
|
|
|
version="$1"
|
2022-04-14 11:01:35 +02:00
|
|
|
|
|
|
|
for setup_path in */setup.py; do
|
|
|
|
sed --in-place \
|
|
|
|
"s/version=\".*\",/version=\"$version\",/" \
|
|
|
|
"$setup_path" ||
|
|
|
|
error "could not bump version for $setup_path!"
|
|
|
|
done
|