Skip to content

Commit

Permalink
Merge 2867d57 into d8782f8
Browse files Browse the repository at this point in the history
  • Loading branch information
mayn committed Oct 14, 2017
2 parents d8782f8 + 2867d57 commit 7456f79
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 2 deletions.
12 changes: 11 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,19 @@
from distutils.core import setup
from setuptools import find_packages


def get_version():
with open('src/packerlicious/version.py') as f:
for line in f.readlines():
if line.startswith("__version__"):
version = line.split()[-1].strip('"')
return version
raise AttributeError("{0} __version__ not found".format(f.name))


setup(
name='packerlicious',
version='0.5.0',
version=get_version(),
author='Matthew Aynalem',
author_email='maynalem@gmail.com',
packages=find_packages('src'),
Expand Down
3 changes: 2 additions & 1 deletion src/packerlicious/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,9 @@
from thirdparty.troposphere import BaseAWSObject as BasePackerObject

from .template import Template
import version as version

__version__ = "0.5.0"
__version__ = version.__version__


class Ref(AWSHelperFn):
Expand Down
1 change: 1 addition & 0 deletions src/packerlicious/version.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
__version__ = "0.5.0"

0 comments on commit 7456f79

Please sign in to comment.