release 190 Bytes
Newer Older
Jean-Benoist Leger's avatar
Jean-Benoist Leger committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
#!/bin/bash

if ! [[ -f release ]]
then
    echo "Must be run in ." >&2
    exit 11
fi

if ! py.test
then
    exit 13
fi

rm -rf dist/
python3 setup.py sdist bdist_wheel
twine upload dist/*