summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Update changelog.0.4.2Andi Albrecht2021-09-101-1/+1
|
* Update Changelog and bump version.Andi Albrecht2021-09-102-3/+12
|
* Optimize regular expression for identifying line breaks in comments.Andi Albrecht2021-09-102-1/+21
|
* Fix parsing of scientific numbers (fixes #399).Andi Albrecht2021-07-143-5/+12
|
* Update authors and changelog.Andi Albrecht2020-12-122-0/+2
|
* keyword, add ON_ERROR_STOPJean-Martin Archer2020-12-121-0/+1
|
* keyword, add CONFLICT to postgres keywordsJean-Martin Archer2020-12-121-0/+1
| | | | As in ON CONFLICT
* Add ELSIF as keyword (fixes #584).Andi Albrecht2020-10-192-0/+5
|
* Fix parsing of backticks (fixes #588).Andi Albrecht2020-10-193-2/+11
| | | | | The backticks in this operator regex was introduced in c794c97531c09e66b6a7ffac76626a727ad02f5e. Pretty sure it was by mistake.
* Switch back to development mode.Andi Albrecht2020-10-082-1/+7
|
* Clean up changelog.Andi Albrecht2020-10-081-0/+1
|
* Bump version.0.4.1Andi Albrecht2020-10-082-3/+3
|
* Remove debug print statement (fixes #586).Andi Albrecht2020-10-082-3/+2
|
* Switch back to development mode.Andi Albrecht2020-10-072-1/+7
|
* Bump version to 0.4.0.0.4.0Andi Albrecht2020-10-072-3/+3
|
* Update copyright notice.Andi Albrecht2020-10-0724-24/+24
|
* Add Python 3.9-dev to Travis configuration.Andi Albrecht2020-10-071-1/+1
| | | | Python 3.9 hasn't landed yet on Travis, but nightly is already 3.10.
* Move setup data to setup.cfg.Andi Albrecht2020-10-072-101/+45
|
* Add Python 3.9 classifier.Andi Albrecht2020-10-061-0/+1
|
* Too early, no Python 3.9 on Travis yet.Andi Albrecht2020-10-061-1/+1
|
* Add Python 3.9 to test configuration.Andi Albrecht2020-10-061-1/+2
|
* Stabilize formatting of invalid WHERE clauses.Andi Albrecht2020-09-303-0/+10
|
* Improve formatting of type casts in parentheses.Andi Albrecht2020-09-303-0/+9
|
* Fix an issue with negative indexes causing IndexError in some cases.Andi Albrecht2020-09-301-0/+2
|
* Fix splitting of statements using CASE ... WHEN (fixes #580).Andi Albrecht2020-09-304-1/+16
|
* Fix splitting when using DECLARE ... HANDLER (fixes #581).Andi Albrecht2020-09-304-1/+18
|
* Don't make parsing of square bracket identifiers too greedy (fixes #583).Andi Albrecht2020-09-303-1/+8
|
* Update changelog and authors.Andi Albrecht2020-09-302-1/+6
|
* Add RLIKE keywordWill Jones2020-09-301-1/+1
|
* Update changelog and authors.Andi Albrecht2020-09-302-0/+2
|
* Add postgres WINDOW keywordali-tny2020-09-302-0/+7
| | | | | | | | | | | | | | | Postgres allows statements of the form: ```sql SELECT col_1, col_2, SUM(col_3) OVER w FROM x WINDOW w AS (PARTITION BY col_1 ORDER BY col_2) ``` where the window is defined once at the end of the query (see https://www.postgresql.org/docs/9.5/sql-select.html). This change adds WINDOW as a postgres keyword, preventing queries like the above being misparsed, with table name and WINDOW being grouped into an single identifier <Identifier 'x WINDOW'>.
* Preserve line breaks when removing comments (fixes #484).Andi Albrecht2020-09-133-14/+24
|
* Add docs badge.Andi Albrecht2020-09-131-0/+3
|
* Use coverage badge from codecov instead of coveralls.Andi Albrecht2020-09-131-2/+2
|
* Remove changing our stdout encoding.Andi Albrecht2020-09-131-2/+0
|
* Don't flush token streams iff they only contain whitespace tokens (fixes #496).Andi Albrecht2020-09-134-5/+13
|
* Update authors and changelog.Andi Albrecht2020-09-132-0/+5
|
* add regex pattern to identify IN as a Compasion tokenhurcy2020-09-132-2/+12
|
* Merge branch 'jdufresne-w503'Andi Albrecht2020-09-133-5/+3
|\
| * Merge branch 'w503' of https://github.com/jdufresne/sqlparse into jdufresne-w503Andi Albrecht2020-09-133-5/+3
| |\ |/ /
| * Merge branch 'master' into w503Andi Albrecht2020-09-1341-308/+160
| |\
| | * Remove unused pytest-travis-fold test dependencyJon Dufresne2020-09-131-3/+0
| | | | | | | | | | | | | | | The Travis configuration does not executed through tox since f2a3a6ea356dc38e79c4a025217ed8a3875cabac.
| | * Document PyPy support with trove classifierJon Dufresne2020-09-131-0/+2
| | |
| * | Simply flake8 configurationJon Dufresne2020-08-311-2/+1
| | | | | | | | | | | | W503 is ignored by default.
* | | Correct capitalization of PyPy.Andi Albrecht2020-09-131-1/+1
| |/ |/| | | | | See also https://github.com/andialbrecht/sqlparse/pull/555
* | Update tests to work with newer pytest version.Andi Albrecht2020-09-131-47/+28
| | | | | | | | Also some unification of the tests.
* | Merge branch 'jdufresne-py2'Andi Albrecht2020-09-1341-256/+131
|\ \
| * \ Merge branch 'master' into py2Andi Albrecht2020-09-131-3/+0
| |\ \ | |/ / |/| |
* | | Remove deprecated license_file from setup.cfgJon Dufresne2020-09-131-3/+0
| |/ |/| | | | | | | | | | | | | | | | | | | | | Starting with wheel 0.32.0 (2018-09-29), the "license_file" option is deprecated. https://wheel.readthedocs.io/en/stable/news.html The wheel will continue to include LICENSE, it is now included automatically: https://wheel.readthedocs.io/en/stable/user_guide.html#including-license-files-in-the-generated-wheel-file
| * Remove support for end-of-life PythonsJon Dufresne2020-08-3141-256/+131
|/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Python 2.7 and 3.4 are end-of-life. They are no longer receiving bug fixes, including for security issues. Python 2.7 went EOL on 2020-01-01 and 3.4 on 2019-03-18. For additional details on support Python versions, see: Supported: https://devguide.python.org/#status-of-python-branches EOL: https://devguide.python.org/devcycle/#end-of-life-branches Removing support for EOL Pythons will reduce testing and maintenance resources while allowing the library to move towards modern Python 3. Using pypinfo, we can show the PyPI download statistics, showing less than 10% of users are using Python 2.7. | python_version | percent | download_count | | -------------- | ------: | -------------: | | 3.7 | 45.36% | 3,056,010 | | 3.6 | 26.46% | 1,782,778 | | 3.8 | 12.22% | 823,213 | | 2.7 | 9.97% | 671,459 | | 3.5 | 5.86% | 394,846 | | 3.4 | 0.10% | 6,700 | | 3.9 | 0.03% | 2,346 | | 2.6 | 0.00% | 57 | | 3.3 | 0.00% | 21 | | 3.10 | 0.00% | 6 | | Total | | 6,737,436 | Library users who continue to use Python 2.7 will still be able to install previous versions of sqlparse. Compatibility shims have been dropped, simplifying the code. Using pyupgrade, the codebase has been updated to take advantage of modern syntax <https://github.com/asottile/pyupgrade>. The wheel is no longer marked as "universal" as it is now Python 3 only.