diff --git a/django_pyvows/version.py b/django_pyvows/version.py new file mode 100644 index 0000000..8a970be --- /dev/null +++ b/django_pyvows/version.py @@ -0,0 +1,11 @@ +#!/usr/bin/python +# -*- coding: utf-8 -*- + +# django-pyvows extensions +# https://github.com/rafaelcaricio/django-pyvows + +# Licensed under the MIT license: +# http://www.opensource.org/licenses/mit-license +# Copyright (c) 2011 Rafael Caricio rafael@caricio.com + +__version__ = (0, 1, 0) diff --git a/setup.py b/setup.py index 4edad12..a4d73c0 100644 --- a/setup.py +++ b/setup.py @@ -8,12 +8,15 @@ # http://www.opensource.org/licenses/mit-license # Copyright (c) 2011 Rafael Caricio rafael@caricio.com +import os from setuptools import setup -from django_pyvows import __version__ +from imp import load_source + +version = load_source('version', os.path.join("django_pyvows", "version.py")) setup( name = 'django-pyvows', - version = __version__, + version = '.'.join([str(item) for item in version.__version__]), description = "django-pyvows are pyvows extensions to django web framework.", long_description = """ django-pyvows are pyvows extensions to django web framework. diff --git a/vows/sandbox/__init__.py b/vows/sandbox/__init__.py index f4f7773..2e71dd5 100644 --- a/vows/sandbox/__init__.py +++ b/vows/sandbox/__init__.py @@ -7,5 +7,3 @@ # Licensed under the MIT license: # http://www.opensource.org/licenses/mit-license # Copyright (c) 2011 Rafael Caricio rafael@caricio.com - -__version__ = '0.1.0'