From 992d4b53ed79112d878bf87fe651ac57dd98a5e1d93dfdf736dcda1db5e35923 Mon Sep 17 00:00:00 2001 From: Daniel Garcia Date: Wed, 25 Jan 2023 09:41:03 +0000 Subject: [PATCH] - Run test on all python versions but for python 3.6 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-ajsonrpc?expand=0&rev=4 --- python-ajsonrpc.changes | 5 +++++ python-ajsonrpc.spec | 16 ++++++++++------ 2 files changed, 15 insertions(+), 6 deletions(-) diff --git a/python-ajsonrpc.changes b/python-ajsonrpc.changes index 2b29f70..72d828e 100644 --- a/python-ajsonrpc.changes +++ b/python-ajsonrpc.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Wed Jan 25 09:40:02 UTC 2023 - Daniel Garcia + +- Run test on all python versions but for python 3.6 + ------------------------------------------------------------------- Sat Jan 15 16:24:57 UTC 2022 - Dirk Müller diff --git a/python-ajsonrpc.spec b/python-ajsonrpc.spec index 6915037..be04570 100644 --- a/python-ajsonrpc.spec +++ b/python-ajsonrpc.spec @@ -1,7 +1,7 @@ # # spec file for package python-ajsonrpc # -# Copyright (c) 2022 SUSE LLC +# Copyright (c) 2023 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -17,7 +17,6 @@ %define skip_python2 1 -%{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-ajsonrpc Version: 1.2.0 Release: 0 @@ -49,9 +48,13 @@ Async JSON-RPC 2.0 protocol + server powered by asyncio. %check # 1 test fails on python 3.6 # See https://github.com/pavlov99/ajsonrpc/issues/19 -%if 0%{?suse_version} > 1530 -%__python38 -m unittest -v -%endif +%{python_expand export PYTHONPATH=%{buildroot}%{$python_sitelib} +if [ %{$python_version} != "3.6" ] +then + rm -rf _build* + $python -m pytest -v +fi +} %post %python_install_alternative async-json-rpc-server @@ -63,6 +66,7 @@ Async JSON-RPC 2.0 protocol + server powered by asyncio. %doc README.md %license LICENSE.txt %python_alternative %{_bindir}/async-json-rpc-server -%{python_sitelib}/* +%{python_sitelib}/ajsonrpc +%{python_sitelib}/ajsonrpc-%{version}*-info %changelog