From 7fd2f2a5116aa8ef5c6491af7adb57584202259bc42ff8ff30d2ac346786d1e8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Tue, 10 Mar 2020 10:30:52 +0000 Subject: [PATCH] - Switch to github tarball for tests - Run tests - Skip python2 build as the 1.0.4 is no longer py2 compatible OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-tinyrpc?expand=0&rev=16 --- 1.0.4.tar.gz | 3 +++ python-tinyrpc.changes | 7 +++++++ python-tinyrpc.spec | 13 +++++++++++-- tinyrpc-1.0.4.tar.gz | 3 --- 4 files changed, 21 insertions(+), 5 deletions(-) create mode 100644 1.0.4.tar.gz delete mode 100644 tinyrpc-1.0.4.tar.gz diff --git a/1.0.4.tar.gz b/1.0.4.tar.gz new file mode 100644 index 0000000..44ae6bc --- /dev/null +++ b/1.0.4.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:fdd1e248c9362d809a4ea765438850faf83674e1b22bdf339f2078dc57fc5fde +size 74082 diff --git a/python-tinyrpc.changes b/python-tinyrpc.changes index bb1a94a..babce80 100644 --- a/python-tinyrpc.changes +++ b/python-tinyrpc.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Tue Mar 10 10:25:46 UTC 2020 - Tomáš Chvátal + +- Switch to github tarball for tests +- Run tests +- Skip python2 build as the 1.0.4 is no longer py2 compatible + ------------------------------------------------------------------- Fri Feb 28 21:43:18 UTC 2020 - Dirk Mueller diff --git a/python-tinyrpc.spec b/python-tinyrpc.spec index c35aafd..aff7d8e 100644 --- a/python-tinyrpc.spec +++ b/python-tinyrpc.spec @@ -17,14 +17,19 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} +%define skip_python2 1 Name: python-tinyrpc Version: 1.0.4 Release: 0 Summary: A modular transport and protocol neutral RPC library License: MIT -Group: Development/Languages/Python URL: https://github.com/mbr/tinyrpc -Source: https://files.pythonhosted.org/packages/source/t/tinyrpc/tinyrpc-%{version}.tar.gz +Source: https://github.com/mbr/tinyrpc/archive/%{version}.tar.gz +BuildRequires: %{python_module Werkzeug} +BuildRequires: %{python_module gevent} +BuildRequires: %{python_module msgpack} +BuildRequires: %{python_module pytest} +BuildRequires: %{python_module pyzmq} BuildRequires: %{python_module setuptools} BuildRequires: %{python_module six} BuildRequires: fdupes @@ -53,6 +58,10 @@ WebSockets or ZeroMQ). %python_install %python_expand %fdupes %{buildroot}%{$python_sitelib} +%check +# test_batch_dispatch - needs old pytest syntax, skip +%pytest -k 'not test_batch_dispatch' + %files %{python_files} %license LICENSE %doc README.rst diff --git a/tinyrpc-1.0.4.tar.gz b/tinyrpc-1.0.4.tar.gz deleted file mode 100644 index c96f33f..0000000 --- a/tinyrpc-1.0.4.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:4b41fab967fb1c978f573bf0d609a3b12cc3b6ed62bd3108f43f575563746396 -size 26367