Skip to content

Commit

Permalink
Better versioning
Browse files Browse the repository at this point in the history
  • Loading branch information
biesnecker committed Apr 4, 2015
1 parent 9014a71 commit 38019f7
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
1 change: 1 addition & 0 deletions cleveland/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from .version import __version__, __version_info__
2 changes: 2 additions & 0 deletions cleveland/version.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
__version_info__ = (0, 2, 1)
__version__ = '.'.join([str(i) for i in __version_info__])
5 changes: 4 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,16 @@
def read(filename):
return open(os.path.join(os.path.dirname(__file__), filename)).read()

# Grab the version information
exec(open('cleveland/version.py').read())

if sys.version_info >= (3, 4):
install_requires = []
else:
install_requires = ['asyncio']

setup(name='cleveland',
version='0.2',
version=__version__,
author='John Biesnecker',
author_email='jbiesnecker@gmail.com',
url='https://github.com/biesnecker/cleveland',
Expand Down

0 comments on commit 38019f7

Please sign in to comment.