From ef577981c85baca29185b350134d74ca0cefb0cf Mon Sep 17 00:00:00 2001 From: Andi Albrecht Date: Wed, 6 May 2009 21:36:14 +0200 Subject: Updated version number. --- setup.py | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) (limited to 'setup.py') diff --git a/setup.py b/setup.py index bc3ff84..3a0801f 100755 --- a/setup.py +++ b/setup.py @@ -6,6 +6,8 @@ import os from distutils.core import setup +import sqlparse + def find_packages(base): ret = [base] @@ -48,13 +50,13 @@ Formatting statemtents:: Parsing:: - >>> sql = 'select * from "someschema"."mytable" where id = 1' + >>> sql = 'select * from someschema.mytable where id = 1' >>> res = sqlparse.parse(sql) >>> res (,) >>> stmt = res[0] >>> stmt.to_unicode() # converting it back to unicode - u'select * from "someschema"."mytable" where id = 1' + u'select * from someschema.mytable where id = 1' >>> # This is how the internal representation looks like: >>> stmt.tokens (, @@ -63,21 +65,25 @@ Parsing:: , , , - , + , , ) """ +DOWNLOAD_URL = ('http://python-sqlparse.googlecode.com/files/' + 'sqlparse-%s.tar.gz' % sqlparse.__version__) + + setup( name='sqlparse', - version='0.1.0', + version=sqlparse.__version__, packages=find_packages('sqlparse'), description='Non-validating SQL parser', author='Andi Albrecht', author_email='albrecht.andi@gmail.com', - download_url='http://python-sqlparse.googlecode.com/files/sqlparse-0.1.0.tar.gz', + download_url=DOWNLOAD_URL, long_description=LONG_DESCRIPTION, license='BSD', url='http://python-sqlparse.googlecode.com/', @@ -87,6 +93,10 @@ setup( 'License :: OSI Approved :: BSD License', 'Operating System :: OS Independent', 'Programming Language :: Python', + 'Programming Language :: Python :: 2', + 'Programming Language :: Python :: 2.4', + 'Programming Language :: Python :: 2.5', + 'Programming Language :: Python :: 2.6', 'Topic :: Database', 'Topic :: Software Development' ], -- cgit v1.2.1