Skip to content

Commit 0b40ea4

Browse files
committed
Add release script
1 parent 25c76bc commit 0b40ea4

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

release.sh

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
#!/bin/bash
2+
set -euo pipefail; IFS=$'\n\t'
3+
4+
NAME=$( python setup.py --name )
5+
VER=$( python setup.py --version )
6+
7+
echo "========================================================================"
8+
echo "Tagging $NAME v$VER"
9+
echo "========================================================================"
10+
11+
git tag v$VER
12+
git push origin v$VER
13+
14+
echo "========================================================================"
15+
echo "Releasing $NAME v$VER on PyPI"
16+
echo "========================================================================"
17+
18+
python setup.py sdist
19+
twine upload dist/*
20+
rm -r dist/ *.egg-info

0 commit comments

Comments
 (0)