14
0

Accepting request 1158120 from devel:languages:python

- 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/request/show/1158120
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-sqlitedict?expand=0&rev=7
This commit is contained in:
2024-03-15 19:31:09 +00:00
committed by Git OBS Bridge
4 changed files with 36 additions and 11 deletions

View File

@@ -1,3 +1,24 @@
-------------------------------------------------------------------
Fri Mar 15 04:32:34 UTC 2024 - Steve Kowalik <steven.kowalik@suse.com>
- 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 <mcalabkova@suse.com>

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

View File

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

3
sqlitedict-2.1.0.tar.gz Normal file
View File

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