14
0

- 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
This commit is contained in:
2024-03-15 04:33:23 +00:00
committed by Git OBS Bridge
parent 4dcbfd8a48
commit c38c1e5711
4 changed files with 36 additions and 11 deletions

View File

@@ -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