14
0

- update to 0.4.1:

* Python 3.9 support
  * Remove support for end-of-life Python 2.7 and 3.4. Python 3.5+ is now
  required.
  * Remaining strings that only consist of whitespaces are not treated as
  statements anymore. Code that ignored the last element from
  sqlparse.split() should be updated accordingly since that function
  now doesn't return an empty string as the last element in some
  cases (issue496).
- remove non-upstream stdout-encoding-set.patch patch

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-sqlparse?expand=0&rev=22
This commit is contained in:
2020-11-26 08:44:08 +00:00
committed by Git OBS Bridge
parent 7b6436d15d
commit da538c5371
5 changed files with 18 additions and 65 deletions

View File

@@ -18,14 +18,13 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-sqlparse
Version: 0.3.1
Version: 0.4.1
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
Patch0: stdout-encoding-set.patch
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
@@ -43,7 +42,6 @@ parsing, splitting and formatting SQL statements.
%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