Commits

Andy Mikhailenko  committed 7f187ec

Fixed #18: argh.__version__ instead of _version.py

  • Participants
  • Parent commits e646370
  • Branches 18-version-attribute

Comments (0)

Files changed (4)

File _version.py

-version = '0.16.0'

File argh/__init__.py

 from .exceptions import *
 from .helpers import *
 from .decorators import *
+
+__version__ = '0.16.0'

File docs/conf.py

 # add these directories to sys.path here. If the directory is relative to the
 # documentation root, use os.path.abspath to make it absolute, like shown here.
 sys.path.append(os.path.abspath('..'))
-from _version import version as full_version
+from argh import __version__ as full_version
 
 # -- General configuration -----------------------------------------------------
 
 
 import os
 from setuptools import setup
-from _version import version
+from argh import __version__
 
 
 readme = open(os.path.join(os.path.dirname(__file__), 'README')).read()
     long_description = readme,
 
     # technical info
-    version  = version,
+    version  = __version__,
     packages = ['argh'],
     requires = ['python (>= 2.5)', 'argparse (>=1.1)'],
     provides = ['argh'],