Accepting request 1012119 from devel:languages:python:pytest

OBS-URL: https://build.opensuse.org/request/show/1012119
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pytest-aiohttp?expand=0&rev=3
This commit is contained in:
2022-10-18 10:45:01 +00:00
committed by Git OBS Bridge
2 changed files with 17 additions and 9 deletions

View File

@@ -1,3 +1,9 @@
-------------------------------------------------------------------
Sat Oct 15 09:17:10 UTC 2022 - Ben Greiner <code@bnavigator.de>
- Fix dependencies: pytest-asyncio missing
- Enable test suite
------------------------------------------------------------------- -------------------------------------------------------------------
Mon Oct 10 09:23:41 UTC 2022 - Daniel Garcia <daniel.garcia@suse.com> Mon Oct 10 09:23:41 UTC 2022 - Daniel Garcia <daniel.garcia@suse.com>

View File

@@ -16,8 +16,6 @@
# #
%{?!python_module:%define python_module() python3-%{**}}
%define skip_python2 1
%define pyname pytest-aiohttp %define pyname pytest-aiohttp
Name: python-pytest-aiohttp Name: python-pytest-aiohttp
Version: 1.0.4 Version: 1.0.4
@@ -28,20 +26,23 @@ Group: Development/Languages/Python
URL: https://github.com/aio-libs/pytest-aiohttp URL: https://github.com/aio-libs/pytest-aiohttp
Source: https://files.pythonhosted.org/packages/source/p/pytest-aiohttp/pytest-aiohttp-%{version}.tar.gz 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 aiohttp >= 3.8.1}
BuildRequires: %{python_module base >= 3.7}
BuildRequires: %{python_module pip} BuildRequires: %{python_module pip}
BuildRequires: %{python_module pytest-asyncio} BuildRequires: %{python_module pytest >= 6.1.0}
BuildRequires: %{python_module pytest} BuildRequires: %{python_module pytest-asyncio >= 0.17.2}
BuildRequires: %{python_module setuptools_scm >= 6.2}
BuildRequires: %{python_module setuptools} BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module wheel} BuildRequires: %{python_module wheel}
BuildRequires: fdupes BuildRequires: fdupes
BuildRequires: python-rpm-macros BuildRequires: python-rpm-macros
Requires: python-aiohttp >= 2.3.5 Requires: python-aiohttp >= 3.8.1
Requires: python-pytest Requires: python-pytest >= 6.1.0
Requires: python-pytest-asyncio >= 0.17.2
BuildArch: noarch BuildArch: noarch
%python_subpackages %python_subpackages
%description %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 %prep
%setup -q -n %{pyname}-%{version} %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} %python_expand %fdupes %{buildroot}%{$python_sitelib}
%check %check
# there are no tests %pytest
%files %{python_files} %files %{python_files}
%license LICENSE %license LICENSE
%doc README.rst %doc README.rst
%{python_sitelib}/* %{python_sitelib}/pytest_aiohttp
%{python_sitelib}/pytest_aiohttp-%{version}*-info
%changelog %changelog