diff --git a/python-outcome.changes b/python-outcome.changes index 7a4165a..a908b7e 100644 --- a/python-outcome.changes +++ b/python-outcome.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Tue May 14 21:13:05 UTC 2019 - Tomáš Chvátal + +- Fix build for python2 +- Really run tests + ------------------------------------------------------------------- Sat May 11 17:20:04 UTC 2019 - Torsten Gruner diff --git a/python-outcome.spec b/python-outcome.spec index e1dba8a..cdc96ad 100644 --- a/python-outcome.spec +++ b/python-outcome.spec @@ -12,33 +12,31 @@ # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. -# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# %{?!python_module:%define python_module() python-%{**} python3-%{**}} -%define skip_python2 1 Name: python-outcome Version: 1.0.0 Release: 0 -License: MIT OR Apache-2.0 Summary: Capture the outcome of Python function calls -Url: https://github.com/python-trio/outcome +License: MIT OR Apache-2.0 Group: Development/Languages/Python +URL: https://github.com/python-trio/outcome Source: https://github.com/python-trio/outcome/archive/v%{version}.tar.gz#/outcome-%{version}.tar.gz -BuildRequires: python-rpm-macros -BuildRequires: %{python_module devel} BuildRequires: %{python_module setuptools} -# SECTION test requirements -BuildRequires: %{python_module attrs} -BuildRequires: %{python_module pytest} -BuildRequires: %{python_module pytest-cov} -BuildRequires: %{python_module pytest-asyncio} -BuildRequires: %{python_module async-generator} -# /SECTION BuildRequires: fdupes +BuildRequires: python-rpm-macros Requires: python-attrs BuildArch: noarch - +# SECTION test requirements +BuildRequires: %{python_module attrs} +BuildRequires: %{python_module pytest-cov} +BuildRequires: %{python_module pytest} +BuildRequires: python3-async_generator +BuildRequires: python3-pytest-asyncio +# /SECTION %python_subpackages %description @@ -53,8 +51,9 @@ Outcome provides a function for capturing the outcome of a Python function call, %install %python_install %python_expand %fdupes %{buildroot}%{$python_sitelib} + %check -%python_exec setup.py test +%pytest %files %{python_files} %doc README.rst