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
This commit is contained in:
commit
13ff101e6c
@ -1,3 +1,29 @@
|
||||
-------------------------------------------------------------------
|
||||
Tue Mar 12 01:49:22 UTC 2019 - John Vandenberg <jayvdb@gmail.com>
|
||||
|
||||
- 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
|
||||
|
||||
|
@ -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
|
||||
|
@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:ce028444cfab83be538752a2ffdb56bc417b7784ff35bb9a3062413717807dec
|
||||
size 61614
|
3
sqlparse-0.3.0.tar.gz
Normal file
3
sqlparse-0.3.0.tar.gz
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:7c3dca29c022744e95b547e867cee89f4fce4373f3549ccd8797d8eb52cdb873
|
||||
size 64072
|
Loading…
Reference in New Issue
Block a user