Fix versioning depending on nose.

Previously versioning depended on nose which broke setup.py if nose
was not already installed. Break version into its own module so that
it is not dependent on nose.
This commit is contained in:
Clark Boylan 2012-08-08 10:37:26 -07:00
parent e1742b8c74
commit 7872e280a9
3 changed files with 5 additions and 3 deletions

View File

@ -42,7 +42,8 @@ import traceback
from nose.plugins import Plugin
from xml.sax import saxutils
__version__ = "0.0.1"
import version
__version__ = version.__version__
class TemplateData(object):
"""

1
htmloutput/version.py Normal file
View File

@ -0,0 +1 @@
__version__ = '0.0.1'

View File

@ -1,9 +1,9 @@
import htmloutput.htmloutput
import htmloutput.version
import setuptools
setuptools.setup(
name="nosehtmloutput",
version=htmloutput.htmloutput.__version__,
version=htmloutput.version.__version__,
author='Hewlett-Packard Development Company, L.P.',
description="Nose plugin to produce test results in html.",
license="Apache License, Version 2.0",