Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37567843
en ru br
Репозитории ALT

Группа :: Development/Python3
Пакет: python3-module-mprpc

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   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

Полный changelog можно просмотреть здесь

 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin