From 68784e50ac01101b92ce97cc996b830d1eb96025b3fb24762cd9dbb296941b6f Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Mon, 30 Aug 2021 12:54:33 +0000 Subject: [PATCH] Accepting request 915022 from home:pgajdos:python - %check: use %pyunittest rpm macro OBS-URL: https://build.opensuse.org/request/show/915022 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-bson?expand=0&rev=5 --- python-bson.changes | 5 +++++ python-bson.spec | 6 +++--- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/python-bson.changes b/python-bson.changes index 82e513a..98f2bb1 100644 --- a/python-bson.changes +++ b/python-bson.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Mon Aug 30 10:39:53 UTC 2021 - pgajdos@suse.com + +- %check: use %pyunittest rpm macro + ------------------------------------------------------------------- Mon Apr 8 04:58:07 PM UTC 2019 - John Vandenberg diff --git a/python-bson.spec b/python-bson.spec index 1a07fff..13d8bf8 100644 --- a/python-bson.spec +++ b/python-bson.spec @@ -1,7 +1,7 @@ # # spec file for package python-bson # -# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2021 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -21,7 +21,7 @@ Name: python-bson Version: 0.5.8 Release: 0 Summary: BSON codec for Python -License: BSD-3-Clause AND Apache-2.0 +License: Apache-2.0 AND BSD-3-Clause Group: Development/Languages/Python URL: https://github.com/py-bson/bson Source: https://github.com/py-bson/bson/archive/%{version}.tar.gz#/bson-%{version}.tar.gz @@ -52,7 +52,7 @@ sed -i '1 {/^#!/d}' bson/*.py %python_expand %fdupes %{buildroot}%{$python_sitelib} %check -%python_exec setup.py test +%pyunittest discover -v %files %{python_files} %doc README.rst