forked from pool/python-apsw
* Shell: Errors when SQLite are preparing a statement now show
the relevant extract of the query, and where the error was
detected.
* Shell: Output modes table (ASCII line drawing, lots of
sanitization), box (Unicode line drawing) and
qbox (box with quoted values) available.
* Shell: if started interactively then box is the default mode
(list remains the default in non-interactive)
* Added :meth:`Connection.pragma` to execute pragmas
and get results.
* Added :attr:`Cursor.get` returning query results with the
least amount of structure.
* Fixed execution tracers should return comment text for
comment only queries, and add :attr:`Cursor.has_vdbe`.
* Ensure that all applicable options are implemented for
:func:`apsw.config`, :meth:`Connection.config` and similar.
* Added :func:`apsw.sleep`
* Strings for :meth:`apsw.VFS.xNextSystemCall` are interned
* Detect unbound recursion not handled by CPython, and handle
better.
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-apsw?expand=0&rev=33
68 lines
2.1 KiB
RPMSpec
68 lines
2.1 KiB
RPMSpec
#
|
|
# spec file for package python-apsw
|
|
#
|
|
# Copyright (c) 2023 SUSE LLC
|
|
#
|
|
# All modifications and additions to the file contributed by third parties
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
# upon. The license for this file, and modifications and additions to the
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
# license for the pristine package is not an Open Source License, in which
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
# published by the Open Source Initiative.
|
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
|
Name: python-apsw
|
|
Version: 3.42.0.0
|
|
Release: 0
|
|
Summary: Another Python SQLite Wrapper
|
|
License: Zlib
|
|
Group: Development/Libraries/Python
|
|
URL: https://github.com/rogerbinns/apsw/
|
|
Source: https://github.com/rogerbinns/apsw/archive/%{version}.tar.gz
|
|
BuildRequires: %{python_module devel}
|
|
BuildRequires: %{python_module setuptools}
|
|
BuildRequires: pkgconfig
|
|
BuildRequires: python-rpm-macros
|
|
BuildRequires: pkgconfig(sqlite3) >= 3.30
|
|
%python_subpackages
|
|
|
|
%description
|
|
APSW is a Python wrapper for the SQLite embedded relational database
|
|
engine. In contrast to other wrappers such as pysqlite it focuses on
|
|
being a minimal layer over SQLite attempting just to translate the
|
|
complete SQLite API into Python.
|
|
|
|
%prep
|
|
%setup -q -n apsw-%{version}
|
|
|
|
%build
|
|
export CFLAGS="%{optflags} -fno-strict-aliasing"
|
|
#%%python_build
|
|
%{python_expand $python setup.py build --enable-all-extensions --enable=load_extension}
|
|
|
|
%install
|
|
%python_install
|
|
|
|
%check
|
|
# python setup.py test is in this case very complicated home-brewn,
|
|
# and using unittest, so it shouldn't be affected by changes in
|
|
# setuptools.
|
|
export CFLAGS="%{optflags} -fno-strict-aliasing"
|
|
%{python_expand $python setup.py build_ext --inplace
|
|
$python setup.py test
|
|
$python setup.py clean
|
|
}
|
|
|
|
%files %{python_files}
|
|
%license LICENSE
|
|
%doc README.rst
|
|
%{python_sitearch}/*
|
|
|
|
%changelog
|