diff --git a/docs/conf.py b/docs/conf.py index 585123d7f895c3ff705717354fa2694e4edae5ed..314cd18a1276dde454c02fc12fd7315f7295391d 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -64,17 +64,17 @@ master_doc = 'index' # General information about the project. project = 'duniterpy' -copyright = '2015, caner & inso' -author = 'caner & inso' +copyright = '2019, caner & inso & vit' +author = 'caner & inso & vit' # The version info for the project you're documenting, acts as replacement for # |version| and |release|, also used in various other places throughout the # built documents. # # The short X.Y version. -version = '0.51.0' +version = '0.52.0' # The full version, including alpha/beta/rc tags. -release = '0.51.0' +release = '0.52.0' # The language for content autogenerated by Sphinx. Refer to documentation # for a list of supported languages. diff --git a/release.sh b/release.sh index b354fe415d68f2ed00fe6d6ed63a417932dc0a5b..9227631430c1c04a7d10a20ccfa89a7ccc39c8dc 100755 --- a/release.sh +++ b/release.sh @@ -5,8 +5,13 @@ current=`grep -P "__version__ = \'\d+.\d+.\d+(\w*)\'" duniterpy/__init__.py echo "Current version: $current" if [[ $1 =~ ^[0-9]+.[0-9]+.[0-9]+[0-9a-z]*$ ]]; then + # update version in duniterpy sed -i "s/__version__ = '$current'/__version__ = '$1'/g" duniterpy/__init__.py - git commit duniterpy/__init__.py -m "$1" + # update version in documentation configuration + sed -i "s/version = '$current'/version = '$1'/g" docs/conf.py + sed -i "s/release = '$current'/release = '$1'/g" docs/conf.py + # commit changes and add version tag + git commit duniterpy/__init__.py docs/conf.py -m "$1" git tag "$1" -a -m "$1" else echo "Wrong version format"