Centralised version number
This commit is contained in:
1
ddt.py
1
ddt.py
@@ -1,5 +1,6 @@
|
|||||||
from functools import wraps
|
from functools import wraps
|
||||||
|
|
||||||
|
__version__ = '0.1.1'
|
||||||
|
|
||||||
MAGIC = '%values' # this value cannot conflict with any real python attribute
|
MAGIC = '%values' # this value cannot conflict with any real python attribute
|
||||||
|
|
||||||
|
|||||||
@@ -51,11 +51,12 @@ copyright = u'2012, Carles Barrobés'
|
|||||||
# The version info for the project you're documenting, acts as replacement for
|
# The version info for the project you're documenting, acts as replacement for
|
||||||
# |version| and |release|, also used in various other places throughout the
|
# |version| and |release|, also used in various other places throughout the
|
||||||
# built documents.
|
# built documents.
|
||||||
#
|
|
||||||
|
from ddt import __version__
|
||||||
# The short X.Y version.
|
# The short X.Y version.
|
||||||
version = '0.1.0'
|
version = __version__
|
||||||
# The full version, including alpha/beta/rc tags.
|
# The full version, including alpha/beta/rc tags.
|
||||||
release = '0.1.0'
|
release = __version__
|
||||||
|
|
||||||
# The language for content autogenerated by Sphinx. Refer to documentation
|
# The language for content autogenerated by Sphinx. Refer to documentation
|
||||||
# for a list of supported languages.
|
# for a list of supported languages.
|
||||||
|
|||||||
3
setup.py
3
setup.py
@@ -2,12 +2,13 @@
|
|||||||
# # coding: utf-8
|
# # coding: utf-8
|
||||||
|
|
||||||
from setuptools import setup
|
from setuptools import setup
|
||||||
|
from ddt import __version__
|
||||||
|
|
||||||
setup(
|
setup(
|
||||||
name='ddt',
|
name='ddt',
|
||||||
description='Data-Driven/Decorated Tests',
|
description='Data-Driven/Decorated Tests',
|
||||||
long_description='A library to multiply test cases',
|
long_description='A library to multiply test cases',
|
||||||
version='0.1.1',
|
version=__version__,
|
||||||
author='Carles Barrobés',
|
author='Carles Barrobés',
|
||||||
author_email='carles@barrobes.com',
|
author_email='carles@barrobes.com',
|
||||||
url='https://github.com/txels/ddt',
|
url='https://github.com/txels/ddt',
|
||||||
|
|||||||
Reference in New Issue
Block a user