Skip to content
Browse files

Adds __version__ to module (PEP396)

Adds a __version__ attribute to the dashi module in accordance with
PEP396, module clients can verify the version, and make assertions about
the version number using distutils (PEP386). setup.py references the
module's version defined in dashi/__init__.py
  • Loading branch information...
1 parent 9898437 commit 7a09f2f7035a741e4dbe445b0c7b6f1fdc9f44ee @lukecampbell lukecampbell committed Feb 4, 2013
Showing with 4 additions and 1 deletion.
  1. +2 −0 dashi/__init__.py
  2. +2 −1 setup.py
View
2 dashi/__init__.py
@@ -15,6 +15,8 @@
from exceptions import DashiError, BadRequestError, NotFoundError, UnknownOperationError, WriteConflictError
+__version__ = '0.2.7'
+
log = logging.getLogger(__name__)
DEFAULT_HEARTBEAT = None # Disabled for now
View
3 setup.py
@@ -2,8 +2,9 @@
import os
import codecs
+from dashi import __version__
-VERSION = "0.2.7"
+VERSION = __version__
if os.path.exists("README.rst"):
long_description = codecs.open('README.rst', "r", "utf-8").read()

0 comments on commit 7a09f2f

Please sign in to comment.
Something went wrong with that request. Please try again.