2015-08-12 16:16:01 +02:00
|
|
|
#
|
|
|
|
# spec file for package python-pickleshare
|
|
|
|
#
|
2023-04-21 16:15:51 +02:00
|
|
|
# Copyright (c) 2023 SUSE LLC
|
2015-08-12 16:16:01 +02:00
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2018-12-04 14:46:51 +01:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2015-08-12 16:16:01 +02:00
|
|
|
#
|
|
|
|
|
2018-12-04 14:46:51 +01:00
|
|
|
|
2023-04-21 16:15:51 +02:00
|
|
|
%{?sle15_python_module_pythons}
|
2015-08-12 16:16:01 +02:00
|
|
|
Name: python-pickleshare
|
2018-10-11 21:00:27 +02:00
|
|
|
Version: 0.7.5
|
2015-08-12 16:16:01 +02:00
|
|
|
Release: 0
|
|
|
|
Summary: Tiny shelve-like database with concurrency support
|
|
|
|
License: MIT
|
2020-03-14 08:54:30 +01:00
|
|
|
URL: https://github.com/vivainio/pickleshare
|
2017-07-12 19:17:47 +02:00
|
|
|
Source: https://files.pythonhosted.org/packages/source/p/pickleshare/pickleshare-%{version}.tar.gz
|
2020-03-14 08:54:30 +01:00
|
|
|
BuildRequires: %{python_module pytest}
|
2017-07-12 19:17:47 +02:00
|
|
|
BuildRequires: %{python_module setuptools}
|
|
|
|
BuildRequires: fdupes
|
|
|
|
BuildRequires: python-rpm-macros
|
2020-03-14 08:54:30 +01:00
|
|
|
BuildArch: noarch
|
2017-07-12 19:17:47 +02:00
|
|
|
%python_subpackages
|
2015-08-12 16:16:01 +02:00
|
|
|
|
|
|
|
%description
|
|
|
|
PickleShare - a small 'shelve' like datastore with concurrency support
|
|
|
|
|
|
|
|
Like shelve, a PickleShareDB object acts like a normal dictionary. Unlike shelve,
|
2020-03-14 08:54:30 +01:00
|
|
|
many processes can access the database simultaneously. Changing a value in
|
2015-08-12 16:16:01 +02:00
|
|
|
database is immediately visible to other processes accessing the same database.
|
|
|
|
|
|
|
|
Concurrency is possible because the values are stored in separate files. Hence
|
|
|
|
the "database" is a directory where *all* files are governed by PickleShare.
|
|
|
|
|
|
|
|
This module is certainly not ZODB, but can be used for low-load
|
2020-03-14 08:54:30 +01:00
|
|
|
(non-mission-critical) situations where tiny code size trumps the
|
2015-08-12 16:16:01 +02:00
|
|
|
advanced features of a "real" object database.
|
|
|
|
|
|
|
|
Installation guide: pip install path pickleshare
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n pickleshare-%{version}
|
|
|
|
# Remove shebang
|
2020-03-14 08:54:30 +01:00
|
|
|
sed -i '1{\@^#!%{_bindir}/env python@d}' pickleshare.py
|
2015-08-12 16:16:01 +02:00
|
|
|
|
|
|
|
%build
|
2017-07-12 19:17:47 +02:00
|
|
|
%python_build
|
2015-08-12 16:16:01 +02:00
|
|
|
|
|
|
|
%install
|
2017-07-12 19:17:47 +02:00
|
|
|
%python_install
|
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
|
|
|
|
|
|
|
%check
|
|
|
|
export LANG=en_US.UTF-8
|
2020-03-14 08:54:30 +01:00
|
|
|
%pytest .
|
2015-08-12 16:16:01 +02:00
|
|
|
|
2017-07-12 19:17:47 +02:00
|
|
|
%files %{python_files}
|
2018-10-11 21:00:27 +02:00
|
|
|
%doc README.md
|
|
|
|
%license LICENSE
|
2017-07-12 19:17:47 +02:00
|
|
|
%{python_sitelib}/pickleshare.py*
|
|
|
|
%{python_sitelib}/pickleshare-%{version}-py*.egg-info
|
|
|
|
%pycache_only %{python_sitelib}/__pycache__/pickleshare.*.py*
|
2015-08-12 16:16:01 +02:00
|
|
|
|
|
|
|
%changelog
|