Andy Mikhailenko  committed 01aead1

Added _version module. The problem is that both Sphinx and must know the version so we should store it in a third place; the most natural place would be argh.__version__ but if imports it, the coverage gets screwed up. So we put the version to an external module. Unfortunately this means that the (installed) package itself will not know it version.

  • Participants
  • Parent commits 900abbc

Comments (0)

Files changed (3)

+version = '0.3.0'

File docs/

 # If extensions (or modules to document with autodoc) are in another directory,
 # 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.
+from _version import version as full_version
 # -- General configuration -----------------------------------------------------
 # built documents.
 # The short X.Y version.
-version = '0.1'
+version = full_version.rpartition('.')[0]
 # The full version, including alpha/beta/rc tags.
-release = '0.1'
+release = full_version
 # The language for content autogenerated by Sphinx. Refer to documentation
 # for a list of supported languages.
 # The theme to use for HTML and HTML Help pages.  Major themes that come with
 # Sphinx are currently 'default' and 'sphinxdoc'.
-html_theme = 'default'
+html_theme = 'haiku'
 # Theme options are theme-specific and customize the look and feel of a theme
 # further.  For a list of options available for each theme, see the
 import os
 from setuptools import setup
-#import argh
+from _version import version
-version = '0.2.0'
 readme = open(os.path.join(os.path.dirname(__file__), 'README')).read()