[Python-modules-commits] [sqlparse] 01/05: New upstream version 0.2.2

Andriy Senkovych jollyroger-guest at moszumanska.debian.org
Tue Nov 8 01:03:28 UTC 2016


This is an automated email from the git hooks/post-receive script.

jollyroger-guest pushed a commit to branch master
in repository sqlparse.

commit cc97a2a79ba448ff0d699a7ee5331919cccea4aa
Author: Andriy Senkovych <jolly_roger at itblog.org.ua>
Date:   Tue Nov 8 02:56:55 2016 +0200

    New upstream version 0.2.2
---
 AUTHORS                               |  14 +
 CHANGELOG                             | 420 ++++++++++++++++++++
 CHANGES                               | 295 --------------
 COPYING                               |  25 --
 MANIFEST.in                           |   4 +-
 Makefile                              |   1 +
 PKG-INFO                              |  12 +-
 README.rst                            |   7 +-
 TODO                                  |   2 -
 bin/sqlformat                         | 109 -----
 docs/source/analyzing.rst             |   2 +-
 docs/source/api.rst                   |   4 +
 docs/source/changes.rst               |  12 +-
 docs/source/conf.py                   |   8 +-
 docs/source/index.rst                 |   8 +-
 docs/source/intro.rst                 |   8 +-
 docs/sqlformat.1                      |   4 +
 pytest.ini                            |   6 -
 setup.cfg                             |  18 +
 setup.py                              |  66 ++-
 sqlparse.egg-info/PKG-INFO            |  12 +-
 sqlparse.egg-info/SOURCES.txt         |  31 +-
 sqlparse.egg-info/entry_points.txt    |   3 +
 sqlparse/__init__.py                  |  41 +-
 sqlparse/__main__.py                  |  22 +
 sqlparse/cli.py                       | 170 ++++++++
 sqlparse/compat.py                    |  47 +++
 sqlparse/engine/__init__.py           |  88 +---
 sqlparse/engine/filter.py             | 112 ------
 sqlparse/engine/filter_stack.py       |  44 ++
 sqlparse/engine/grouping.py           | 696 +++++++++++++++-----------------
 sqlparse/engine/statement_splitter.py | 105 +++++
 sqlparse/exceptions.py                |   6 +-
 sqlparse/filters.py                   | 728 ----------------------------------
 sqlparse/filters/__init__.py          |  40 ++
 sqlparse/filters/aligned_indent.py    | 129 ++++++
 sqlparse/filters/others.py            | 117 ++++++
 sqlparse/filters/output.py            | 123 ++++++
 sqlparse/filters/reindent.py          | 181 +++++++++
 sqlparse/filters/right_margin.py      |  49 +++
 sqlparse/filters/tokens.py            |  60 +++
 sqlparse/formatter.py                 | 106 +++--
 sqlparse/functions.py                 |  44 --
 sqlparse/keywords.py                  | 228 ++++++++++-
 sqlparse/lexer.py                     | 362 ++---------------
 sqlparse/pipeline.py                  |  31 --
 sqlparse/sql.py                       | 537 +++++++++++--------------
 sqlparse/tokens.py                    |  43 +-
 sqlparse/utils.py                     | 183 ++++-----
 tests/conftest.py                     |  49 +++
 tests/files/function_psql4.sql        |  12 +
 tests/files/stream.sql                |   2 +
 tests/test_cli.py                     |  75 ++++
 tests/test_filters.py                 |  78 ----
 tests/test_format.py                  | 646 +++++++++++++++++++++---------
 tests/test_functions.py               | 164 --------
 tests/test_grouping.py                | 609 ++++++++++++++++------------
 tests/test_parse.py                   | 456 +++++++++++++--------
 tests/test_pipeline.py                |  70 ----
 tests/test_regressions.py             | 424 +++++++++++---------
 tests/test_split.py                   | 253 ++++++------
 tests/test_tokenize.py                | 345 ++++++++--------
 tests/utils.py                        |  46 ---
 tox.ini                               |  56 ++-
 64 files changed, 4452 insertions(+), 4196 deletions(-)

diff --git a/AUTHORS b/AUTHORS
index 78052ff..b8dd119 100644
--- a/AUTHORS
+++ b/AUTHORS
@@ -3,17 +3,26 @@ python-sqlparse is written and maintained by Andi Albrecht <albrecht.andi at gmail.
 This module contains code (namely the lexer and filter mechanism) from
 the pygments project that was written by Georg Brandl.
 
+This module contains code (Python 2/3 compatibility) from the six
+project: https://bitbucket.org/gutworth/six.
+
 Alphabetical list of contributors:
+* Adam Greenhall <agreenhall at lyft.com>
 * Alexander Beedie <ayembee at gmail.com>
 * Alexey Malyshev <nostrict at gmail.com>
+* Andrew Tipton <andrew.tipton at compareglobalgroup.com>
 * casey <casey at cloudera.com>
+* Cauê Beloni <cbeloni at gmail.com>
 * Cristian Orellana <cristiano at groupon.com>
+* Dag Wieers <dag at wieers.com>
 * Darik Gamble <darik.gamble at gmail.com>
+* Dennis Taylor <dennis.taylor at clio.com>
 * Florian Bauer <florian.bauer at zmdi.com>
 * Gavin Wahl <gwahl at fusionbox.com>
 * JacekPliszka <Jacek.Pliszka at gmail.com>
 * Jesús Leganés Combarro "Piranna" <piranna at gmail.com>
 * Kevin Jing Qiu <kevin.jing.qiu at gmail.com>
+* koljonen <koljonen at outlook.com>
 * Michael Schuller <chick at mschuller.net>
 * Mike Amy <cocoade at googlemail.com>
 * mulos <daniel.strackbein at gmail.com>
@@ -23,9 +32,14 @@ Alphabetical list of contributors:
 * Robert Nix <com.github at rnix.org>
 * Rocky Meza <rmeza at fusionbox.com>
 * Ryan Wooden <rygwdn at gmail.com>
+* saaj <id at saaj.me>
+* Shen Longxing <shenlongxing2012 at gmail.com>
+* Sjoerd Job Postmus
 * spigwitmer <itgpmc at gmail.com>
+* Tenghuan <tenghuanhe at gmail.com>
 * Tim Graham <timograham at gmail.com>
 * Victor Hahn <info at victor-hahn.de>
+* Victor Uriarte <vmuriart at gmail.com>
 * vthriller <farreva232 at yandex.ru>
 * wayne.wuw <wayne.wuw at alibaba-inc.com>
 * Yago Riveiro <yago.riveiro at gmail.com>
diff --git a/CHANGELOG b/CHANGELOG
new file mode 100644
index 0000000..88e3a8b
--- /dev/null
+++ b/CHANGELOG
@@ -0,0 +1,420 @@
+Release 0.2.2 (Oct 22, 2016)
+----------------------------
+
+Enhancements
+
+* Add comma_first option: When splitting list "comma first" notation
+  is used (issue141).
+
+Bug Fixes
+
+* Fix parsing of incomplete AS (issue284, by vmuriart).
+* Fix parsing of Oracle names containing dollars (issue291).
+* Fix parsing of UNION ALL (issue294).
+* Fix grouping of identifiers containing typecasts (issue297).
+* Add Changelog to sdist again (issue302).
+
+Internal Changes
+
+* `is_whitespace` and `is_group` changed into properties
+
+
+Release 0.2.1 (Aug 13, 2016)
+---------------------------
+
+Notable Changes
+
+* PostgreSQL: Function bodys are parsed as literal string. Previously
+  sqlparse assumed that all function bodys are parsable psql
+  strings (see issue277).
+
+Bug Fixes
+
+* Fix a regression to parse streams again (issue273, reported and
+  test case by gmccreight).
+* Improve Python 2/3 compatibility when using parsestream (isseu190,
+  by phdru).
+* Improve splitting of PostgreSQL functions (issue277).
+
+
+Release 0.2.0 (Jul 20, 2016)
+----------------------------
+
+IMPORTANT: The supported Python versions have changed with this release.
+sqlparse 0.2.x supports Python 2.7 and Python >= 3.3.
+
+Thanks to the many contributors for writing bug reports and working
+on pull requests who made this version possible!
+
+Internal Changes
+
+* sqlparse.SQLParseError was removed from top-level module and moved to
+  sqlparse.exceptions.
+* sqlparse.sql.Token.to_unicode was removed.
+* The signature of a filter's process method has changed from
+  process(stack, stream) -> to process(stream). Stack was never used at
+  all.
+* Lots of code cleanups and modernization (thanks esp. to vmuriart!).
+* Improved grouping performance. (sjoerdjob)
+
+Enhancements
+
+* Support WHILE loops (issue215, by shenlongxing).
+* Better support for CTEs (issue217, by Andrew Tipton).
+* Recognize USING as a keyword more consistently (issue236, by koljonen).
+* Improve alignment of columns (issue207, issue235, by vmuriat).
+* Add wrap_after option for better alignment when formatting
+  lists (issue248, by Dennis Taylor).
+* Add reindent-aligned option for alternate formatting (Adam Greenhall)
+* Improved grouping of operations (issue211, by vmuriat).
+
+Bug Fixes
+
+* Leading whitespaces are now removed when format() is called with
+  strip_whitespace=True (issue213, by shenlongxing).
+* Fix typo in keywords list (issue229, by cbeloni).
+* Fix parsing of functions in comparisons (issue230, by saaj).
+* Fix grouping of identifiers (issue233).
+* Fix parsing of CREATE TABLE statements (issue242, by Tenghuan).
+* Minor bug fixes (issue101).
+* Improve formatting of CASE WHEN constructs (issue164, by vmuriat).
+
+
+Release 0.1.19 (Mar 07, 2016)
+-----------------------------
+
+Bug Fixes
+
+* Fix IndexError when statement contains WITH clauses (issue205).
+
+
+Release 0.1.18 (Oct 25, 2015)
+-----------------------------
+
+Bug Fixes
+
+* Remove universal wheel support, added in 0.1.17 by mistake.
+
+
+Release 0.1.17 (Oct 24, 2015)
+-----------------------------
+
+Enhancements
+
+* Speed up parsing of large SQL statements (pull request: issue201, fixes the
+  following issues: issue199, issue135, issue62, issue41, by Ryan Wooden).
+
+Bug Fixes
+
+* Fix another splitter bug regarding DECLARE (issue194).
+
+Misc
+
+* Packages on PyPI are signed from now on.
+
+
+Release 0.1.16 (Jul 26, 2015)
+-----------------------------
+
+Bug Fixes
+
+* Fix a regression in get_alias() introduced in 0.1.15 (issue185).
+* Fix a bug in the splitter regarding DECLARE (issue193).
+* sqlformat command line tool doesn't duplicat newlines anymore (issue191).
+* Don't mix up MySQL comments starting with hash and MSSQL
+  temp tables (issue192).
+* Statement.get_type() now ignores comments at the beginning of
+  a statement (issue186).
+
+
+Release 0.1.15 (Apr 15, 2015)
+-----------------------------
+
+Bug Fixes
+
+* Fix a regression for identifiers with square bracktes
+  notation (issue153, by darikg).
+* Add missing SQL types (issue154, issue155, issue156, by jukebox).
+* Fix parsing of multi-line comments (issue172, by JacekPliszka).
+* Fix parsing of escaped backslashes (issue174, by caseyching).
+* Fix parsing of identifiers starting with underscore (issue175).
+* Fix misinterpretation of IN keyword (issue183).
+
+Enhancements
+
+* Improve formatting of HAVING statements.
+* Improve parsing of inline comments (issue163).
+* Group comments to parent object (issue128, issue160).
+* Add double precision builtin (issue169, by darikg).
+* Add support for square bracket array indexing (issue170, issue176,
+  issue177 by darikg).
+* Improve grouping of aliased elements (issue167, by darikg).
+* Support comments starting with '#' character (issue178).
+
+
+Release 0.1.14 (Nov 30, 2014)
+-----------------------------
+
+Bug Fixes
+
+* Floats in UPDATE statements are now handled correctly (issue145).
+* Properly handle string literals in comparisons (issue148, change proposed
+  by aadis).
+* Fix indentation when using tabs (issue146).
+
+Enhancements
+
+* Improved formatting in list when newlines precede commas (issue140).
+
+
+Release 0.1.13 (Oct 09, 2014)
+-----------------------------
+
+Bug Fixes
+
+* Fix a regression in handling of NULL keywords introduced in 0.1.12.
+
+
+Release 0.1.12 (Sep 20, 2014)
+-----------------------------
+
+Bug Fixes
+
+* Fix handling of NULL keywords in aliased identifiers.
+* Fix SerializerUnicode to split unquoted newlines (issue131, by Michael Schuller).
+* Fix handling of modulo operators without spaces (by gavinwahl).
+
+Enhancements
+
+* Improve parsing of identifier lists containing placeholders.
+* Speed up query parsing of unquoted lines (by Michael Schuller).
+
+
+Release 0.1.11 (Feb 07, 2014)
+-----------------------------
+
+Bug Fixes
+
+* Fix incorrect parsing of string literals containing line breaks (issue118).
+* Fix typo in keywords, add MERGE, COLLECT keywords (issue122/124,
+  by Cristian Orellana).
+* Improve parsing of string literals in columns.
+* Fix parsing and formatting of statements containing EXCEPT keyword.
+* Fix Function.get_parameters() (issue126/127, by spigwitmer).
+
+Enhancements
+
+* Classify DML keywords (issue116, by Victor Hahn).
+* Add missing FOREACH keyword.
+* Grouping of BEGIN/END blocks.
+
+Other
+
+* Python 2.5 isn't automatically tested anymore, neither Travis nor Tox
+  still support it out of the box.
+
+
+Release 0.1.10 (Nov 02, 2013)
+-----------------------------
+
+Bug Fixes
+
+* Removed buffered reading again, it obviously causes wrong parsing in some rare
+  cases (issue114).
+* Fix regression in setup.py introduced 10 months ago (issue115).
+
+Enhancements
+
+* Improved support for JOINs, by Alexander Beedie.
+
+
+Release 0.1.9 (Sep 28, 2013)
+----------------------------
+
+Bug Fixes
+
+* Fix an regression introduced in 0.1.5 where sqlparse didn't properly
+  distinguished between single and double quoted strings when tagging
+  identifier (issue111).
+
+Enhancements
+
+* New option to truncate long string literals when formatting.
+* Scientific numbers are pares correctly (issue107).
+* Support for arithmetic expressions (issue109, issue106; by prudhvi).
+
+
+Release 0.1.8 (Jun 29, 2013)
+----------------------------
+
+Bug Fixes
+
+* Whitespaces within certain keywords are now allowed (issue97, patch proposed
+  by xcombelle).
+
+Enhancements
+
+* Improve parsing of assignments in UPDATE statements (issue90).
+* Add STRAIGHT_JOIN statement (by Yago Riveiro).
+* Function.get_parameters() now returns the parameter if only one parameter is
+  given (issue94, by wayne.wuw).
+* sqlparse.split() now removes leading and trailing whitespaces from splitted
+  statements.
+* Add USE as keyword token (by mulos).
+* Improve parsing of PEP249-style placeholders (issue103).
+
+
+Release 0.1.7 (Apr 06, 2013)
+----------------------------
+
+Bug Fixes
+
+* Fix Python 3 compatibility of sqlformat script (by Piet Delport).
+* Fix parsing of SQL statements that contain binary data (by Alexey
+  Malyshev).
+* Fix a bug where keywords were identified as aliased identifiers in
+  invalid SQL statements.
+* Fix parsing of identifier lists where identifiers are keywords too
+  (issue10).
+
+Enhancements
+
+* Top-level API functions now accept encoding keyword to parse
+  statements in certain encodings more reliable (issue20).
+* Improve parsing speed when SQL contains CLOBs or BLOBs (issue86).
+* Improve formatting of ORDER BY clauses (issue89).
+* Formatter now tries to detect runaway indentations caused by
+  parsing errors or invalid SQL statements. When re-indenting such
+  statements the formatter flips back to column 0 before going crazy.
+
+Other
+
+* Documentation updates.
+
+
+Release 0.1.6 (Jan 01, 2013)
+----------------------------
+
+sqlparse is now compatible with Python 3 without any patches. The
+Python 3 version is generated during install by 2to3. You'll need
+distribute to install sqlparse for Python 3.
+
+Bug Fixes
+
+* Fix parsing error with dollar-quoted procedure bodies (issue83).
+
+Other
+
+* Documentation updates.
+* Test suite now uses tox and py.test.
+* py3k fixes (by vthriller).
+* py3k fixes in setup.py (by Florian Bauer).
+* setup.py now requires distribute (by Florian Bauer).
+
+
+Release 0.1.5 (Nov 13, 2012)
+----------------------------
+
+Bug Fixes
+
+* Improve handling of quoted identifiers (issue78).
+* Improve grouping and formatting of identifiers with operators (issue53).
+* Improve grouping and formatting of concatenated strings (issue53).
+* Improve handling of varchar() (by Mike Amy).
+* Clean up handling of various SQL elements.
+* Switch to py.test and clean up tests.
+* Several minor fixes.
+
+Other
+
+* Deprecate sqlparse.SQLParseError. Please use
+  sqlparse.exceptions.SQLParseError instead.
+* Add caching to speed up processing.
+* Add experimental filters for token processing.
+* Add sqlformat.parsestream (by quest).
+
+
+Release 0.1.4 (Apr 20, 2012)
+----------------------------
+
+Bug Fixes
+
+* Avoid "stair case" effects when identifiers, functions,
+  placeholders or keywords are mixed in identifier lists (issue45,
+  issue49, issue52) and when asterisks are used as operators
+  (issue58).
+* Make keyword detection more restrict (issue47).
+* Improve handling of CASE statements (issue46).
+* Fix statement splitting when parsing recursive statements (issue57,
+  thanks to piranna).
+* Fix for negative numbers (issue56, thanks to kevinjqiu).
+* Pretty format comments in identifier lists (issue59).
+* Several minor bug fixes and improvements.
+
+
+Release 0.1.3 (Jul 29, 2011)
+----------------------------
+
+Bug Fixes
+
+* Improve parsing of floats (thanks to Kris).
+* When formatting a statement a space before LIMIT was removed (issue35).
+* Fix strip_comments flag (issue38, reported by ooberm... at gmail.com).
+* Avoid parsing names as keywords (issue39, reported by djo... at taket.org).
+* Make sure identifier lists in subselects are grouped (issue40,
+  reported by djo... at taket.org).
+* Split statements with IF as functions correctly (issue33 and
+  issue29, reported by charles.... at unige.ch).
+* Relax detection of keywords, esp. when used as function names
+  (issue36, nyuhu... at gmail.com).
+* Don't treat single characters as keywords (issue32).
+* Improve parsing of stand-alone comments (issue26).
+* Detection of placeholders in paramterized queries (issue22,
+  reported by Glyph Lefkowitz).
+* Add parsing of MS Access column names with braces (issue27,
+  reported by frankz... at gmail.com).
+
+Other
+
+* Replace Django by Flask in App Engine frontend (issue11).
+
+
+Release 0.1.2 (Nov 23, 2010)
+----------------------------
+
+Bug Fixes
+
+* Fixed incorrect detection of keyword fragments embed in names (issue7,
+  reported and initial patch by andyboyko).
+* Stricter detection of identfier aliases (issue8, reported by estama).
+* WHERE grouping consumed closing parenthesis (issue9, reported by estama).
+* Fixed an issue with trailing whitespaces (reported by Kris).
+* Better detection of escaped single quotes (issue13, reported by
+  Martin Brochhaus, patch by bluemaro with test case by Dan Carley).
+* Ignore identifier in double-quotes when changing cases (issue 21).
+* Lots of minor fixes targeting encoding, indentation, statement
+  parsing and more (issues 12, 14, 15, 16, 18, 19).
+* Code cleanup with a pinch of refactoring.
+
+
+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 (Apr 8, 2009)
+---------------------------
+
+Initial release.
diff --git a/CHANGES b/CHANGES
deleted file mode 100644
index 4603041..0000000
--- a/CHANGES
+++ /dev/null
@@ -1,295 +0,0 @@
-Release 0.1.18 (Oct 25, 2015)
------------------------------
-
-Bug Fixes
-* Remove universal wheel support, added in 0.1.17 by mistake.
-
-
-Release 0.1.17 (Oct 24, 2015)
------------------------------
-
-Enhancements
-* Speed up parsing of large SQL statements (pull request: issue201, fixes the
-  following issues: issue199, issue135, issue62, issue41, by Ryan Wooden).
-
-Bug Fixes
-* Fix another splitter bug regarding DECLARE (issue194).
-
-Misc
-* Packages on PyPI are signed from now on.
-
-
-Release 0.1.16 (Jul 26, 2015)
------------------------------
-
-Bug Fixes
-* Fix a regression in get_alias() introduced in 0.1.15 (issue185).
-* Fix a bug in the splitter regarding DECLARE (issue193).
-* sqlformat command line tool doesn't duplicat newlines anymore (issue191).
-* Don't mix up MySQL comments starting with hash and MSSQL
-  temp tables (issue192).
-* Statement.get_type() now ignores comments at the beginning of
-  a statement (issue186).
-
-
-Release 0.1.15 (Apr 15, 2015)
------------------------------
-
-Bug Fixes
-* Fix a regression for identifiers with square bracktes
-  notation (issue153, by darikg).
-* Add missing SQL types (issue154, issue155, issue156, by jukebox).
-* Fix parsing of multi-line comments (issue172, by JacekPliszka).
-* Fix parsing of escaped backslashes (issue174, by caseyching).
-* Fix parsing of identifiers starting with underscore (issue175).
-* Fix misinterpretation of IN keyword (issue183).
-
-Enhancements
-* Improve formatting of HAVING statements.
-* Improve parsing of inline comments (issue163).
-* Group comments to parent object (issue128, issue160).
-* Add double precision builtin (issue169, by darikg).
-* Add support for square bracket array indexing (issue170, issue176,
-  issue177 by darikg).
-* Improve grouping of aliased elements (issue167, by darikg).
-* Support comments starting with '#' character (issue178).
-
-
-Release 0.1.14 (Nov 30, 2014)
------------------------------
-
-Bug Fixes
-* Floats in UPDATE statements are now handled correctly (issue145).
-* Properly handle string literals in comparisons (issue148, change proposed
-  by aadis).
-* Fix indentation when using tabs (issue146).
-
-Enhancements
-* Improved formatting in list when newlines precede commas (issue140).
-
-
-Release 0.1.13 (Oct 09, 2014)
------------------------------
-
-Bug Fixes
-* Fix a regression in handling of NULL keywords introduced in 0.1.12.
-
-
-Release 0.1.12 (Sep 20, 2014)
------------------------------
-
-Bug Fixes
-* Fix handling of NULL keywords in aliased identifiers.
-* Fix SerializerUnicode to split unquoted newlines (issue131, by Michael Schuller).
-* Fix handling of modulo operators without spaces (by gavinwahl).
-
-Enhancements
-* Improve parsing of identifier lists containing placeholders.
-* Speed up query parsing of unquoted lines (by Michael Schuller).
-
-
-Release 0.1.11 (Feb 07, 2014)
------------------------------
-
-Bug Fixes
-* Fix incorrect parsing of string literals containing line breaks (issue118).
-* Fix typo in keywords, add MERGE, COLLECT keywords (issue122/124,
-  by Cristian Orellana).
-* Improve parsing of string literals in columns.
-* Fix parsing and formatting of statements containing EXCEPT keyword.
-* Fix Function.get_parameters() (issue126/127, by spigwitmer).
-
-Enhancements
-* Classify DML keywords (issue116, by Victor Hahn).
-* Add missing FOREACH keyword.
-* Grouping of BEGIN/END blocks.
-
-Other
-* Python 2.5 isn't automatically tested anymore, neither Travis nor Tox
-  still support it out of the box.
-
-
-Release 0.1.10 (Nov 02, 2013)
------------------------------
-
-Bug Fixes
-* Removed buffered reading again, it obviously causes wrong parsing in some rare
-  cases (issue114).
-* Fix regression in setup.py introduced 10 months ago (issue115).
-
-Enhancements
-* Improved support for JOINs, by Alexander Beedie.
-
-
-Release 0.1.9 (Sep 28, 2013)
-----------------------------
-
-Bug Fixes
-* Fix an regression introduced in 0.1.5 where sqlparse didn't properly
-  distinguished between single and double quoted strings when tagging
-  identifier (issue111).
-
-Enhancements
-* New option to truncate long string literals when formatting.
-* Scientific numbers are pares correctly (issue107).
-* Support for arithmetic expressions (issue109, issue106; by prudhvi).
-
-
-Release 0.1.8 (Jun 29, 2013)
-----------------------------
-
-Bug Fixes
-* Whitespaces within certain keywords are now allowed (issue97, patch proposed
-  by xcombelle).
-
-Enhancements
-* Improve parsing of assignments in UPDATE statements (issue90).
-* Add STRAIGHT_JOIN statement (by Yago Riveiro).
-* Function.get_parameters() now returns the parameter if only one parameter is
-  given (issue94, by wayne.wuw).
-* sqlparse.split() now removes leading and trailing whitespaces from splitted
-  statements.
-* Add USE as keyword token (by mulos).
-* Improve parsing of PEP249-style placeholders (issue103).
-
-
-Release 0.1.7 (Apr 06, 2013)
-----------------------------
-
-Bug Fixes
- * Fix Python 3 compatibility of sqlformat script (by Piet Delport).
- * Fix parsing of SQL statements that contain binary data (by Alexey
-   Malyshev).
- * Fix a bug where keywords were identified as aliased identifiers in
-   invalid SQL statements.
- * Fix parsing of identifier lists where identifiers are keywords too
-   (issue10).
-
-Enhancements
- * Top-level API functions now accept encoding keyword to parse
-   statements in certain encodings more reliable (issue20).
- * Improve parsing speed when SQL contains CLOBs or BLOBs (issue86).
- * Improve formatting of ORDER BY clauses (issue89).
- * Formatter now tries to detect runaway indentations caused by
-   parsing errors or invalid SQL statements. When re-indenting such
-   statements the formatter flips back to column 0 before going crazy.
-
-Other
- * Documentation updates.
-
-
-Release 0.1.6 (Jan 01, 2013)
-----------------------------
-
-sqlparse is now compatible with Python 3 without any patches. The
-Python 3 version is generated during install by 2to3. You'll need
-distribute to install sqlparse for Python 3.
-
-Bug Fixes
- * Fix parsing error with dollar-quoted procedure bodies (issue83).
-
-Other
- * Documentation updates.
- * Test suite now uses tox and py.test.
- * py3k fixes (by vthriller).
- * py3k fixes in setup.py (by Florian Bauer).
- * setup.py now requires distribute (by Florian Bauer).
-
-
-Release 0.1.5 (Nov 13, 2012)
-----------------------------
-
-Bug Fixes
- * Improve handling of quoted identifiers (issue78).
- * Improve grouping and formatting of identifiers with operators (issue53).
- * Improve grouping and formatting of concatenated strings (issue53).
- * Improve handling of varchar() (by Mike Amy).
- * Clean up handling of various SQL elements.
- * Switch to py.test and clean up tests.
- * Several minor fixes.
-
-Other
- * Deprecate sqlparse.SQLParseError. Please use
-   sqlparse.exceptions.SQLParseError instead.
- * Add caching to speed up processing.
- * Add experimental filters for token processing.
- * Add sqlformat.parsestream (by quest).
-
-
-Release 0.1.4 (Apr 20, 2012)
-----------------------------
-
-Bug Fixes
- * Avoid "stair case" effects when identifiers, functions,
-   placeholders or keywords are mixed in identifier lists (issue45,
-   issue49, issue52) and when asterisks are used as operators
-   (issue58).
- * Make keyword detection more restrict (issue47).
- * Improve handling of CASE statements (issue46).
- * Fix statement splitting when parsing recursive statements (issue57,
-   thanks to piranna).
- * Fix for negative numbers (issue56, thanks to kevinjqiu).
- * Pretty format comments in identifier lists (issue59).
- * Several minor bug fixes and improvements.
-
-
-Release 0.1.3 (Jul 29, 2011)
-----------------------------
-
-Bug Fixes
- * Improve parsing of floats (thanks to Kris).
- * When formatting a statement a space before LIMIT was removed (issue35).
- * Fix strip_comments flag (issue38, reported by ooberm... at gmail.com).
- * Avoid parsing names as keywords (issue39, reported by djo... at taket.org).
- * Make sure identifier lists in subselects are grouped (issue40,
-   reported by djo... at taket.org).
- * Split statements with IF as functions correctly (issue33 and
-   issue29, reported by charles.... at unige.ch).
- * Relax detection of keywords, esp. when used as function names
-   (issue36, nyuhu... at gmail.com).
- * Don't treat single characters as keywords (issue32).
- * Improve parsing of stand-alone comments (issue26).
- * Detection of placeholders in paramterized queries (issue22,
-   reported by Glyph Lefkowitz).
- * Add parsing of MS Access column names with braces (issue27,
-   reported by frankz... at gmail.com).
-
-Other
- * Replace Django by Flask in App Engine frontend (issue11).
-
-
-Release 0.1.2 (Nov 23, 2010)
-----------------------------
-
-Bug Fixes
- * Fixed incorrect detection of keyword fragments embed in names (issue7,
-   reported and initial patch by andyboyko).
- * Stricter detection of identfier aliases (issue8, reported by estama).
- * WHERE grouping consumed closing parenthesis (issue9, reported by estama).
- * Fixed an issue with trailing whitespaces (reported by Kris).
- * Better detection of escaped single quotes (issue13, reported by
-   Martin Brochhaus, patch by bluemaro with test case by Dan Carley).
- * Ignore identifier in double-quotes when changing cases (issue 21).
- * Lots of minor fixes targeting encoding, indentation, statement
-   parsing and more (issues 12, 14, 15, 16, 18, 19).
- * Code cleanup with a pinch of refactoring.
-
-
-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 (Apr 8, 2009)
----------------------------
- * Initial release.
diff --git a/COPYING b/COPYING
deleted file mode 100644
index 7b158da..0000000
--- a/COPYING
+++ /dev/null
@@ -1,25 +0,0 @@
-Copyright (c) 2009, Andi Albrecht <albrecht.andi at gmail.com>
-All rights reserved.
-
-Redistribution and use in source and binary forms, with or without modification,
-are permitted provided that the following conditions are met:
-
-    * Redistributions of source code must retain the above copyright notice,
-      this list of conditions and the following disclaimer.
-    * Redistributions in binary form must reproduce the above copyright notice,
-      this list of conditions and the following disclaimer in the documentation
-      and/or other materials provided with the distribution.
-    * Neither the name of the authors nor the names of its contributors may be
-      used to endorse or promote products derived from this software without
-      specific prior written permission.
-
-THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
-ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
-WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
-DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
-ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
-DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
-SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
-CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
-OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
\ No newline at end of file
diff --git a/MANIFEST.in b/MANIFEST.in
index e546b1e..585ab3b 100644
--- a/MANIFEST.in
+++ b/MANIFEST.in
@@ -5,7 +5,7 @@ recursive-include tests *.py *.sql
 include COPYING
 include TODO
 include AUTHORS
-include CHANGES
+include CHANGELOG
 include Makefile
 include pytest.ini
-include tox.ini
\ No newline at end of file
+include tox.ini
diff --git a/Makefile b/Makefile
index cb3fbf5..b45ac10 100644
--- a/Makefile
+++ b/Makefile
@@ -23,3 +23,4 @@ clean:
 release:
 	@rm -rf dist/
 	python setup.py sdist upload --sign --identity E0B84F81
+	python setup.py bdist_wheel upload --sign --identity E0B84F81
diff --git a/PKG-INFO b/PKG-INFO
index ff6bee0..79637ee 100644
--- a/PKG-INFO
+++ b/PKG-INFO
@@ -1,6 +1,6 @@
 Metadata-Version: 1.1
 Name: sqlparse
-Version: 0.1.18
+Version: 0.2.2
 Summary: Non-validating SQL parser
 Home-page: https://github.com/andialbrecht/sqlparse
 Author: Andi Albrecht
@@ -41,8 +41,8 @@ Description:
            >>> res
            (<Statement 'select...' at 0x9ad08ec>,)
            >>> stmt = res[0]
-           >>> unicode(stmt)  # converting it back to unicode
-           u'select * from someschema.mytable where id = 1'
+           >>> str(stmt)  # converting it back to unicode
+           'select * from someschema.mytable where id = 1'
            >>> # This is how the internal representation looks like:
            >>> stmt.tokens
            (<DML 'select' at 0x9b63c34>,
@@ -63,12 +63,10 @@ Classifier: License :: OSI Approved :: BSD License
 Classifier: Operating System :: OS Independent
 Classifier: Programming Language :: Python
 Classifier: Programming Language :: Python :: 2
-Classifier: Programming Language :: Python :: 2.4
-Classifier: Programming Language :: Python :: 2.5
-Classifier: Programming Language :: Python :: 2.6
 Classifier: Programming Language :: Python :: 2.7
 Classifier: Programming Language :: Python :: 3
-Classifier: Programming Language :: Python :: 3.2
 Classifier: Programming Language :: Python :: 3.3
+Classifier: Programming Language :: Python :: 3.4
+Classifier: Programming Language :: Python :: 3.5
 Classifier: Topic :: Database
 Classifier: Topic :: Software Development
diff --git a/README.rst b/README.rst
index dbe2fe4..f397c01 100644
--- a/README.rst
+++ b/README.rst
@@ -4,6 +4,7 @@ python-sqlparse - Parse SQL statements
 sqlparse is a non-validating SQL parser module for Python.
 
 |buildstatus|_
+|coverage|_
 
 
 Install
@@ -15,7 +16,7 @@ Run::
 
 to install python-sqlparse on your system.
 
-python-sqlparse is compatible with Python 2 (>= 2.5) and Python 3 (>= 3.2).
+python-sqlparse is compatible with Python 2.7 and Python 3 (>= 3.3).
 
 
 Run Tests
@@ -35,7 +36,7 @@ Project Page
   https://github.com/andialbrecht/sqlparse
 
 Documentation
-  http://readthedocs.org/docs/sqlparse/en/latest/
+  https://sqlparse.readthedocs.io/en/latest/
 
 Discussions
   http://groups.google.com/group/sqlparse
@@ -54,3 +55,5 @@ pygments-Homepage: http://pygments.org/
 
 .. |buildstatus| image:: https://secure.travis-ci.org/andialbrecht/sqlparse.png?branch=master
 .. _buildstatus: http://travis-ci.org/#!/andialbrecht/sqlparse
+.. |coverage| image:: https://coveralls.io/repos/andialbrecht/sqlparse/badge.svg?branch=master&service=github
+.. _coverage: https://coveralls.io/github/andialbrecht/sqlparse?branch=master
diff --git a/TODO b/TODO
index 166df20..cbbe7ff 100644
--- a/TODO
+++ b/TODO
@@ -2,6 +2,4 @@
   https://groups.google.com/d/msg/sqlparse/huz9lKXt0Lc/11ybIKPJWbUJ
   for some interesting hints and suggestions.
 * Provide a function to replace tokens. See this thread: https://groups.google.com/d/msg/sqlparse/5xmBL2UKqX4/ZX9z_peve-AJ
-* Fix bugs on issue tracker.
 * Document filter stack and processing phases.
-* See KnownIssues http://code.google.com/p/python-sqlparse/wiki/KnownIssues
diff --git a/bin/sqlformat b/bin/sqlformat
deleted file mode 100755
index cecbed9..0000000
--- a/bin/sqlformat
+++ /dev/null
@@ -1,109 +0,0 @@
-#!/usr/bin/env python
-
-# Copyright (C) 2008 Andi Albrecht, albrecht.andi at gmail.com
-#
-# This module is part of python-sqlparse and is released under
-# the BSD License: http://www.opensource.org/licenses/bsd-license.php.
-
-import optparse
... 9527 lines suppressed ...

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/sqlparse.git



More information about the Python-modules-commits mailing list