diff --git a/docs/python/source/conf.py b/docs/python/source/conf.py index b5a780e..3a54754 100644 --- a/docs/python/source/conf.py +++ b/docs/python/source/conf.py @@ -24,9 +24,9 @@ author = 'Caio S. Souza' # The short X.Y version -version = '' +version = "1.0" # The full version, including alpha/beta/rc tags -release = '1.0' +release = "1.0.0" # -- General configuration --------------------------------------------------- diff --git a/maintainer/update_version.sh b/maintainer/update_version.sh new file mode 100755 index 0000000..4bcae2b --- /dev/null +++ b/maintainer/update_version.sh @@ -0,0 +1,20 @@ +#!/bin/bash + +# +# Version standard +# +# MAJOR.MINOR.BUGFIX +# MAJOR.MINOR.BUGFIX-dev +# MAJOR.MINOR.BUGFIX-rc1 +# MAJOR.MINOR.BUGFIX-rc2 +# + +VERSION="1.0.0" +SHORT="1.0" + +sed -i 's/[0-9]\+\.[0-9]\+\.[0-9]\+\(-dev\|-rc[0-9]*\)\?/'$VERSION'/' ../package/miga/__init__.py + +sed -i 's/\(version *= *"\)[0-9]\+\.[0-9]\+\.[0-9]\+\(-dev\|-rc[0-9]*\)\?/\1'$VERSION'/' ../package/setup.py + +sed -i 's/\(version *= *"\)[0-9]\+\.[0-9]\+\.[0-9]\+\(-dev\|-rc[0-9]*\)\?/\1'$SHORT'/' ../docs/python/source/conf.py +sed -i 's/\(release *= *"\)[0-9]\+\.[0-9]\+\.[0-9]\+\(-dev\|-rc[0-9]*\)\?/\1'$VERSION'/' ../docs/python/source/conf.py diff --git a/package/miga/__init__.py b/package/miga/__init__.py index d70f065..21ebfe2 100644 --- a/package/miga/__init__.py +++ b/package/miga/__init__.py @@ -1 +1,3 @@ from .miga import MIGA, np_data_t, np_index_t, np_seq_t + +__version__ = "1.0.0" # Keep in sync with setup.py and docs