From 415bc819e7004537be0d214470a1c23705dbc1f0 Mon Sep 17 00:00:00 2001 From: Kenneth Reitz Date: Tue, 21 Jun 2011 20:17:05 -0400 Subject: [PATCH] __version__ --- setup.py | 10 +++------- tablib/__init__.py | 3 ++- 2 files changed, 5 insertions(+), 8 deletions(-) diff --git a/setup.py b/setup.py index 4f6e289..d461794 100755 --- a/setup.py +++ b/setup.py @@ -4,6 +4,8 @@ import os import sys +import tablib + try: from setuptools import setup except ImportError: @@ -35,14 +37,9 @@ if sys.argv[-1] == 'test': os.system('pytest test_tablib.py') sys.exit() -required = [] - -if sys.version_info[:2] < (2,6): - required.append('simplejson') - setup( name='tablib', - version='0.9.8', + version=tablib.__version__, description='Format agnostic tabular data library (XLS, JSON, YAML, CSV)', long_description=open('README.rst').read() + '\n\n' + open('HISTORY.rst').read(), @@ -62,7 +59,6 @@ setup( 'tablib.packages.yaml', 'tablib.packages.unicodecsv' ], - install_requires=required, license='MIT', classifiers=( 'Development Status :: 5 - Production/Stable', diff --git a/tablib/__init__.py b/tablib/__init__.py index c7ae7c0..446e1f9 100644 --- a/tablib/__init__.py +++ b/tablib/__init__.py @@ -3,6 +3,7 @@ from tablib.core import ( Databook, Dataset, detect, import_set, - InvalidDatasetType, InvalidDimensions, UnsupportedFormat + InvalidDatasetType, InvalidDimensions, UnsupportedFormat, + __version__ )