123456789101112131415161718192021222324252627282930313233 |
- #!/bin/sh
- srcdir="$(realpath -e "$0" | xargs dirname)"
- srcdir="$srcdir/.."
- die() { echo "$*"; exit 1; }
- # Import the makerelease.lib
- # https://bues.ch/cgit/misc.git/tree/makerelease.lib
- for path in $(echo "$PATH" | tr ':' ' '); do
- [ -f "$MAKERELEASE_LIB" ] && break
- MAKERELEASE_LIB="$path/makerelease.lib"
- done
- [ -f "$MAKERELEASE_LIB" ] && . "$MAKERELEASE_LIB" || die "makerelease.lib not found."
- hook_get_version()
- {
- version="$(grep 'version=' "$srcdir/setup.py" | head -n1 | cut -d'"' -f2)"
- }
- hook_regression_tests()
- {
- default_hook_regression_tests "$@"
- # Run selftests
- sh "$1/tests/run.sh"
- }
- project=bme280-upy
- default_archives=py-sdist-xz
- makerelease "$@"
|