Skip to content

Commit c5cd951

Browse files
author
Dan Shemesh
committed
added a version release tools
1 parent cd65fe5 commit c5cd951

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

tools/version_release.sh

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
#!/usr/bin/env bash
2+
3+
pushd `dirname ${BASH_SOURCE[0]}`/..
4+
5+
version=`\grep version jumper_logging_agent/__init__.py | \egrep -o '[0-9]+\.[0-9]+\.[0-9]+'`
6+
echo "Found version: ${version}"
7+
8+
if [ `git tag | grep ${version}` ] ; then
9+
echo "version already exists"
10+
exit 1
11+
fi;
12+
13+
git tag ${version}
14+
git push --tags
15+
16+
python setup.py register -r pypi
17+
python setup.py sdist upload -r pypitest

0 commit comments

Comments
 (0)