Skip to content

Commit

Permalink
setup.py - retrieve version info from packerlicious version.py
Browse files Browse the repository at this point in the history
  • Loading branch information
mayn committed Oct 14, 2017
1 parent d8782f8 commit d310138
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
7 changes: 6 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,14 @@
from distutils.core import setup
from setuptools import find_packages

with open("src/packerlicious/version.py") as fp:
exec(fp.read())

VERSION = __version__

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

from .template import Template
from .version import __version__

__version__ = "0.5.0"


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 d310138

Please sign in to comment.