forked from pool/python-sqlitedict
- 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:
@@ -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>
|
Wed Jun 3 09:28:59 UTC 2020 - Marketa Calabkova <mcalabkova@suse.com>
|
||||||
|
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package python-sqlitedict
|
# 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
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@@ -16,16 +16,18 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
|
||||||
Name: python-sqlitedict
|
Name: python-sqlitedict
|
||||||
Version: 1.6.0
|
Version: 2.1.0
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: Persistent dict in Python backed by sqlite3
|
Summary: Persistent dict in Python backed by sqlite3
|
||||||
License: Apache-2.0
|
License: Apache-2.0
|
||||||
URL: https://github.com/piskvorky/sqlitedict
|
URL: https://github.com/piskvorky/sqlitedict
|
||||||
Source: https://files.pythonhosted.org/packages/source/s/sqlitedict/sqlitedict-%{version}.tar.gz
|
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 pytest}
|
||||||
BuildRequires: %{python_module setuptools}
|
BuildRequires: %{python_module setuptools}
|
||||||
|
BuildRequires: %{python_module wheel}
|
||||||
BuildRequires: %{pythons}
|
BuildRequires: %{pythons}
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: python-rpm-macros
|
BuildRequires: python-rpm-macros
|
||||||
@@ -42,22 +44,24 @@ dict-like interface and support for multi-thread access.
|
|||||||
sed -i -e '/^#!\//, 1d' sqlitedict.py
|
sed -i -e '/^#!\//, 1d' sqlitedict.py
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%python_build
|
%pyproject_wheel
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%python_install
|
%pyproject_install
|
||||||
%python_expand %fdupes %{buildroot}%{$python_sitearch}
|
%python_expand %fdupes %{buildroot}%{$python_sitearch}
|
||||||
|
|
||||||
%check
|
%check
|
||||||
%{python_expand # db needs to be regenerated
|
%{python_expand # db needs to be regenerated
|
||||||
rm -rf tests/db
|
rm -rf tests/db
|
||||||
mkdir -p 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}
|
%files %{python_files}
|
||||||
%license LICENSE.apache
|
%license LICENSE.md
|
||||||
%doc README.rst
|
%doc README.rst
|
||||||
%{python_sitelib}/*
|
%{python_sitelib}/sqlitedict.py
|
||||||
|
%pycache_only %{python_sitelib}/__pycache__/sqlitedict.*.py*
|
||||||
|
%{python_sitelib}/sqlitedict-%{version}.dist-info
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
@@ -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
3
sqlitedict-2.1.0.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:03d9cfb96d602996f1d4c2db2856f1224b96a9c431bdd16e78032a72940f9e8c
|
||||||
|
size 21846
|
Reference in New Issue
Block a user