Files
django-dav-events/.buildbot/dist/01-sdist.sh
Jens Kleineheismann 69a8b0c003
Some checks failed
buildbot/tox Build done.
buildbot/django-dav-events-install Build done.
ADD: support for heinzelwerk CI/CD chain
2020-04-23 12:24:21 +02:00

23 lines
487 B
Bash

if test -z "$DIST_FORMAT" ; then
DIST_FORMAT="gztar"
fi
python setup.py sdist --dist-dir . --formats "$DIST_FORMAT"
if test -n "$DIST_FILE" ; then
dist_name=`python setup.py --name`
dist_version=`python setup.py --version`
case "$DIST_FORMAT" in
gztar)
dist_suffix=".tar.gz"
;;
*)
dist_suffix=".${DIST_FORMAT}"
;;
esac
produced_file="${dist_name}-${dist_version}${dist_suffix}"
if test "$produced_file" != "$DIST_FILE" ; then
mv "$produced_file" "$DIST_FILE"
fi
fi