From 9a2e710645da31453b46ceaada74ca0ae7c0b7b000c64be272588c5861393fd7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Fri, 24 Apr 2020 06:48:23 +0000 Subject: [PATCH] - Execute tests OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-asgiref?expand=0&rev=2 --- python-asgiref.changes | 5 +++++ python-asgiref.spec | 20 +++++++++++++------- 2 files changed, 18 insertions(+), 7 deletions(-) diff --git a/python-asgiref.changes b/python-asgiref.changes index 8184da7..b96be1f 100644 --- a/python-asgiref.changes +++ b/python-asgiref.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Fri Apr 24 06:47:42 UTC 2020 - Tomáš Chvátal + +- Execute tests + ------------------------------------------------------------------- Thu Apr 23 16:53:45 UTC 2020 - Marcus Rueckert diff --git a/python-asgiref.spec b/python-asgiref.spec index 24daba6..a499f84 100644 --- a/python-asgiref.spec +++ b/python-asgiref.spec @@ -1,5 +1,5 @@ # -# spec file for package python-django-rq +# spec file for package python-asgiref # # Copyright (c) 2020 SUSE LLC # @@ -12,25 +12,28 @@ # 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/ +# + %define skip_python2 1 - %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-asgiref Version: 3.2.7 Release: 0 -License: BSD-3-Clause Summary: ASGI specs, helper code, and adapters -Url: https://github.com/django/asgiref/ +License: BSD-3-Clause Group: Development/Languages/Python +URL: https://github.com/django/asgiref/ Source: https://files.pythonhosted.org/packages/source/a/asgiref/asgiref-%{version}.tar.gz -BuildRequires: python-rpm-macros +BuildRequires: %{python_module base >= 3.5} +BuildRequires: %{python_module pytest >= 4.3.0} +BuildRequires: %{python_module pytest-asyncio >= 0.10.0} BuildRequires: %{python_module setuptools} BuildRequires: fdupes +BuildRequires: python-rpm-macros Requires: python BuildArch: noarch - %python_subpackages %description @@ -48,6 +51,9 @@ read more at https://asgi.readthedocs.io/en/latest/ %python_install %python_expand %fdupes %{buildroot}%{$python_sitelib} +%check +%pytest + %files %{python_files} %license LICENSE %doc README.rst