Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37860552
en ru br
ALT Linux repos
S:0.7.5-alt2

Group :: Development/Python3
RPM: python3-module-pickleshare

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

%define _unpackaged_files_terminate_build 1
%define oname pickleshare

%def_with check

Name: python3-module-%oname
Version: 0.7.5
Release: alt2
Summary: File system based database that uses python pickles
License: MIT
Group: Development/Python3
Url: https://pypi.org/project/pickleshare/

# https://github.com/pickleshare/pickleshare.git

Source0: %name-%version.tar
BuildArch: noarch

BuildRequires(pre): rpm-build-python3

%if_with check
BuildRequires: python3(pytest)
BuildRequires: python3(tox)
BuildRequires: python3(tox_console_scripts)
%endif

%description
PickleShare - a small 'shelve' like datastore with concurrency support

Like shelve, a PickleShareDB object acts like a normal dictionary.
Unlike shelve, many processes can access the database simultaneously.
Changing a value in 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.

%prep
%setup

%build
%python3_build

%install
%python3_install

%check
cat > tox.ini <<EOF
[testenv]
usedevelop=True
commands =
   {envbindir}/pytest {posargs:-vra}
EOF
export PIP_NO_INDEX=YES
export TOXENV=py3
tox.py3 --sitepackages --console-scripts -vvr -s false

%files
%doc README.md
%python3_sitelibdir/pickleshare.py
%python3_sitelibdir/__pycache__/pickleshare.cpython-*
%python3_sitelibdir/%oname-%version-py%_python3_version.egg-info/

%changelog

Full changelog you can see here

 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin