diff --git a/python-cassowary.changes b/python-cassowary.changes index b64fb98..1365169 100644 --- a/python-cassowary.changes +++ b/python-cassowary.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Wed May 19 08:42:53 UTC 2021 - pgajdos@suse.com + +- use %pytest macro in %check + ------------------------------------------------------------------- Mon Mar 30 12:42:22 UTC 2020 - Marketa Calabkova diff --git a/python-cassowary.spec b/python-cassowary.spec index 54df9d7..f2a4092 100644 --- a/python-cassowary.spec +++ b/python-cassowary.spec @@ -1,7 +1,7 @@ # # spec file for package python-cassowary # -# 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 @@ -17,7 +17,6 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} -%bcond_without test Name: python-cassowary Version: 0.5.2 Release: 0 @@ -26,6 +25,7 @@ License: BSD-3-Clause Group: Development/Languages/Python URL: https://github.com/brodderickrodriguez/cassowary Source: https://files.pythonhosted.org/packages/source/c/cassowary/cassowary-%{version}.tar.gz +BuildRequires: %{python_module pytest} BuildRequires: %{python_module setuptools} BuildRequires: fdupes BuildRequires: python-rpm-macros @@ -47,10 +47,8 @@ layout mechanism. %python_install %python_expand %fdupes %{buildroot}%{$python_sitelib} -%if %{with test} %check -%python_exec setup.py test -%endif +%pytest %files %{python_files} %license LICENSE