From 553cdd71efe7050a9138912af59579b000ddc497a08be551d44f474d02aafbb9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Fri, 7 Jun 2019 10:11:00 +0000 Subject: [PATCH] Accepting request 708251 from home:pgajdos - enable unit tests OBS-URL: https://build.opensuse.org/request/show/708251 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-py-ubjson?expand=0&rev=5 --- python-py-ubjson.changes | 5 +++++ python-py-ubjson.spec | 14 +++++++++----- 2 files changed, 14 insertions(+), 5 deletions(-) diff --git a/python-py-ubjson.changes b/python-py-ubjson.changes index f66a1d8..b47463f 100644 --- a/python-py-ubjson.changes +++ b/python-py-ubjson.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Fri Jun 7 08:28:55 UTC 2019 - pgajdos@suse.com + +- enable unit tests + ------------------------------------------------------------------- Tue Apr 9 14:48:11 UTC 2019 - Bernhard Wiedemann diff --git a/python-py-ubjson.spec b/python-py-ubjson.spec index 8156c63..56a5272 100644 --- a/python-py-ubjson.spec +++ b/python-py-ubjson.spec @@ -12,7 +12,8 @@ # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. -# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# %{?!python_module:%define python_module() python-%{**} python3-%{**}} @@ -20,16 +21,15 @@ Name: python-py-ubjson Version: 0.13.0 Release: 0 -License: Apache-2.0 Summary: Universal Binary JSON encoder/decoder -Url: https://github.com/Iotic-Labs/py-ubjson +License: Apache-2.0 Group: Development/Languages/Python +Url: https://github.com/Iotic-Labs/py-ubjson Source: https://files.pythonhosted.org/packages/source/p/%{modname}/%{modname}-%{version}.tar.gz -BuildRequires: python-rpm-macros BuildRequires: %{python_module devel} BuildRequires: %{python_module setuptools} BuildRequires: fdupes - +BuildRequires: python-rpm-macros %python_subpackages %description @@ -42,6 +42,10 @@ encoder/decoder based on the `draft-12` specification. %build %python_build +%check +touch test/__init__.py +%python_expand $python -munittest discover -v + %install %python_install %python_expand %fdupes %{buildroot}%{$python_sitearch}