diff --git a/python-sqlparse.changes b/python-sqlparse.changes index 3d7793e..685dc04 100644 --- a/python-sqlparse.changes +++ b/python-sqlparse.changes @@ -1,3 +1,29 @@ +------------------------------------------------------------------- +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 + ------------------------------------------------------------------- Thu Aug 23 06:31:42 UTC 2018 - alarrosa@suse.com diff --git a/python-sqlparse.spec b/python-sqlparse.spec index c5d19c9..ad3f928 100644 --- a/python-sqlparse.spec +++ b/python-sqlparse.spec @@ -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 @@ sed -i -e '1{\,^#!%{_bindir}/env python,d}' sqlparse/__main__.py sqlparse/cli.py %install %python_install %python_clone -a %{buildroot}%{_bindir}/sqlformat +%python_expand %fdupes %{buildroot}%{$python_sitelib} %post %python_install_alternative sqlformat @@ -59,10 +59,8 @@ sed -i -e '1{\,^#!%{_bindir}/env python,d}' sqlparse/__main__.py sqlparse/cli.py %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 diff --git a/sqlparse-0.2.4.tar.gz b/sqlparse-0.2.4.tar.gz deleted file mode 100644 index a3d1fae..0000000 --- a/sqlparse-0.2.4.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:ce028444cfab83be538752a2ffdb56bc417b7784ff35bb9a3062413717807dec -size 61614 diff --git a/sqlparse-0.3.0.tar.gz b/sqlparse-0.3.0.tar.gz new file mode 100644 index 0000000..f43c506 --- /dev/null +++ b/sqlparse-0.3.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:7c3dca29c022744e95b547e867cee89f4fce4373f3549ccd8797d8eb52cdb873 +size 64072