Centralised version number

This commit is contained in:
Carles Barrobés
2012-02-23 00:25:25 +00:00
parent 07f406bbc5
commit feda152f22
3 changed files with 7 additions and 4 deletions

1
ddt.py
View File

@@ -1,5 +1,6 @@
from functools import wraps
__version__ = '0.1.1'
MAGIC = '%values' # this value cannot conflict with any real python attribute

View File

@@ -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.

View File

@@ -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',