From 0d3d97d476b70e5f0b6adf008280c602d63275fffbf34bfdcb8a65cd1efa9898 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Mon, 17 Oct 2022 13:14:08 +0000 Subject: [PATCH] Accepting request 1011097 from home:bnavigator:branches:devel:languages:python:pytest - Fix dependencies: pytest-asyncio missing - Enable test suite OBS-URL: https://build.opensuse.org/request/show/1011097 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:pytest/python-pytest-aiohttp?expand=0&rev=6 --- python-pytest-aiohttp.changes | 6 ++++++ python-pytest-aiohttp.spec | 20 +++++++++++--------- 2 files changed, 17 insertions(+), 9 deletions(-) diff --git a/python-pytest-aiohttp.changes b/python-pytest-aiohttp.changes index b4de508..8aae744 100644 --- a/python-pytest-aiohttp.changes +++ b/python-pytest-aiohttp.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Sat Oct 15 09:17:10 UTC 2022 - Ben Greiner + +- Fix dependencies: pytest-asyncio missing +- Enable test suite + ------------------------------------------------------------------- Mon Oct 10 09:23:41 UTC 2022 - Daniel Garcia diff --git a/python-pytest-aiohttp.spec b/python-pytest-aiohttp.spec index a66717b..6425b7e 100644 --- a/python-pytest-aiohttp.spec +++ b/python-pytest-aiohttp.spec @@ -16,8 +16,6 @@ # -%{?!python_module:%define python_module() python3-%{**}} -%define skip_python2 1 %define pyname pytest-aiohttp Name: python-pytest-aiohttp Version: 1.0.4 @@ -28,20 +26,23 @@ Group: Development/Languages/Python URL: https://github.com/aio-libs/pytest-aiohttp Source: https://files.pythonhosted.org/packages/source/p/pytest-aiohttp/pytest-aiohttp-%{version}.tar.gz BuildRequires: %{python_module aiohttp >= 3.8.1} +BuildRequires: %{python_module base >= 3.7} BuildRequires: %{python_module pip} -BuildRequires: %{python_module pytest-asyncio} -BuildRequires: %{python_module pytest} +BuildRequires: %{python_module pytest >= 6.1.0} +BuildRequires: %{python_module pytest-asyncio >= 0.17.2} +BuildRequires: %{python_module setuptools_scm >= 6.2} BuildRequires: %{python_module setuptools} BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros -Requires: python-aiohttp >= 2.3.5 -Requires: python-pytest +Requires: python-aiohttp >= 3.8.1 +Requires: python-pytest >= 6.1.0 +Requires: python-pytest-asyncio >= 0.17.2 BuildArch: noarch %python_subpackages %description -The library allows to use aiohttp pytest plugin without need for implicitly loading it like pytest_plugins = 'aiohttp.pytest_plugin'. +A library that provides fixtures for creation test aiohttp server and client. %prep %setup -q -n %{pyname}-%{version} @@ -54,11 +55,12 @@ The library allows to use aiohttp pytest plugin without need for implicitly load %python_expand %fdupes %{buildroot}%{$python_sitelib} %check -# there are no tests +%pytest %files %{python_files} %license LICENSE %doc README.rst -%{python_sitelib}/* +%{python_sitelib}/pytest_aiohttp +%{python_sitelib}/pytest_aiohttp-%{version}*-info %changelog