blob: d6d1e30ad1628a5bb981e50a1e824cbf64c8d56f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
#!/bin/sh
# Pushes a new version to PyPi.
cd "$(dirname "$0")/.."
CURRENT_BRANCH=`git rev-parse --abbrev-ref HEAD`
if [ "$CURRENT_BRANCH" != "master" ]
then
echo "You have to be on the master to release."
exit 1
fi
rm -rf dist
python3 setup.py sdist bdist_wheel
python3 -m twine upload dist/* --skip-existing
|