From c38c1e57112238514356725d41499dbc774d171b6bd03cac37e94464f71d6401 Mon Sep 17 00:00:00 2001 From: Steve Kowalik Date: Fri, 15 Mar 2024 04:33:23 +0000 Subject: [PATCH] - Update to 2.1.0: * Fix setDaemon deprecated warning * adding optional ability to encode keys * Change logging from info to debug * Properly handle the race condition * Correct spelling mistakes * Introduce weak references * This release supports Python 3.7 and above * Do not create tables when in read-only mode * Use tempfile.mkstemp for safer temp file creation * Fix deadlock where opening database fails * Make outer_stack a parameter * Add a blocking commit after each modification if autocommit is enabled * Clean up license file names * support double quotes in table names - Switch to pyproject macros. - No more greedy globs in %files. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-sqlitedict?expand=0&rev=15 --- python-sqlitedict.changes | 21 +++++++++++++++++++++ python-sqlitedict.spec | 20 ++++++++++++-------- sqlitedict-1.6.0.tar.gz | 3 --- sqlitedict-2.1.0.tar.gz | 3 +++ 4 files changed, 36 insertions(+), 11 deletions(-) delete mode 100644 sqlitedict-1.6.0.tar.gz create mode 100644 sqlitedict-2.1.0.tar.gz diff --git a/python-sqlitedict.changes b/python-sqlitedict.changes index 07c632e..93d661b 100644 --- a/python-sqlitedict.changes +++ b/python-sqlitedict.changes @@ -1,3 +1,24 @@ +------------------------------------------------------------------- +Fri Mar 15 04:32:34 UTC 2024 - Steve Kowalik + +- Update to 2.1.0: + * Fix setDaemon deprecated warning + * adding optional ability to encode keys + * Change logging from info to debug + * Properly handle the race condition + * Correct spelling mistakes + * Introduce weak references + * This release supports Python 3.7 and above + * Do not create tables when in read-only mode + * Use tempfile.mkstemp for safer temp file creation + * Fix deadlock where opening database fails + * Make outer_stack a parameter + * Add a blocking commit after each modification if autocommit is enabled + * Clean up license file names + * support double quotes in table names +- Switch to pyproject macros. +- No more greedy globs in %files. + ------------------------------------------------------------------- Wed Jun 3 09:28:59 UTC 2020 - Marketa Calabkova diff --git a/python-sqlitedict.spec b/python-sqlitedict.spec index 484004b..96e9753 100644 --- a/python-sqlitedict.spec +++ b/python-sqlitedict.spec @@ -1,7 +1,7 @@ # # spec file for package python-sqlitedict # -# Copyright (c) 2020 SUSE LLC +# Copyright (c) 2024 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -16,16 +16,18 @@ # -%{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-sqlitedict -Version: 1.6.0 +Version: 2.1.0 Release: 0 Summary: Persistent dict in Python backed by sqlite3 License: Apache-2.0 URL: https://github.com/piskvorky/sqlitedict Source: https://files.pythonhosted.org/packages/source/s/sqlitedict/sqlitedict-%{version}.tar.gz +BuildRequires: %{python_module base >= 3.7} +BuildRequires: %{python_module pip} BuildRequires: %{python_module pytest} BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} BuildRequires: %{pythons} BuildRequires: fdupes BuildRequires: python-rpm-macros @@ -42,22 +44,24 @@ dict-like interface and support for multi-thread access. sed -i -e '/^#!\//, 1d' sqlitedict.py %build -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitearch} %check %{python_expand # db needs to be regenerated rm -rf tests/db mkdir -p tests/db -PYTHONPATH=%{buildroot}%{$python_sitelib} py.test-%{$python_bin_suffix} +PYTHONPATH=%{buildroot}%{$python_sitelib} pytest-%{$python_bin_suffix} } %files %{python_files} -%license LICENSE.apache +%license LICENSE.md %doc README.rst -%{python_sitelib}/* +%{python_sitelib}/sqlitedict.py +%pycache_only %{python_sitelib}/__pycache__/sqlitedict.*.py* +%{python_sitelib}/sqlitedict-%{version}.dist-info %changelog diff --git a/sqlitedict-1.6.0.tar.gz b/sqlitedict-1.6.0.tar.gz deleted file mode 100644 index 941c6b3..0000000 --- a/sqlitedict-1.6.0.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:483d6a063c4648dec68d413eb29df74399661f8541dcb3ee926d28fc2f82cb24 -size 29220 diff --git a/sqlitedict-2.1.0.tar.gz b/sqlitedict-2.1.0.tar.gz new file mode 100644 index 0000000..2f58509 --- /dev/null +++ b/sqlitedict-2.1.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:03d9cfb96d602996f1d4c2db2856f1224b96a9c431bdd16e78032a72940f9e8c +size 21846