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