# HG changeset patch # User cmlenz # Date 1186860536 0 # Node ID 818c81fad00c45e339ee54aa27f14ac89b41517c # Parent bc81d7b069ff35c783911729bdf282b880aa4ca2 The slave shouldn't depend on Trac, so remove the related import. Also, automatically fetch the version number from the setup script. diff --git a/bitten/__init__.py b/bitten/__init__.py --- a/bitten/__init__.py +++ b/bitten/__init__.py @@ -8,7 +8,8 @@ # you should have received as part of this distribution. The terms # are also available at http://bitten.edgewall.org/wiki/License. -from bitten.api import * - __docformat__ = 'restructuredtext en' -__version__ = '0.6' +try: + __version__ = __import__('pkg_resources').get_distribution('Bitten').version +except ImportError: + pass