Skip to content

Commit

Permalink
Add version file
Browse files Browse the repository at this point in the history
  • Loading branch information
FabioLuporini committed Sep 30, 2014
1 parent bff8390 commit 73106a2
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 2 deletions.
2 changes: 2 additions & 0 deletions coffee/version.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
__version_info__ = (0, 1, 0)
__version__ = '.'.join(map(str, __version_info__))
8 changes: 8 additions & 0 deletions doc/source/coffee.rst
Original file line number Diff line number Diff line change
Expand Up @@ -57,3 +57,11 @@ coffee Package
:undoc-members:
:show-inheritance:

:mod:`version` Module
---------------------

.. automodule:: coffee.version
:members:
:undoc-members:
:show-inheritance:

5 changes: 3 additions & 2 deletions doc/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,10 @@
# built documents.
#
# The short X.Y version.
version = '0.9'
execfile("../../coffee/version.py")
version = '%d.%d' % __version_info__[0:2] # noqa: pulled from coffee/version.py
# The full version, including alpha/beta/rc tags.
release = '0.9'
release = __version__ # noqa: pulled from coffee/version.py

# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.
Expand Down

0 comments on commit 73106a2

Please sign in to comment.