Commit Graph

40 Commits

Author SHA256 Message Date
Ana Guerrero
00f141a556 Accepting request 1194657 from devel:languages:python
- update to 0.5.1:
  * New "compact" option for formatter. If set, the formatter
    tries to produce a more compact output by avoiding some line
    breaks
  * The strip comments filter was a bit greedy and removed too
    much whitespace (issue772). Note: In some cases you might want
    to add `strip_whitespace=True` where you previously used just
    `strip_comments=True`.  `strip_comments` did some of the
    work that `strip_whitespace` should do.
  * Fix error when splitting statements that contain multiple
    CASE clauses within a BEGIN block (issue784).
  * Fix whitespace removal with nested expressions (issue782).
  * Fix parsing and formatting of ORDER clauses containing NULLS
    FIRST or NULLS LAST (issue532).

OBS-URL: https://build.opensuse.org/request/show/1194657
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-sqlparse?expand=0&rev=19
2024-08-20 14:12:48 +00:00
d650f16849 - update to 0.5.1:
* New "compact" option for formatter. If set, the formatter
    tries to produce a more compact output by avoiding some line
    breaks
  * The strip comments filter was a bit greedy and removed too
    much whitespace (issue772). Note: In some cases you might want
    to add `strip_whitespace=True` where you previously used just
    `strip_comments=True`.  `strip_comments` did some of the
    work that `strip_whitespace` should do.
  * Fix error when splitting statements that contain multiple
    CASE clauses within a BEGIN block (issue784).
  * Fix whitespace removal with nested expressions (issue782).
  * Fix parsing and formatting of ORDER clauses containing NULLS
    FIRST or NULLS LAST (issue532).

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-sqlparse?expand=0&rev=38
2024-08-19 07:44:02 +00:00
Dominique Leuenberger
00f38b252b Accepting request 1172288 from devel:languages:python
- Update to 0.5.0:
  * Notable Changes
    + Drop support for Python 3.5, 3.6, and 3.7.
    + Python 3.12 is now supported.
    + IMPORTANT: Fixes a potential denial of service attack (DOS) due to
      recursion error for deeply nested statements.
      (CVE-2024-2430, bsc#1223603)
  * Enhancements:
    + Splitting statements now allows to remove the semicolon at the end.
      Some database backends love statements without semicolon.
    + Support TypedLiterals in get_parameters.
    + Improve splitting of Transact SQL when using GO keyword.
    + Support for some JSON operators.
    + Improve formatting of statements containing JSON operators.
    + Support for BigQuery and Snowflake keywords.
    + Support parsing of OVER clause.
  * Bug Fixes
    + Ignore dunder attributes when creating Tokens.
    + Allow operators to precede dollar-quoted strings.
    + Fix parsing of nested order clauses.
    + Thread-safe initialization of Lexer class.
    + Classify TRUNCATE as DDL and GRANT/REVOKE as DCL keywords.
    + Fix parsing of PRIMARY KEY.
  * Other
    + Optimize performance of matching function.

OBS-URL: https://build.opensuse.org/request/show/1172288
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-sqlparse?expand=0&rev=18
2024-05-08 09:38:39 +00:00
Steve Kowalik
a070a8f675 - Update to 0.5.0:
* Notable Changes
    + Drop support for Python 3.5, 3.6, and 3.7.
    + Python 3.12 is now supported.
    + IMPORTANT: Fixes a potential denial of service attack (DOS) due to
      recursion error for deeply nested statements.
      (CVE-2024-2430, bsc#1223603)
  * Enhancements:
    + Splitting statements now allows to remove the semicolon at the end.
      Some database backends love statements without semicolon.
    + Support TypedLiterals in get_parameters.
    + Improve splitting of Transact SQL when using GO keyword.
    + Support for some JSON operators.
    + Improve formatting of statements containing JSON operators.
    + Support for BigQuery and Snowflake keywords.
    + Support parsing of OVER clause.
  * Bug Fixes
    + Ignore dunder attributes when creating Tokens.
    + Allow operators to precede dollar-quoted strings.
    + Fix parsing of nested order clauses.
    + Thread-safe initialization of Lexer class.
    + Classify TRUNCATE as DDL and GRANT/REVOKE as DCL keywords.
    + Fix parsing of PRIMARY KEY.
  * Other
    + Optimize performance of matching function.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-sqlparse?expand=0&rev=36
2024-05-07 02:22:41 +00:00
Dominique Leuenberger
bafa6089f8 Accepting request 1154920 from devel:languages:python
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/1154920
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-sqlparse?expand=0&rev=17
2024-03-06 22:03:09 +00:00
3648d29316 - Version update in SLE 15 SP4 and later (jsc#PED-6697)
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-sqlparse?expand=0&rev=34
2024-02-26 20:16:07 +00:00
Dominique Leuenberger
920ce6e229 Accepting request 1092212 from devel:languages:python
- Add %{?sle15_python_module_pythons}

OBS-URL: https://build.opensuse.org/request/show/1092212
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-sqlparse?expand=0&rev=16
2023-06-12 13:24:28 +00:00
7ad880759a OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-sqlparse?expand=0&rev=32 2023-06-11 11:30:31 +00:00
03155dd165 Accepting request 1092153 from home:ecsos:python
- Add %{?sle15_python_module_pythons}

OBS-URL: https://build.opensuse.org/request/show/1092153
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-sqlparse?expand=0&rev=31
2023-06-11 11:30:15 +00:00
Dominique Leuenberger
7bd47ff1c9 Accepting request 1089053 from devel:languages:python
- Update to 0.4.4:
  * IMPORTANT: This release fixes a security vulnerability in
    the parser where a regular expression vulnerable to ReDOS
    (Regular Expression Denial of Service) was used. See the
    security advisory for details (CVE-2023-30608, bsc#1210617,
    https://github.com/andialbrecht/sqlparse/security/advisories/GHSA-rrm6-wvj7-cwh2)
    The vulnerability was discovered by @erik-krogh from GitHub
    Security Lab (GHSL). Thanks for reporting!
  * Revert a change from 0.4.0 that changed IN to be a comparison
    (issue694).  The primary expectation is that IN is treated as
    a keyword and not as a comparison operator. That also follows
    the definition of reserved keywords for the major SQL syntax
    definitions.
  * Fix regular expressions for string parsing.
  * sqlparse now uses pyproject.toml instead of setup.cfg
    (issue685).

OBS-URL: https://build.opensuse.org/request/show/1089053
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-sqlparse?expand=0&rev=15
2023-05-26 18:15:28 +00:00
302070b8d2 - Update to 0.4.4:
* IMPORTANT: This release fixes a security vulnerability in
    the parser where a regular expression vulnerable to ReDOS
    (Regular Expression Denial of Service) was used. See the
    security advisory for details (CVE-2023-30608, bsc#1210617,
    https://github.com/andialbrecht/sqlparse/security/advisories/GHSA-rrm6-wvj7-cwh2)
    The vulnerability was discovered by @erik-krogh from GitHub
    Security Lab (GHSL). Thanks for reporting!
  * Revert a change from 0.4.0 that changed IN to be a comparison
    (issue694).  The primary expectation is that IN is treated as
    a keyword and not as a comparison operator. That also follows
    the definition of reserved keywords for the major SQL syntax
    definitions.
  * Fix regular expressions for string parsing.
  * sqlparse now uses pyproject.toml instead of setup.cfg
    (issue685).

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-sqlparse?expand=0&rev=29
2023-05-25 16:30:01 +00:00
Richard Brown
890239637b Accepting request 1007717 from devel:languages:python
- update to 0.4.3:
  * Add support for DIV operator.
  * Add support for additional SPARK keywords.
  * Avoid tokens copy.
  * Add REGEXP as a comparision.
  * Add DISTINCTROW keyword for MS Access.
  * Improve parsing of CREATE TABLE AS SELECT.
  * Fix spelling of INDICATOR keyword.
  * Fix formatting error in EXTRACT function.
  * Fix bad parsing of create table statements that use lower case.
  * Handle backtick as valid quote char.
  * Allow any unicode character as valid identifier name.

OBS-URL: https://build.opensuse.org/request/show/1007717
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-sqlparse?expand=0&rev=14
2022-10-04 18:37:14 +00:00
2e479a6918 - update to 0.4.3:
* Add support for DIV operator.
  * Add support for additional SPARK keywords.
  * Avoid tokens copy.
  * Add REGEXP as a comparision.
  * Add DISTINCTROW keyword for MS Access.
  * Improve parsing of CREATE TABLE AS SELECT.
  * Fix spelling of INDICATOR keyword.
  * Fix formatting error in EXTRACT function.
  * Fix bad parsing of create table statements that use lower case.
  * Handle backtick as valid quote char.
  * Allow any unicode character as valid identifier name.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-sqlparse?expand=0&rev=27
2022-10-03 16:02:44 +00:00
Dominique Leuenberger
34917340db Accepting request 922565 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/922565
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-sqlparse?expand=0&rev=13
2021-10-20 18:23:12 +00:00
b12de88590 Accepting request 922560 from home:jgrassler:branches:devel:languages:python
- update to 0.4.2 (bsc#1190741, CVE-2021-32839):
  * This release fixes a security vulnerability in the strip
    comments filter.
  * Add ELSIF as keyword (issue584).
  * Add CONFLICT and ON_ERROR_STOP keywords.
  * Fix parsing of backticks (issue588).
  * Fix parsing of scientific number (issue399).

OBS-URL: https://build.opensuse.org/request/show/922560
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-sqlparse?expand=0&rev=26
2021-10-01 13:47:56 +00:00
Dominique Leuenberger
835ed44ca6 Accepting request 867445 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/867445
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-sqlparse?expand=0&rev=12
2021-02-01 12:26:00 +00:00
ee02d1dbe6 Accepting request 867403 from home:alarrosa:branches:devel:languages:python
- Disable building a python2 flavor so we can build the package
  for Leap/SLE.

OBS-URL: https://build.opensuse.org/request/show/867403
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-sqlparse?expand=0&rev=24
2021-01-28 11:25:30 +00:00
Dominique Leuenberger
2274e03d38 Accepting request 850920 from devel:languages:python
- update to 0.4.1:
  * Python 3.9 support
  * Remove support for end-of-life Python 2.7 and 3.4. Python 3.5+ is now
  required.
  * Remaining strings that only consist of whitespaces are not treated as
  statements anymore. Code that ignored the last element from
  sqlparse.split() should be updated accordingly since that function
  now doesn't return an empty string as the last element in some
  cases (issue496).
- remove non-upstream stdout-encoding-set.patch patch

OBS-URL: https://build.opensuse.org/request/show/850920
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-sqlparse?expand=0&rev=11
2020-11-29 11:19:01 +00:00
da538c5371 - update to 0.4.1:
* Python 3.9 support
  * Remove support for end-of-life Python 2.7 and 3.4. Python 3.5+ is now
  required.
  * Remaining strings that only consist of whitespaces are not treated as
  statements anymore. Code that ignored the last element from
  sqlparse.split() should be updated accordingly since that function
  now doesn't return an empty string as the last element in some
  cases (issue496).
- remove non-upstream stdout-encoding-set.patch patch

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-sqlparse?expand=0&rev=22
2020-11-26 08:44:08 +00:00
Dominique Leuenberger
010d0ce5be Accepting request 787620 from devel:languages:python
- Add stdout-encoding-set.patch to use sys.stdout.reconfigure() if
  the stream is an instance of TextIOWrapper to support a pytest change.

OBS-URL: https://build.opensuse.org/request/show/787620
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-sqlparse?expand=0&rev=10
2020-03-26 23:28:45 +00:00
Steve Kowalik
7b6436d15d - Add stdout-encoding-set.patch to use sys.stdout.reconfigure() if
the stream is an instance of TextIOWrapper to support a pytest change.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-sqlparse?expand=0&rev=20
2020-03-24 02:46:35 +00:00
Steve Kowalik
85757991a1 - Add stdout-encoding-set.patch to use sys.stdout.reconfigure() for Python 3.
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-sqlparse?expand=0&rev=19
2020-03-23 06:36:48 +00:00
Dominique Leuenberger
8a766c097d Accepting request 783018 from devel:languages:python
- update to v0.3.1:
  * Add HQL keywords (pr475, by matwalk).
  * Add support for time zone casts (issue489).
  * Enhance formatting of AS keyword (issue507, by john-bodley).
  * Stabilize grouping engine when parsing invalid SQL statements.
  * Fix splitting of SQL with multiple statements inside
    parentheses (issue485, pr486 by win39).
  * Correctly identify NULLS FIRST / NULLS LAST as keywords (issue487).
  * Fix splitting of SQL statements that contain dollar signs in
    identifiers (issue491).
  * Remove support for parsing double slash comments introduced in
    0.3.0 (issue456) as it had some side-effects with other dialects and
    doesn't seem to be widely used (issue476).
  * Restrict detection of alias names to objects that acutally could
    have an alias (issue455, adopted some parts of pr509 by john-bodley).
  * Fix parsing of date/time literals (issue438, by vashek).
  * Fix initialization of TokenList (issue499, pr505 by john-bodley).
  * Fix parsing of LIKE (issue493, pr525 by dbczumar).
  * Improve parsing of identifiers (pr527 by liulk).

OBS-URL: https://build.opensuse.org/request/show/783018
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-sqlparse?expand=0&rev=9
2020-03-11 17:45:27 +00:00
46ded828ef - update to v0.3.1:
* Add HQL keywords (pr475, by matwalk).
  * Add support for time zone casts (issue489).
  * Enhance formatting of AS keyword (issue507, by john-bodley).
  * Stabilize grouping engine when parsing invalid SQL statements.
  * Fix splitting of SQL with multiple statements inside
    parentheses (issue485, pr486 by win39).
  * Correctly identify NULLS FIRST / NULLS LAST as keywords (issue487).
  * Fix splitting of SQL statements that contain dollar signs in
    identifiers (issue491).
  * Remove support for parsing double slash comments introduced in
    0.3.0 (issue456) as it had some side-effects with other dialects and
    doesn't seem to be widely used (issue476).
  * Restrict detection of alias names to objects that acutally could
    have an alias (issue455, adopted some parts of pr509 by john-bodley).
  * Fix parsing of date/time literals (issue438, by vashek).
  * Fix initialization of TokenList (issue499, pr505 by john-bodley).
  * Fix parsing of LIKE (issue493, pr525 by dbczumar).
  * Improve parsing of identifiers (pr527 by liulk).

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-sqlparse?expand=0&rev=17
2020-03-09 16:23:34 +00:00
Dominique Leuenberger
53a866e058 Accepting request 695140 from devel:languages:python
- Use %pytest macro

OBS-URL: https://build.opensuse.org/request/show/695140
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-sqlparse?expand=0&rev=8
2019-04-19 16:35:38 +00:00
Tomáš Chvátal
fcb3220d99 - Use %pytest macro
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-sqlparse?expand=0&rev=15
2019-04-17 12:00:44 +00:00
Dominique Leuenberger
13ff101e6c Accepting request 684138 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/684138
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-sqlparse?expand=0&rev=7
2019-03-14 13:54:41 +00:00
Thomas Bechtold
159f6fe384 Accepting request 684132 from home:jayvdb:django
- Move fdupes from %check to %install
- Update to v0.3.0

OBS-URL: https://build.opensuse.org/request/show/684132
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-sqlparse?expand=0&rev=13
2019-03-12 05:12:38 +00:00
Dominique Leuenberger
f81acc6dc7 Accepting request 631152 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/631152
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-sqlparse?expand=0&rev=6
2018-08-24 15:11:15 +00:00
Tomáš Chvátal
3110b81de3 Accepting request 631122 from home:alarrosa:branches:devel:languages:python
- Update to 0.2.4:
  * Add more keywords for MySQL table options (pr328, pr333, by phdru).
  * Add more PL/pgSQL keywords (pr357, by Demetrio92).
  * Improve parsing of floats (pr330, by atronah).
  * Fix parsing of MySQL table names starting with digits (issue337).
  * Fix detection of identifiers using comparisons (issue327).
  * Fix parsing of UNION ALL after WHERE (issue349).
  * Fix handling of semicolon in assignments (issue359, issue358).
- Use fdupes and %license
- Remove shebangs from non-executable python files

OBS-URL: https://build.opensuse.org/request/show/631122
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-sqlparse?expand=0&rev=11
2018-08-23 19:01:26 +00:00
Dominique Leuenberger
4f8a8450c5 Accepting request 509673 from devel:languages:python
1

OBS-URL: https://build.opensuse.org/request/show/509673
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-sqlparse?expand=0&rev=5
2017-09-05 13:14:25 +00:00
e58a4f694d Accepting request 509611 from home:tbechtold:branches:devel:languages:python
- update to 0.2.3:
  * New command line option "--encoding" (by twang2218, pr317).
  * Support CONCURRENTLY keyword (issue322, by rowanseymour).
  * Fix some edge-cases when parsing invalid SQL statements.
  * Fix indentation of LIMIT (by romainr, issue320).
  * Fix parsing of INTO keyword (issue324).
  * Several improvements regarding encodings.
  * Add comma_first option: When splitting list "comma first" notation
  is used (issue141).
  * 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).
  * `is_whitespace` and `is_group` changed into properties
- convert to singlespec

OBS-URL: https://build.opensuse.org/request/show/509611
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-sqlparse?expand=0&rev=9
2017-07-12 09:18:00 +00:00
5655d6c609 - update to 0.2.1
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-sqlparse?expand=0&rev=8
2016-11-15 10:17:13 +00:00
Dominique Leuenberger
d0d8b70b10 Accepting request 307589 from devel:languages:python
1

OBS-URL: https://build.opensuse.org/request/show/307589
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-sqlparse?expand=0&rev=4
2015-05-18 20:26:28 +00:00
Denisart Benjamin
4d81896db1 Accepting request 307036 from home:benoit_monin:branches:devel:languages:python
update to version 0.1.15

OBS-URL: https://build.opensuse.org/request/show/307036
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-sqlparse?expand=0&rev=6
2015-05-17 12:09:52 +00:00
Dominique Leuenberger
e6753a90c8 Accepting request 261637 from devel:languages:python
1

OBS-URL: https://build.opensuse.org/request/show/261637
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-sqlparse?expand=0&rev=3
2014-11-18 21:45:12 +00:00
Denisart Benjamin
a59be551b3 Accepting request 260389 from home:Ledest:misc
fix bashism in pre script

OBS-URL: https://build.opensuse.org/request/show/260389
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-sqlparse?expand=0&rev=4
2014-11-14 15:40:19 +00:00
Stephan Kulow
1cd7a272f9 Accepting request 207025 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/207025
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-sqlparse?expand=0&rev=1
2013-12-18 15:55:18 +00:00
Sascha Peilicke
34e36dc723 - Only ghost /etc/alternatives on 12.3 or newer
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-sqlparse?expand=0&rev=2
2013-11-15 12:18:18 +00:00
Sascha Peilicke
6252e78108 - Initial version
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-sqlparse?expand=0&rev=1
2013-11-08 08:29:31 +00:00