15
0
forked from pool/python-apsw

Accepting request 1100912 from devel:languages:python

- Update to 3.42.0.1:
  - Work with SQLite compiled with
    SQLITE_OMIT_DEPRECATED. Connection.setprofile() was changed
    from using the deprecated sqlite3_profile to sqlite3_trace_v2
    giving the same results. When including the amalgamation,
    SQLITE_OMIT_DEPRECATED is defined. (APSW issue 443)
  - Shell updates adding various commands to match the SQLite
    shell, as well as code and documentation improvements. (APSW
    issue 397)
  - Added Connection.read() and apsw.ext.dbinfo() to provide
    information from the database and journal/wal files. The
    shell command .dbinfo displays it.
  - Added apsw.vfs_details(). The shell command .vfslist displays
    it.
  - Implemented VFS method xCurrentTimeInt64. The default SQLite
    VFS no longer provide xCurrentTime (floating point version)
    if SQLITE_OMIT_DEPRECATED is defined, so this is needed for
    inheritance to work. (APSW issue 451)
  - Backwards incompatible change: VFS If you override
    xCurrentTime, then you will need to override
    xCurrentTimeInt64 in the same way, or exclude
    xCurrentTimeInt64 in VFS, or use iVersion of 1.
  - speedtest now shows summary statistics, and improved help
    text. (APSW issue 444)
- Clean up the SPEC file, use %pyproject_* macros instead.
- Make the test suite pass again (gh#rogerbinns/apsw#462).

OBS-URL: https://build.opensuse.org/request/show/1100912
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-apsw?expand=0&rev=17
This commit is contained in:
2023-07-27 14:51:48 +00:00
committed by Git OBS Bridge
4 changed files with 55 additions and 18 deletions

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:0cc0654b7c6b76e4b9b2a1300d19e79b9b9d9c6b918b8683e23da2d1209e9281
size 863081

BIN
apsw-3.42.0.1.tar.gz LFS Normal file

Binary file not shown.

View File

@@ -1,3 +1,33 @@
-------------------------------------------------------------------
Wed Jul 26 14:57:47 UTC 2023 - Matej Cepl <mcepl@suse.com>
- Update to 3.42.0.1:
- Work with SQLite compiled with
SQLITE_OMIT_DEPRECATED. Connection.setprofile() was changed
from using the deprecated sqlite3_profile to sqlite3_trace_v2
giving the same results. When including the amalgamation,
SQLITE_OMIT_DEPRECATED is defined. (APSW issue 443)
- Shell updates adding various commands to match the SQLite
shell, as well as code and documentation improvements. (APSW
issue 397)
- Added Connection.read() and apsw.ext.dbinfo() to provide
information from the database and journal/wal files. The
shell command .dbinfo displays it.
- Added apsw.vfs_details(). The shell command .vfslist displays
it.
- Implemented VFS method xCurrentTimeInt64. The default SQLite
VFS no longer provide xCurrentTime (floating point version)
if SQLITE_OMIT_DEPRECATED is defined, so this is needed for
inheritance to work. (APSW issue 451)
- Backwards incompatible change: VFS If you override
xCurrentTime, then you will need to override
xCurrentTimeInt64 in the same way, or exclude
xCurrentTimeInt64 in VFS, or use iVersion of 1.
- speedtest now shows summary statistics, and improved help
text. (APSW issue 444)
- Clean up the SPEC file, use %pyproject_* macros instead.
- Make the test suite pass again (gh#rogerbinns/apsw#462).
-------------------------------------------------------------------
Tue Jun 20 12:17:34 UTC 2023 - ecsos <ecsos@opensuse.org>

View File

@@ -18,15 +18,17 @@
%{?sle15_python_module_pythons}
Name: python-apsw
Version: 3.42.0.0
Version: 3.42.0.1
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
Source: https://github.com/rogerbinns/apsw/archive/refs/tags/%{version}.tar.gz#/apsw-%{version}.tar.gz
BuildRequires: %{python_module devel}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module wheel}
BuildRequires: fdupes
BuildRequires: pkgconfig
BuildRequires: python-rpm-macros
BuildRequires: pkgconfig(sqlite3) >= 3.42
@@ -39,29 +41,34 @@ being a minimal layer over SQLite attempting just to translate the
complete SQLite API into Python.
%prep
%setup -q -n apsw-%{version}
%autosetup -p1 -n apsw-%{version}
# See the discussion on gh#rogerbinns/apsw#462
cat << EOF >setup.apsw
[build_ext]
use_system_sqlite_config = true
EOF
%build
export CFLAGS="%{optflags} -fno-strict-aliasing"
#%%python_build
%{python_expand $python setup.py build --enable-all-extensions --enable=load_extension}
%pyproject_wheel
%python_exec setup.py build_test_extension
%install
%python_install
%pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitearch}
%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
# gh#rogerbinns/apsw#462
# We cannot use %%pyunittest_arch here, see the ticket for the discussion
%{python_expand export PYTHONPATH=%{buildroot}%{$python_sitearch} PYTHONDONTWRITEBYTECODE=1
$python -m apsw.tests -v
}
%files %{python_files}
%license LICENSE
%doc README.rst
%{python_sitearch}/*
%{python_sitearch}/apsw
%{python_sitearch}/apsw-%{version}*-info
%changelog