diff --git a/python-sqlparse.changes b/python-sqlparse.changes index 82de469..54ffc41 100644 --- a/python-sqlparse.changes +++ b/python-sqlparse.changes @@ -1,3 +1,23 @@ +------------------------------------------------------------------- +Wed Jul 12 05:40:09 UTC 2017 - tbechtold@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 - dmueller@suse.com diff --git a/python-sqlparse.spec b/python-sqlparse.spec index dfaf75e..e0637de 100644 --- a/python-sqlparse.spec +++ b/python-sqlparse.spec @@ -1,7 +1,7 @@ # # spec file for package python-sqlparse # -# Copyright (c) 2016 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.2.1 +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.io/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 @@ -45,21 +44,25 @@ parsing, splitting and formatting SQL statements. %setup -q -n sqlparse-%{version} %build -python setup.py build +%python_build %install -python setup.py install --prefix=%{_prefix} --root=%{buildroot} +%python_install +%python_clone -a %{buildroot}%{_bindir}/sqlformat + +%post +%python_install_alternative sqlformat + +%postun +%python_uninstall_alternative sqlformat %check -py.test tests +%python_exec %{_bindir}/py.test tests -%files +%files %{python_files} %defattr(-,root,root,-) %doc AUTHORS README.rst -%ghost %{_bindir}/sqlformat -%if 0%{?suse_version} >= 1230 -%ghost %{_sysconfdir}/alternatives/sqlformat -%endif +%python_alternative %{_bindir}/sqlformat %{python_sitelib}/* %changelog diff --git a/sqlparse-0.2.1.tar.gz b/sqlparse-0.2.1.tar.gz deleted file mode 100644 index 04acde3..0000000 --- a/sqlparse-0.2.1.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:1c98a2bdffe67f1bb817b72a7ba4d38be592e0f07c5acea4adebcec12c4377d1 -size 53463 diff --git a/sqlparse-0.2.3.tar.gz b/sqlparse-0.2.3.tar.gz new file mode 100644 index 0000000..1898c41 --- /dev/null +++ b/sqlparse-0.2.3.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:becd7cc7cebbdf311de8ceedfcf2bd2403297024418801947f8c953025beeff8 +size 60742