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:
parent
e1742b8c74
commit
7872e280a9
@ -42,7 +42,8 @@ import traceback
|
|||||||
from nose.plugins import Plugin
|
from nose.plugins import Plugin
|
||||||
from xml.sax import saxutils
|
from xml.sax import saxutils
|
||||||
|
|
||||||
__version__ = "0.0.1"
|
import version
|
||||||
|
__version__ = version.__version__
|
||||||
|
|
||||||
class TemplateData(object):
|
class TemplateData(object):
|
||||||
"""
|
"""
|
||||||
|
1
htmloutput/version.py
Normal file
1
htmloutput/version.py
Normal file
@ -0,0 +1 @@
|
|||||||
|
__version__ = '0.0.1'
|
4
setup.py
4
setup.py
@ -1,9 +1,9 @@
|
|||||||
import htmloutput.htmloutput
|
import htmloutput.version
|
||||||
import setuptools
|
import setuptools
|
||||||
|
|
||||||
setuptools.setup(
|
setuptools.setup(
|
||||||
name="nosehtmloutput",
|
name="nosehtmloutput",
|
||||||
version=htmloutput.htmloutput.__version__,
|
version=htmloutput.version.__version__,
|
||||||
author='Hewlett-Packard Development Company, L.P.',
|
author='Hewlett-Packard Development Company, L.P.',
|
||||||
description="Nose plugin to produce test results in html.",
|
description="Nose plugin to produce test results in html.",
|
||||||
license="Apache License, Version 2.0",
|
license="Apache License, Version 2.0",
|
||||||
|
Loading…
Reference in New Issue
Block a user