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.000000000 +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 -%ghost %{_bindir}/sqlformat -%if 0%{?suse_version} >= 1230 -%ghost %{_sysconfdir}/alternatives/sqlformat -%endif -%{_bindir}/sqlformat-%{py_ver} +%doc AUTHORS README.rst +%python_alternative %{_bindir}/sqlformat %{python_sitelib}/* %changelog ++++++ sqlparse-0.1.15.tar.gz -> sqlparse-0.2.3.tar.gz ++++++ ++++ 10516 lines of diff (skipped)