From df93146049fcacebca4c68ad51ab5b4c091eac6a Mon Sep 17 00:00:00 2001 From: Bryan Veloso Date: Mon, 12 Sep 2011 13:03:28 -0700 Subject: [PATCH] Making versioning a little easier on myself. --- imagekit/__init__.py | 12 +++++++----- setup.py | 17 +++++++++++++---- 2 files changed, 20 insertions(+), 9 deletions(-) diff --git a/imagekit/__init__.py b/imagekit/__init__.py index baf8eca..8993c70 100644 --- a/imagekit/__init__.py +++ b/imagekit/__init__.py @@ -1,11 +1,13 @@ """ Django ImageKit -Author: Justin Driscoll -Version: 0.4.0 +:author: Justin Driscoll +:maintainer: Bryan Veloso +:license: BSD """ +__title__ = 'django-imagekit' +__version__ = '0.4.1' +__build__ = 0x000400 __author__ = 'Justin Driscoll, Bryan Veloso, Greg Newman, Chris Drackett' -__version__ = (0, 4, 0) - - +__license__ = 'BSD' diff --git a/setup.py b/setup.py index 379c771..2e3939f 100644 --- a/setup.py +++ b/setup.py @@ -1,9 +1,20 @@ #/usr/bin/env python -from distutils.core import setup +import os +import sys +import imagekit + +try: + from setuptools import setup +except ImportError: + from distutils.core import setup + +if 'publish' in sys.argv: + os.system('python setup.py sdist upload') + sys.exit() setup( name='django-imagekit', - version='0.4.0', + version=imagekit.__version__, description='Automated image processing for Django models.', author='Justin Driscoll', author_email='justin@driscolldev.com', @@ -29,5 +40,3 @@ setup( 'Topic :: Utilities' ] ) - -