From 901a0ab9c34a8b5eb545eaf83f7a9935cbcdd0e1f1be0683680daba97cea2f54 Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Sat, 6 Nov 2021 10:26:31 +0000 Subject: [PATCH] Accepting request 928956 from home:pgajdos:python - %check: use %pyunittest rpm macro OBS-URL: https://build.opensuse.org/request/show/928956 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-j2gen?expand=0&rev=8 --- python-j2gen.changes | 5 +++++ python-j2gen.spec | 6 +++--- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/python-j2gen.changes b/python-j2gen.changes index 55d0a40..234b4b8 100644 --- a/python-j2gen.changes +++ b/python-j2gen.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Wed Nov 3 08:08:50 UTC 2021 - pgajdos@suse.com + +- %check: use %pyunittest rpm macro + ------------------------------------------------------------------- Mon May 25 10:59:31 UTC 2020 - Petr Gajdos diff --git a/python-j2gen.spec b/python-j2gen.spec index a073e2d..9157a40 100644 --- a/python-j2gen.spec +++ b/python-j2gen.spec @@ -1,7 +1,7 @@ # # spec file for package python-j2gen # -# Copyright (c) 2020 SUSE LLC +# 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 @@ -33,7 +33,7 @@ BuildRequires: python-rpm-macros Requires: python-Jinja2 Requires: python-PyYAML Requires(post): update-alternatives -Requires(postun): update-alternatives +Requires(postun):update-alternatives BuildArch: noarch # SECTION test requirements BuildRequires: %{python_module Jinja2} @@ -59,7 +59,7 @@ Jinja2 template renderer with yaml input files %python_expand %fdupes %{buildroot}%{$python_sitelib} %check -%python_exec setup.py test +%pyunittest discover -v %post %python_install_alternative j2gen