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. --- CHANGES | 12 ++++++++---- setup.py | 20 +++++++++++++++----- sqlparse/__init__.py | 2 +- 3 files changed, 24 insertions(+), 10 deletions(-) diff --git a/CHANGES b/CHANGES index 168d72e..1dbc824 100644 --- a/CHANGES +++ b/CHANGES @@ -1,14 +1,18 @@ -In Development --------------- +Release 0.1.1 (May 6, 2009) +--------------------------- + +Bug Fixes * Lexers preserves original line breaks (issue1). * Improved identifier parsing: backtick quotes, wildcards, T-SQL variables prefixed with @. * Improved parsing of identifier lists (issue2). * Recursive recognition of AS (issue4) and CASE. * Improved support for UPDATE statements. + +Other * Code cleanup and better test coverage. -Release 0.1.0 -------------- +Release 0.1.0 (Apr 8, 2009) +--------------------------- * Initial release. \ No newline at end of file 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' ], diff --git a/sqlparse/__init__.py b/sqlparse/__init__.py index 450a244..ef61ae0 100644 --- a/sqlparse/__init__.py +++ b/sqlparse/__init__.py @@ -6,7 +6,7 @@ """Parse SQL statements.""" -__version__ = '0.1.0' +__version__ = '0.1.1' import os -- cgit v1.2.1