Commits

Owen Nelson committed 47fab5c

removing stupid hg version stuff and hardcoding the version (not that big a deal)

  • Participants
  • Parent commits 6544dbf

Comments (0)

Files changed (2)

File docs/conf.py

 # All configuration values have a default; values that are commented out
 # serve to show the default.
 
-import sys, os
-ROOT = os.path.abspath(os.path.dirname(__file__))
-SRC = os.path.join(ROOT, 'src')
-sys.path.insert(0, SRC)
-import trawler
-
 # 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.
 # built documents.
 #
 # The short X.Y version.
-version = trawler.__version__
+version = '0.1'
 # The full version, including alpha/beta/rc tags.
-release = trawler.__release__
+release = '0.1a'
 
 # The language for content autogenerated by Sphinx. Refer to documentation
 # for a list of supported languages.

File src/trawler/__init__.py

-import os, subprocess
+__version__ = '0.1a'
 
-__version__ = '0.1'
-__release__ = '0.1a'
-
-__dev__ = True
-
-def get_hg_rev():
-    try:
-        pipe = subprocess.Popen(
-            ["hg", "id", "-i", os.path.join(
-                os.path.abspath(os.path.dirname(__file__)),
-                '../../')], # FIXME
-            stdout=subprocess.PIPE
-            )
-        return '.hg-%s' % pipe.stdout.read()
-    except:
-        return ''
-
-if __dev__:
-     __release__ += get_hg_rev()
-