diff --git a/release.sh b/release.sh new file mode 100755 index 0000000..705d94a --- /dev/null +++ b/release.sh @@ -0,0 +1,13 @@ + +#!/bin/sh + +set -e + +if [ ! -z "`git diff`" ]; then + echo Please commit first + exit +fi + +git tag -a v$(python -c 'import setup; print(setup.__version__)') -m release +git push --tags + diff --git a/setup.py b/setup.py index 9d42976..916f2f2 100644 --- a/setup.py +++ b/setup.py @@ -6,17 +6,18 @@ with open(os.path.join(os.path.dirname(__file__), "sskit", "version.py")) as fp: exec(fp.read()) -setup( - name='sskit', - description='Spiideo Scenes development Kit', - long_description=''' - Development Kit for the Spiideo SoccerNet SynLoc task and Challange - ''', - version=__version__, - packages=['sskit'], - zip_safe=False, - url='https://github.com/Spiideo/sskit', - author='Hakan Ardo', - author_email='hakan.ardo@spiideo.com', - license='MIT', -) +if __name__ == '__main__': + setup( + name='sskit', + description='Spiideo Scenes development Kit', + long_description=''' + Development Kit for the Spiideo SoccerNet SynLoc task and Challange + ''', + version=__version__, + packages=['sskit'], + zip_safe=False, + url='https://github.com/Spiideo/sskit', + author='Hakan Ardo', + author_email='hakan.ardo@spiideo.com', + license='MIT', + ) diff --git a/sskit/version.py b/sskit/version.py index 00f5015..4c0ee47 100644 --- a/sskit/version.py +++ b/sskit/version.py @@ -1,2 +1,2 @@ -__version_info__ = (0, 1, 0) +__version_info__ = (0, 2, 0) __version__ = '.'.join(str(i) for i in __version_info__)