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

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

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

%define  srcname mprpc

#%%def_disable check


Name:    python3-module-%srcname
Version: 0.1.17
Release: alt1

Summary: Lightweight MessagePack RPC library
License: ASL-2.0
Group:   Development/Python3
URL:     https://github.com/studio-ousia/mprpc

Packager: Anton Midyukov <antohami at altlinux.org>

BuildRequires(pre): rpm-build-python3
BuildRequires: python3-dev
BuildRequires: python3-module-setuptools
BuildRequires: python3-module-Cython

%if_disabled check
%else
#BuildRequires: python3-module-pytest
BuildRequires: python3-module-gevent
BuildRequires: python3-module-nose
BuildRequires: python3-module-mock
BuildRequires: python3-module-msgpack
BuildRequires: python3-module-gsocketpool
%endif

%py3_requires gsocketpool

# Source-url: https://github.com/studio-ousia/mprpc/archive/refs/tags/v%version.tar.gz

Source: %srcname-%version.tar

%description
mprpc is a lightweight MessagePack RPC library. It enables you to easily build
a distributed server-side system by writing a small amount of code. It is built
on top of gevent and MessagePack.

%prep
%setup -n %srcname-%version

%build
./cythonize.sh
%python3_build

%check
export PYTHONPATH=%buildroot/%python3_sitelibdir/
#py.test3 -v
%__python3 tests/test_rpc.py

%install
%python3_install
rm %buildroot%python3_sitelibdir/mprpc/*.pyx
rm %buildroot%python3_sitelibdir/mprpc/*.c

%files
%python3_sitelibdir/*
%doc *.rst

%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