Skip to content
This repository was archived by the owner on Oct 1, 2021. It is now read-only.

Commit 25b8a61

Browse files
committed
Add release script
1 parent 3e21357 commit 25b8a61

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

script/release

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

0 commit comments

Comments
 (0)