commit python-sqlparse for openSUSE:Factory

2020-03-26 Thread root
Hello community,

here is the log from the commit of package python-sqlparse for openSUSE:Factory 
checked in at 2020-03-27 00:28:45

Comparing /work/SRC/openSUSE:Factory/python-sqlparse (Old)
 and  /work/SRC/openSUSE:Factory/.python-sqlparse.new.3160 (New)


Package is "python-sqlparse"

Fri Mar 27 00:28:45 2020 rev:10 rq:787620 version:0.3.1

Changes:

--- /work/SRC/openSUSE:Factory/python-sqlparse/python-sqlparse.changes  
2020-03-11 18:49:23.523515141 +0100
+++ 
/work/SRC/openSUSE:Factory/.python-sqlparse.new.3160/python-sqlparse.changes
2020-03-27 00:28:45.396361938 +0100
@@ -1,0 +2,6 @@
+Tue Mar 24 02:45:39 UTC 2020 - Steve Kowalik 
+
+- Add stdout-encoding-set.patch to use sys.stdout.reconfigure() if
+  the stream is an instance of TextIOWrapper to support a pytest change.
+
+---

New:

  stdout-encoding-set.patch



Other differences:
--
++ python-sqlparse.spec ++
--- /var/tmp/diff_new_pack.2L8sp7/_old  2020-03-27 00:28:45.876362181 +0100
+++ /var/tmp/diff_new_pack.2L8sp7/_new  2020-03-27 00:28:45.876362181 +0100
@@ -25,6 +25,7 @@
 Group:  Development/Languages/Python
 URL:https://github.com/andialbrecht/sqlparse
 Source: 
https://files.pythonhosted.org/packages/source/s/sqlparse/sqlparse-%{version}.tar.gz
+Patch0: stdout-encoding-set.patch
 BuildRequires:  %{python_module pytest}
 BuildRequires:  %{python_module setuptools}
 BuildRequires:  fdupes
@@ -42,6 +43,7 @@
 %prep
 %setup -q -n sqlparse-%{version}
 sed -i -e '1{\,^#!%{_bindir}/env python,d}' sqlparse/__main__.py 
sqlparse/cli.py
+%autopatch -p1
 
 %build
 %python_build

++ stdout-encoding-set.patch ++
Index: sqlparse-0.3.1/tests/test_cli.py
===
--- sqlparse-0.3.1.orig/tests/test_cli.py
+++ sqlparse-0.3.1/tests/test_cli.py
@@ -1,5 +1,6 @@
 # -*- coding: utf-8 -*-
 
+import io
 import subprocess
 import sys
 
@@ -78,7 +79,10 @@ def test_script():
 def test_encoding_utf8_stdout(filepath, load_file, capfd):
 path = filepath('encoding_utf8.sql')
 expected = load_file('encoding_utf8.sql', 'utf-8')
-sys.stdout.encoding = 'utf-8'
+if isinstance(sys.stdout, io.TextIOWrapper):
+sys.stdout.reconfigure(encoding='utf-8')
+else:
+sys.stdout.encoding = 'utf-8'
 sqlparse.cli.main([path])
 out, _ = capfd.readouterr()
 assert out == expected
@@ -96,7 +100,10 @@ def test_encoding_utf8_output_file(filep
 def test_encoding_gbk_stdout(filepath, load_file, capfd):
 path = filepath('encoding_gbk.sql')
 expected = load_file('encoding_gbk.sql', 'gbk')
-sys.stdout.encoding = 'gbk'
+if isinstance(sys.stdout, io.TextIOWrapper):
+sys.stdout.reconfigure(encoding='gbk')
+else:
+sys.stdout.encoding = 'gbk'
 sqlparse.cli.main([path, '--encoding', 'gbk'])
 out, _ = capfd.readouterr()
 assert out == expected
@@ -117,7 +124,10 @@ def test_encoding_stdin_utf8(filepath, l
 old_stdin = sys.stdin
 with open(path, 'r') as f:
 sys.stdin = f
-sys.stdout.encoding = 'utf-8'
+if isinstance(sys.stdout, io.TextIOWrapper):
+sys.stdout.reconfigure(encoding='utf-8')
+else:
+sys.stdout.encoding = 'utf-8'
 sqlparse.cli.main(['-'])
 sys.stdin = old_stdin
 out, _ = capfd.readouterr()
@@ -130,7 +140,10 @@ def test_encoding_stdin_gbk(filepath, lo
 old_stdin = sys.stdin
 with open(path, 'r') as stream:
 sys.stdin = stream
-sys.stdout.encoding = 'gbk'
+if isinstance(sys.stdout, io.TextIOWrapper):
+sys.stdout.reconfigure(encoding='gbk')
+else:
+sys.stdout.encoding = 'gbk'
 sqlparse.cli.main(['-', '--encoding', 'gbk'])
 sys.stdin = old_stdin
 out, _ = capfd.readouterr()



commit python-sqlparse for openSUSE:Factory

2020-03-11 Thread root
Hello community,

here is the log from the commit of package python-sqlparse for openSUSE:Factory 
checked in at 2020-03-11 18:45:27

Comparing /work/SRC/openSUSE:Factory/python-sqlparse (Old)
 and  /work/SRC/openSUSE:Factory/.python-sqlparse.new.3160 (New)


Package is "python-sqlparse"

Wed Mar 11 18:45:27 2020 rev:9 rq:783018 version:0.3.1

Changes:

--- /work/SRC/openSUSE:Factory/python-sqlparse/python-sqlparse.changes  
2019-04-19 18:35:40.114977851 +0200
+++ 
/work/SRC/openSUSE:Factory/.python-sqlparse.new.3160/python-sqlparse.changes
2020-03-11 18:49:23.523515141 +0100
@@ -1,0 +2,23 @@
+Mon Mar  9 16:22:39 UTC 2020 - Dirk Mueller 
+
+- 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).
+
+---

Old:

  sqlparse-0.3.0.tar.gz

New:

  sqlparse-0.3.1.tar.gz



Other differences:
--
++ python-sqlparse.spec ++
--- /var/tmp/diff_new_pack.kv4jou/_old  2020-03-11 18:49:24.151515422 +0100
+++ /var/tmp/diff_new_pack.kv4jou/_new  2020-03-11 18:49:24.155515424 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package python-sqlparse
 #
-# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2020 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -18,12 +18,12 @@
 
 %{?!python_module:%define python_module() python-%{**} python3-%{**}}
 Name:   python-sqlparse
-Version:0.3.0
+Version:0.3.1
 Release:0
 Summary:Non-validating SQL parser
 License:BSD-3-Clause
 Group:  Development/Languages/Python
-Url:https://github.com/andialbrecht/sqlparse
+URL:https://github.com/andialbrecht/sqlparse
 Source: 
https://files.pythonhosted.org/packages/source/s/sqlparse/sqlparse-%{version}.tar.gz
 BuildRequires:  %{python_module pytest}
 BuildRequires:  %{python_module setuptools}

++ sqlparse-0.3.0.tar.gz -> sqlparse-0.3.1.tar.gz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/sqlparse-0.3.0/AUTHORS new/sqlparse-0.3.1/AUTHORS
--- old/sqlparse-0.3.0/AUTHORS  2019-03-10 08:54:52.0 +0100
+++ new/sqlparse-0.3.1/AUTHORS  2020-02-02 21:23:42.0 +0100
@@ -16,11 +16,13 @@
 * casey 
 * Cauê Beloni 
 * circld 
+* Corey Zumar 
 * Cristian Orellana 
 * Dag Wieers 
 * Darik Gamble 
 * Demetrio92 
 * Dennis Taylor 
+* Dvořák Václav 
 * Florian Bauer 
 * Fredy Wijaya 
 * Gavin Wahl 
@@ -33,6 +35,8 @@
 * Josh Soref 
 * Kevin Jing Qiu 
 * koljonen 
+* Likai Liu 
+* mathilde.oustlant 
 * Michael Schuller 
 * Mike Amy 
 * mulos 
@@ -59,4 +63,5 @@
 * Ville Skyttä 
 * vthriller 
 * wayne.wuw 
+* William Ivanski 
 * Yago Riveiro 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/sqlparse-0.3.0/CHANGELOG new/sqlparse-0.3.1/CHANGELOG
--- old/sqlparse-0.3.0/CHANGELOG2019-03-11 19:17:36.0 +0100
+++ new/sqlparse-0.3.1/CHANGELOG2020-02-29 13:55:37.0 +0100
@@ -1,3 +1,31 @@
+Release 0.3.1 (Feb 29, 2020)
+
+
+Enhancements
+
+* 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.
+
+Bug Fixes
+
+* 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 

commit python-sqlparse for openSUSE:Factory

2019-04-19 Thread root
Hello community,

here is the log from the commit of package python-sqlparse for openSUSE:Factory 
checked in at 2019-04-19 18:35:38

Comparing /work/SRC/openSUSE:Factory/python-sqlparse (Old)
 and  /work/SRC/openSUSE:Factory/.python-sqlparse.new.5536 (New)


Package is "python-sqlparse"

Fri Apr 19 18:35:38 2019 rev:8 rq:695140 version:0.3.0

Changes:

--- /work/SRC/openSUSE:Factory/python-sqlparse/python-sqlparse.changes  
2019-03-14 14:54:42.939766639 +0100
+++ 
/work/SRC/openSUSE:Factory/.python-sqlparse.new.5536/python-sqlparse.changes
2019-04-19 18:35:40.114977851 +0200
@@ -1,0 +2,5 @@
+Wed Apr 17 12:00:12 UTC 2019 - Tomáš Chvátal 
+
+- Use %pytest macro
+
+---



Other differences:
--
++ python-sqlparse.spec ++
--- /var/tmp/diff_new_pack.ROiXUI/_old  2019-04-19 18:35:41.494979603 +0200
+++ /var/tmp/diff_new_pack.ROiXUI/_new  2019-04-19 18:35:41.518979633 +0200
@@ -58,7 +58,7 @@
 %python_uninstall_alternative sqlformat
 
 %check
-%python_exec %{_bindir}/py.test tests
+%pytest
 
 %files %{python_files}
 %doc AUTHORS README.rst




commit python-sqlparse for openSUSE:Factory

2019-03-14 Thread root
Hello community,

here is the log from the commit of package python-sqlparse for openSUSE:Factory 
checked in at 2019-03-14 14:54:41

Comparing /work/SRC/openSUSE:Factory/python-sqlparse (Old)
 and  /work/SRC/openSUSE:Factory/.python-sqlparse.new.28833 (New)


Package is "python-sqlparse"

Thu Mar 14 14:54:41 2019 rev:7 rq:684138 version:0.3.0

Changes:

--- /work/SRC/openSUSE:Factory/python-sqlparse/python-sqlparse.changes  
2018-08-24 17:11:18.250584942 +0200
+++ 
/work/SRC/openSUSE:Factory/.python-sqlparse.new.28833/python-sqlparse.changes   
2019-03-14 14:54:42.939766639 +0100
@@ -1,0 +2,26 @@
+Tue Mar 12 01:49:22 UTC 2019 - John Vandenberg 
+
+- Move fdupes from %check to %install
+- Update to v0.3.0
+  * Remove support for Python 3.3.
+  * New formatting option "--indent_after_first"
+  * New formatting option "--indent_columns"
+  * Add UPSERT keyword
+  * Strip multiple whitespace within parentheses
+  * Support double slash (//) comments
+  * Support for Calcite temporal keywords
+  * Fix occasional IndexError
+  * Fix incorrect splitting of strings containing new lines
+  * Fix reindent issue for parenthesis
+  * Fix from( parsing issue
+  * Fix for get_real_name() to return correct name
+  * Wrap function params when wrap_after is set
+  * Fix parsing of "WHEN name" clauses
+  * Add missing EXPLAIN keyword
+  * Fix issue with strip_comments causing a syntax error
+  * Fix formatting on INSERT which caused staircase effect on values
+  * Avoid formatting of psql commands
+  * Unify handling of GROUP BY/ORDER BY
+  * Remove unnecessary compat shim for bytes
+
+---

Old:

  sqlparse-0.2.4.tar.gz

New:

  sqlparse-0.3.0.tar.gz



Other differences:
--
++ python-sqlparse.spec ++
--- /var/tmp/diff_new_pack.VWihOp/_old  2019-03-14 14:54:43.587766539 +0100
+++ /var/tmp/diff_new_pack.VWihOp/_new  2019-03-14 14:54:43.591766539 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package python-sqlparse
 #
-# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -12,20 +12,19 @@
 # license that conforms to the Open Source Definition (Version 1.9)
 # published by the Open Source Initiative.
 
-# Please submit bugfixes or comments via http://bugs.opensuse.org/
+# Please submit bugfixes or comments via https://bugs.opensuse.org/
 #
 
 
 %{?!python_module:%define python_module() python-%{**} python3-%{**}}
 Name:   python-sqlparse
-Version:0.2.4
+Version:0.3.0
 Release:0
 Summary:Non-validating SQL parser
 License:BSD-3-Clause
 Group:  Development/Languages/Python
 Url:https://github.com/andialbrecht/sqlparse
 Source: 
https://files.pythonhosted.org/packages/source/s/sqlparse/sqlparse-%{version}.tar.gz
-BuildRoot:  %{_tmppath}/%{name}-%{version}-build
 BuildRequires:  %{python_module pytest}
 BuildRequires:  %{python_module setuptools}
 BuildRequires:  fdupes
@@ -50,6 +49,7 @@
 %install
 %python_install
 %python_clone -a %{buildroot}%{_bindir}/sqlformat
+%python_expand %fdupes %{buildroot}%{$python_sitelib}
 
 %post
 %python_install_alternative sqlformat
@@ -59,10 +59,8 @@
 
 %check
 %python_exec %{_bindir}/py.test tests
-%python_expand %fdupes %{buildroot}%{$python_sitelib}
 
 %files %{python_files}
-%defattr(-,root,root,-)
 %doc AUTHORS README.rst
 %license LICENSE
 %python_alternative %{_bindir}/sqlformat

++ sqlparse-0.2.4.tar.gz -> sqlparse-0.3.0.tar.gz ++
 1991 lines of diff (skipped)




commit python-sqlparse for openSUSE:Factory

2018-08-24 Thread root
Hello community,

here is the log from the commit of package python-sqlparse for openSUSE:Factory 
checked in at 2018-08-24 17:11:15

Comparing /work/SRC/openSUSE:Factory/python-sqlparse (Old)
 and  /work/SRC/openSUSE:Factory/.python-sqlparse.new (New)


Package is "python-sqlparse"

Fri Aug 24 17:11:15 2018 rev:6 rq:631152 version:0.2.4

Changes:

--- /work/SRC/openSUSE:Factory/python-sqlparse/python-sqlparse.changes  
2017-09-05 15:14:27.227700809 +0200
+++ /work/SRC/openSUSE:Factory/.python-sqlparse.new/python-sqlparse.changes 
2018-08-24 17:11:18.250584942 +0200
@@ -1,0 +2,14 @@
+Thu Aug 23 06:31:42 UTC 2018 - alarr...@suse.com
+
+- 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
+
+---

Old:

  sqlparse-0.2.3.tar.gz

New:

  sqlparse-0.2.4.tar.gz



Other differences:
--
++ python-sqlparse.spec ++
--- /var/tmp/diff_new_pack.G3x79d/_old  2018-08-24 17:11:21.530588847 +0200
+++ /var/tmp/diff_new_pack.G3x79d/_new  2018-08-24 17:11:21.534588852 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package python-sqlparse
 #
-# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -18,7 +18,7 @@
 
 %{?!python_module:%define python_module() python-%{**} python3-%{**}}
 Name:   python-sqlparse
-Version:0.2.3
+Version:0.2.4
 Release:0
 Summary:Non-validating SQL parser
 License:BSD-3-Clause
@@ -26,9 +26,9 @@
 Url:https://github.com/andialbrecht/sqlparse
 Source: 
https://files.pythonhosted.org/packages/source/s/sqlparse/sqlparse-%{version}.tar.gz
 BuildRoot:  %{_tmppath}/%{name}-%{version}-build
-BuildRequires:  %{python_module devel}
 BuildRequires:  %{python_module pytest}
 BuildRequires:  %{python_module setuptools}
+BuildRequires:  fdupes
 BuildRequires:  python-rpm-macros
 Requires(post): update-alternatives
 Requires(postun): update-alternatives
@@ -42,6 +42,7 @@
 
 %prep
 %setup -q -n sqlparse-%{version}
+sed -i -e '1{\,^#!%{_bindir}/env python,d}' sqlparse/__main__.py 
sqlparse/cli.py
 
 %build
 %python_build
@@ -58,10 +59,12 @@
 
 %check
 %python_exec %{_bindir}/py.test tests
+%python_expand %fdupes %{buildroot}%{$python_sitelib}
 
 %files %{python_files}
 %defattr(-,root,root,-)
 %doc AUTHORS README.rst
+%license LICENSE
 %python_alternative %{_bindir}/sqlformat
 %{python_sitelib}/*
 

++ sqlparse-0.2.3.tar.gz -> sqlparse-0.2.4.tar.gz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/sqlparse-0.2.3/AUTHORS new/sqlparse-0.2.4/AUTHORS
--- old/sqlparse-0.2.3/AUTHORS  2017-02-13 13:46:31.0 +0100
+++ new/sqlparse-0.2.4/AUTHORS  2017-09-21 10:24:57.0 +0200
@@ -11,11 +11,13 @@
 * Alexander Beedie 
 * Alexey Malyshev 
 * Andrew Tipton 
+* atronah 
 * casey 
 * Cauê Beloni 
 * Cristian Orellana 
 * Dag Wieers 
 * Darik Gamble 
+* Demetrio92 
 * Dennis Taylor 
 * Florian Bauer 
 * Gavin Wahl 
@@ -27,6 +29,7 @@
 * Michael Schuller 
 * Mike Amy 
 * mulos 
+* Oleg Broytman 
 * Piet Delport 
 * Prudhvi Vatala 
 * quest 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/sqlparse-0.2.3/CHANGELOG new/sqlparse-0.2.4/CHANGELOG
--- old/sqlparse-0.2.3/CHANGELOG2017-03-02 05:40:18.0 +0100
+++ new/sqlparse-0.2.4/CHANGELOG2017-09-27 09:08:32.0 +0200
@@ -1,3 +1,21 @@
+Release 0.2.4 (Sep 27, 2017)
+
+
+Enhancements
+
+* 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).
+
+Bug Fixes
+
+* 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).
+
+
+
 Release 0.2.3 (Mar 02, 2017)
 
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 

commit python-sqlparse for openSUSE:Factory

2017-09-05 Thread root
Hello community,

here is the log from the commit of package python-sqlparse for openSUSE:Factory 
checked in at 2017-09-05 15:14:25

Comparing /work/SRC/openSUSE:Factory/python-sqlparse (Old)
 and  /work/SRC/openSUSE:Factory/.python-sqlparse.new (New)


Package is "python-sqlparse"

Tue Sep  5 15:14:25 2017 rev:5 rq:509673 version:0.2.3

Changes:

--- /work/SRC/openSUSE:Factory/python-sqlparse/python-sqlparse.changes  
2015-05-18 22:26:29.0 +0200
+++ /work/SRC/openSUSE:Factory/.python-sqlparse.new/python-sqlparse.changes 
2017-09-05 15:14:27.227700809 +0200
@@ -1,0 +2,25 @@
+Wed Jul 12 05:40:09 UTC 2017 - tbecht...@suse.com
+
+- 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
+
+---
+Tue Nov 15 10:13:47 UTC 2016 - dmuel...@suse.com
+
+- update to 0.2.1
+
+---

Old:

  sqlparse-0.1.15.tar.gz

New:

  sqlparse-0.2.3.tar.gz



Other differences:
--
++ python-sqlparse.spec ++
--- /var/tmp/diff_new_pack.qiA9xg/_old  2017-09-05 15:14:28.139572633 +0200
+++ /var/tmp/diff_new_pack.qiA9xg/_new  2017-09-05 15:14:28.139572633 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package python-sqlparse
 #
-# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -16,26 +16,25 @@
 #
 
 
+%{?!python_module:%define python_module() python-%{**} python3-%{**}}
 Name:   python-sqlparse
-Version:0.1.15
+Version:0.2.3
 Release:0
 Summary:Non-validating SQL parser
 License:BSD-3-Clause
 Group:  Development/Languages/Python
 Url:https://github.com/andialbrecht/sqlparse
-Source: 
https://pypi.python.org/packages/source/s/sqlparse/sqlparse-%{version}.tar.gz
+Source: 
https://files.pythonhosted.org/packages/source/s/sqlparse/sqlparse-%{version}.tar.gz
 BuildRoot:  %{_tmppath}/%{name}-%{version}-build
-BuildRequires:  python-devel
-BuildRequires:  python-setuptools
-# Test requirements:
-BuildRequires:  python-pytest
+BuildRequires:  %{python_module devel}
+BuildRequires:  %{python_module pytest}
+BuildRequires:  %{python_module setuptools}
+BuildRequires:  python-rpm-macros
 Requires(post): update-alternatives
 Requires(postun): update-alternatives
-%if 0%{?suse_version} && 0%{?suse_version} <= 1110
-%{!?python_sitelib: %global python_sitelib %(python -c "from 
distutils.sysconfig import get_python_lib; print get_python_lib()")}
-%else
 BuildArch:  noarch
-%endif
+
+%python_subpackages
 
 %description
 sqlparse is a non-validating SQL parser module.  It provides support for
@@ -43,40 +42,27 @@
 
 %prep
 %setup -q -n sqlparse-%{version}
-sed -i "s|\(bin/sqlformat\)|\1-%{py_ver}|" setup.py
-mv bin/sqlformat{,-%{py_ver}}
 
 %build
-python setup.py build
+%python_build
 
 %install
-python setup.py install --prefix=%{_prefix} --root=%{buildroot}
-ln -s %{_bindir}/sqlformat-%{py_ver} %{buildroot}%{_bindir}/sqlformat
-
-%check
-py.test tests
-
-%pre
-# Since /usr/bin/sqlformat became ghosted to be used with update-alternatives, 
we have
-# to get rid of the old binary resulting from the 
non-update-alternativies-ified package:
-[ -h %{_bindir}/sqlformat ] || rm -f %{_bindir}/sqlformat
+%python_install
+%python_clone -a %{buildroot}%{_bindir}/sqlformat
 
 %post
-update-alternatives --install %{_bindir}/sqlformat sqlformat 
%{_bindir}/sqlformat-%{py_ver} 20 
+%python_install_alternative sqlformat
+
+%postun
+%python_uninstall_alternative sqlformat
 
-%preun
-if [ $1 -eq 0 ] ; then
-update-alternatives --remove sphinx-build %{_bindir}/sqlformat-%{py_ver}
-fi
+%check
+%python_exec %{_bindir}/py.test tests
 
-%files
+%files %{python_files}
 %defattr(-,root,root,-)
-%doc COPYING AUTHORS CHANGES README.rst

commit python-sqlparse for openSUSE:Factory

2015-05-18 Thread h_root
Hello community,

here is the log from the commit of package python-sqlparse for openSUSE:Factory 
checked in at 2015-05-18 22:26:28

Comparing /work/SRC/openSUSE:Factory/python-sqlparse (Old)
 and  /work/SRC/openSUSE:Factory/.python-sqlparse.new (New)


Package is python-sqlparse

Changes:

--- /work/SRC/openSUSE:Factory/python-sqlparse/python-sqlparse.changes  
2014-11-18 22:45:47.0 +0100
+++ /work/SRC/openSUSE:Factory/.python-sqlparse.new/python-sqlparse.changes 
2015-05-18 22:26:29.0 +0200
@@ -1,0 +2,53 @@
+Wed May 13 16:39:54 UTC 2015 - benoit.mo...@gmx.fr
+
+- update to version 0.1.15:
+  * Fix a regression for identifiers with square brackets 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).
+  * 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).
+- additional changes from version 0.1.14:
+  * 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).
+  * Improved formatting in list when newlines precede commas
+(issue140).
+- additional changes from version 0.1.13:
+  * Fix a regression in handling of NULL keywords introduced in
+0.1.12.
+- additional changes from version 0.1.12:
+  * 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).
+  * Improve parsing of identifier lists containing placeholders.
+  * Speed up query parsing of unquoted lines (by Michael Schuller).
+- additional changes from version 0.1.11:
+  * 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).
+  * Classify DML keywords (issue116, by Victor Hahn).
+  * Add missing FOREACH keyword.
+  * Grouping of BEGIN/END blocks.
+  * Python 2.5 isn't automatically tested anymore, neither Travis
+nor Tox still support it out of the box.
+
+---

Old:

  sqlparse-0.1.10.tar.gz

New:

  sqlparse-0.1.15.tar.gz



Other differences:
--
++ python-sqlparse.spec ++
--- /var/tmp/diff_new_pack.6bVVw1/_old  2015-05-18 22:26:29.0 +0200
+++ /var/tmp/diff_new_pack.6bVVw1/_new  2015-05-18 22:26:29.0 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package python-sqlparse
 #
-# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
+# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -17,7 +17,7 @@
 
 
 Name:   python-sqlparse
-Version:0.1.10
+Version:0.1.15
 Release:0
 Summary:Non-validating SQL parser
 License:BSD-3-Clause

++ sqlparse-0.1.10.tar.gz - sqlparse-0.1.15.tar.gz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/sqlparse-0.1.10/AUTHORS new/sqlparse-0.1.15/AUTHORS
--- old/sqlparse-0.1.10/AUTHORS 2013-10-24 05:53:55.0 +0200
+++ new/sqlparse-0.1.15/AUTHORS 2015-04-12 06:43:27.0 +0200
@@ -6,15 +6,24 @@
 Alphabetical list of contributors:
 * Alexander Beedie ayem...@gmail.com
 * Alexey Malyshev nostr...@gmail.com
+* casey ca...@cloudera.com
+* Cristian Orellana cristi...@groupon.com
+* Darik Gamble darik.gam...@gmail.com
 * Florian Bauer florian.ba...@zmdi.com
+* Gavin Wahl gw...@fusionbox.com
+* JacekPliszka jacek.plis...@gmail.com
 * Jesús Leganés Combarro Piranna pira...@gmail.com
 * Kevin Jing Qiu kevin.jing@gmail.com
+* Michael Schuller ch...@mschuller.net
 * Mike Amy 

commit python-sqlparse for openSUSE:Factory

2014-11-18 Thread h_root
Hello community,

here is the log from the commit of package python-sqlparse for openSUSE:Factory 
checked in at 2014-11-18 22:45:12

Comparing /work/SRC/openSUSE:Factory/python-sqlparse (Old)
 and  /work/SRC/openSUSE:Factory/.python-sqlparse.new (New)


Package is python-sqlparse

Changes:

--- /work/SRC/openSUSE:Factory/python-sqlparse/python-sqlparse.changes  
2013-12-18 16:55:19.0 +0100
+++ /work/SRC/openSUSE:Factory/.python-sqlparse.new/python-sqlparse.changes 
2014-11-18 22:45:47.0 +0100
@@ -1,0 +2,5 @@
+Sat Nov 08 20:20:00 UTC 2014 - Led led...@gmail.com
+
+- fix bashism in pre script
+
+---



Other differences:
--
++ python-sqlparse.spec ++
--- /var/tmp/diff_new_pack.JKIVhE/_old  2014-11-18 22:45:48.0 +0100
+++ /var/tmp/diff_new_pack.JKIVhE/_new  2014-11-18 22:45:48.0 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package python-sqlparse
 #
-# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
+# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -59,8 +59,7 @@
 %pre
 # Since /usr/bin/sqlformat became ghosted to be used with update-alternatives, 
we have
 # to get rid of the old binary resulting from the 
non-update-alternativies-ified package:
-[[ ! -L %{_bindir}/sqlformat ]]  rm -f %{_bindir}/sqlformat
-exit 0
+[ -h %{_bindir}/sqlformat ] || rm -f %{_bindir}/sqlformat
 
 %post
 update-alternatives --install %{_bindir}/sqlformat sqlformat 
%{_bindir}/sqlformat-%{py_ver} 20 

-- 
To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org
For additional commands, e-mail: opensuse-commit+h...@opensuse.org