From 99d21d1505fa85bce0f8cb69335b88134c19c899b0c8dcee96ba1a9b683fb0d9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Tue, 14 May 2019 21:13:24 +0000 Subject: [PATCH] - Fix build for python2 - Really run tests OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-outcome?expand=0&rev=2 --- python-outcome.changes | 6 ++++++ python-outcome.spec | 29 ++++++++++++++--------------- 2 files changed, 20 insertions(+), 15 deletions(-) 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