__project__ = 'TemplateDemo'
__version__ = '0.0.0'

VERSION = "{0} v{1}".format(__project__, __version__)

from pkg_resources import DistributionNotFound, get_distribution


try:
    __version__ = get_distribution('TemplateDemo').version
except DistributionNotFound:
    __version__ = '(local)'

Deploy Travis CI build 1156 to GitHub
Deploy Travis CI build 1156 to GitHub

+ from pkg_resources import DistributionNotFound, get_distribution
- __project__ = 'TemplateDemo'
- __version__ = '0.0.0'
  
- VERSION = "{0} v{1}".format(__project__, __version__)
  
+ try:
+     __version__ = get_distribution('TemplateDemo').version
+ except DistributionNotFound:
+     __version__ = '(local)'
+ 
Deploy Travis CI build 1156 to GitHub
## Code Before:
__project__ = 'TemplateDemo'
__version__ = '0.0.0'

VERSION = "{0} v{1}".format(__project__, __version__)

## Instruction:
Deploy Travis CI build 1156 to GitHub
## Code After:
from pkg_resources import DistributionNotFound, get_distribution


try:
    __version__ = get_distribution('TemplateDemo').version
except DistributionNotFound:
    __version__ = '(local)'
