Skip to content

Commit

Permalink
Added script to update version and updated version to 1.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
caioss committed Sep 21, 2018
1 parent c273e08 commit 0e987ba
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/python/source/conf.py
Expand Up @@ -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 ---------------------------------------------------
Expand Down
20 changes: 20 additions & 0 deletions 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
2 changes: 2 additions & 0 deletions 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

0 comments on commit 0e987ba

Please sign in to comment.