diff --git a/python-incremental.changes b/python-incremental.changes index 4e99f38..78378a0 100644 --- a/python-incremental.changes +++ b/python-incremental.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Wed Jun 5 06:14:13 UTC 2019 - pgajdos@suse.com + +- run the testsuite + ------------------------------------------------------------------- Tue Dec 4 12:49:17 UTC 2018 - Matej Cepl diff --git a/python-incremental.spec b/python-incremental.spec index 918619e..0144861 100644 --- a/python-incremental.spec +++ b/python-incremental.spec @@ -1,7 +1,7 @@ # # spec file for package python-incremental # -# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -26,10 +26,16 @@ Group: Development/Languages/Python URL: https://github.com/twisted/incremental Source: https://files.pythonhosted.org/packages/source/i/incremental/incremental-%{version}.tar.gz BuildRequires: %{python_module setuptools} +BuildRequires: fdupes BuildRequires: python-rpm-macros Suggests: %{python_module Twisted >= 16.4.0} Suggests: %{python_module click >= 6.0} BuildArch: noarch +# SECTION test requirements +BuildRequires: %{python_module Twisted >= 16.4.0} +BuildRequires: %{python_module click >= 6.0} +BuildRequires: %{python_module pytest} +# /SECTION %python_subpackages %description @@ -39,11 +45,14 @@ Incremental is a small library that versions your Python projects. %setup -q -n incremental-%{version} %build - %python_build %install %python_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%check +%pytest %files %{python_files} %license LICENSE