Just to add to the discussion. You could simplify your workflow and if your version usually is the same as the release, you could put it this way:
# The short X.Y version.
version = '0.0.1'
# The full version, including alpha/beta/rc tags.
release = version
Then you will only need to change the first value.