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