from __future__ import absolute_import

from collections import namedtuple

import pbr.version


__version__ = pbr.version.VersionInfo('instabrade').version_string()

PageID = namedtuple("PageID", "name css_path attr attr_value")

LOG_IN_IDENTIFIER = PageID(name='Log In Page Identifier',
                           css_path='h1.coreSpriteLoggedOutWordmark',
                           attr='class',
                           attr_value='coreSpriteLoggedOutWordmark')

HOME_IDENTIFIER = PageID(name='Home Page Identifier',
                         css_path='main[role="main"] > section a[href$="explore/"]',
                         attr='href',
                         attr_value='/explore/')

from instabrade.instagram import Instagram  # noqa

@@ -69,22 +69,20 @@
 dtuple%0A%0A
-import
+from
  pbr.ver
@@ -85,17 +85,35 @@
 .version
-%0A
+ import VersionInfo
 %0A%0A__vers
@@ -124,20 +124,8 @@
 _ = 
-pbr.version.
 Vers
@@ -146,23 +146,42 @@
 brade').
-version
+semantic_version().release
 _string(

Update how version is determined