diff --git a/ddt.py b/ddt.py index b4a16df..4ad423e 100644 --- a/ddt.py +++ b/ddt.py @@ -1,5 +1,6 @@ from functools import wraps +__version__ = '0.1.1' MAGIC = '%values' # this value cannot conflict with any real python attribute diff --git a/docs/conf.py b/docs/conf.py index 1d50560..3bb2d6f 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -51,11 +51,12 @@ copyright = u'2012, Carles Barrobés' # 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. -# + +from ddt import __version__ # The short X.Y version. -version = '0.1.0' +version = __version__ # The full version, including alpha/beta/rc tags. -release = '0.1.0' +release = __version__ # The language for content autogenerated by Sphinx. Refer to documentation # for a list of supported languages. diff --git a/setup.py b/setup.py index fc40b5f..5215fff 100644 --- a/setup.py +++ b/setup.py @@ -2,12 +2,13 @@ # # coding: utf-8 from setuptools import setup +from ddt import __version__ setup( name='ddt', description='Data-Driven/Decorated Tests', long_description='A library to multiply test cases', - version='0.1.1', + version=__version__, author='Carles Barrobés', author_email='carles@barrobes.com', url='https://github.com/txels/ddt',