From 69d48b559938acde268beca0ac0c7128c3d3e6cb8141750395dc579784907a01 Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Fri, 28 May 2021 10:00:15 +0000 Subject: [PATCH] Accepting request 895943 from home:pgajdos:python - %check: use %pyunittest rpm macro OBS-URL: https://build.opensuse.org/request/show/895943 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pytils?expand=0&rev=6 --- python-pytils.changes | 5 +++++ python-pytils.spec | 6 ++++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/python-pytils.changes b/python-pytils.changes index e839fb7..0109b55 100644 --- a/python-pytils.changes +++ b/python-pytils.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Fri May 28 09:51:17 UTC 2021 - pgajdos@suse.com + +- %check: use %pyunittest rpm macro + ------------------------------------------------------------------- Thu Nov 22 17:25:24 UTC 2018 - Jan Engelhardt diff --git a/python-pytils.spec b/python-pytils.spec index 5ce1bea..b91f593 100644 --- a/python-pytils.spec +++ b/python-pytils.spec @@ -1,7 +1,7 @@ # # spec file for package python-pytils # -# Copyright (c) 2018 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 @@ -47,7 +47,9 @@ transliteration, etc.) %python_expand %fdupes %{buildroot}%{$python_sitelib} %check -%python_exec setup.py test +# requires django, it is skipped in pytils/test/__init__.py +rm -r pytils/test/templatetags +%pyunittest discover -v %files %{python_files} %license LICENSE