diff --git a/3.42.0.0.tar.gz b/3.42.0.0.tar.gz deleted file mode 100644 index 5769d32..0000000 --- a/3.42.0.0.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:0cc0654b7c6b76e4b9b2a1300d19e79b9b9d9c6b918b8683e23da2d1209e9281 -size 863081 diff --git a/apsw-3.42.0.1.tar.gz b/apsw-3.42.0.1.tar.gz new file mode 100644 index 0000000..9047d67 --- /dev/null +++ b/apsw-3.42.0.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:13250e0b6d6d008dcd8c93cdd2291a19a9ad086622a68e00ce409a5df0a45917 +size 881270 diff --git a/python-apsw.changes b/python-apsw.changes index d2016b1..c56852a 100644 --- a/python-apsw.changes +++ b/python-apsw.changes @@ -1,3 +1,33 @@ +------------------------------------------------------------------- +Wed Jul 26 14:57:47 UTC 2023 - Matej Cepl + +- 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 diff --git a/python-apsw.spec b/python-apsw.spec index 6482fad..4d4a8b9 100644 --- a/python-apsw.spec +++ b/python-apsw.spec @@ -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