14
0

- Add stdout-encoding-set.patch to use sys.stdout.reconfigure() for Python 3.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-sqlparse?expand=0&rev=19
This commit is contained in:
2020-03-23 06:36:48 +00:00
committed by Git OBS Bridge
parent 46ded828ef
commit 85757991a1
3 changed files with 59 additions and 0 deletions

View File

@@ -25,6 +25,7 @@ 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
@@ -42,6 +43,7 @@ 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