File size: 289 Bytes
4670a90
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/usr/bin/env sh

set -eu
cd "$(dirname "$0")"
cd ..

if [ -n "$(git status --porcelain)" ]; then
    echo "Project has uncommitted changes."
    exit 1
fi

trap clean EXIT

clean() {
    rm -r build dist *.egg-info || true
}

clean
python3 setup.py sdist bdist_wheel
twine upload dist/*