def _version(self): """ Display the version and exit. """ c = self while c._parent != None: c = c._parent print "%s %s" % (c.name, versionstring()) sys.exit(0)
def _version(self): c = self while c._parent != None: c = c._parent print "%s %s" % (c.name, versionstring()) sys.exit(0)
# General information about the project. project = u'Terane' copyright = u'2010-2012 Michael Frank' # The version info for the project you're documenting, acts as replacement for # |version| and |release|, also used in various other places throughout the # built documents. # # if rtd is *not* set, then set the version using the versionstring() function if not rtd: # munge the module path to get access to versionstring() sys.path.append(os.path.abspath("../terane")) from terane import versionstring # The short X.Y version. version = versionstring() # The full version, including alpha/beta/rc tags. release = versionstring() # The language for content autogenerated by Sphinx. Refer to documentation # for a list of supported languages. #language = None # There are two options for replacing |today|: either, you set today to some # non-false value, then it is used: #today = '' # Else, today_fmt is used as the format for a strftime call. #today_fmt = '%B %d, %Y' # List of documents that shouldn't be included in the build. #unused_docs = []
# set extension module build parameters extra_include_dirs = [] if 'TERANE_EXTRA_INCLUDE_PATH' in os.environ: extra_include_dirs = os.environ['TERANE_EXTRA_INCLUDE_PATH'].split(':') extra_library_dirs = [] if 'TERANE_EXTRA_LIBRARY_PATH' in os.environ: extra_library_dirs = os.environ['TERANE_EXTRA_LIBRARY_PATH'].split(':') extra_runtime_dirs = [] if 'TERANE_EXTRA_RUNTIME_PATH' in os.environ: extra_runtime_dirs = os.environ['TERANE_EXTRA_RUNTIME_PATH'].split(':') setup( # package description name = "Terane", version = versionstring(), description="Distributed event indexing and search", author="Michael Frank", author_email="*****@*****.**", # installation dependencies install_requires=[ "Twisted >= 10.1", "pyparsing", "python-dateutil", "urwid", "zope.interface", "zope.component", ], # package classifiers for PyPI classifiers=[ "Development Status :: 3 - Alpha",