Accepting request 965428 from devel:languages:python

OBS-URL: https://build.opensuse.org/request/show/965428
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-aiohttp?expand=0&rev=27
This commit is contained in:
Dominique Leuenberger 2022-03-31 15:18:26 +00:00 committed by Git OBS Bridge
commit 765d17ddfe
3 changed files with 24 additions and 5 deletions

View File

@ -0,0 +1,12 @@
Index: aiohttp-3.8.1/setup.cfg
===================================================================
--- aiohttp-3.8.1.orig/setup.cfg
+++ aiohttp-3.8.1/setup.cfg
@@ -119,6 +119,7 @@ filterwarnings =
ignore:Exception ignored in. <function ClientSession.__del__ at 0x.:pytest.PytestUnraisableExceptionWarning:_pytest.unraisableexception
ignore:Exception ignored in. <_io.FileIO .closed.>:pytest.PytestUnraisableExceptionWarning:_pytest.unraisableexception
ignore:The loop argument is deprecated since Python 3.8, and scheduled for removal in Python 3.10.:DeprecationWarning:asyncio
+ ignore:Passing None has been deprecated:pytest.PytestDeprecationWarning
junit_suite_name = aiohttp_test_suite
norecursedirs = dist docs build .tox .eggs
minversion = 3.8.2

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Sun Mar 27 19:01:09 UTC 2022 - Ben Greiner <code@bnavigator.de>
- Add ignore-pytest-deprecationwarning.patch
* gh#aio-libs/aiohttp#6663
-------------------------------------------------------------------
Sat Dec 11 19:18:47 UTC 2021 - Ben Greiner <code@bnavigator.de>

View File

@ -1,7 +1,7 @@
#
# spec file for package python-aiohttp
#
# Copyright (c) 2021 SUSE LLC
# Copyright (c) 2022 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -27,6 +27,8 @@ Summary: Asynchronous HTTP client/server framework
License: Apache-2.0
URL: https://github.com/aio-libs/aiohttp
Source: https://files.pythonhosted.org/packages/source/a/aiohttp/aiohttp-%{version}.tar.gz
# PATCH-FIX-OPENSUSE ignore-pytest-deprecationwarning.patch -- gh#aio-libs/aiohttp#6663
Patch0: ignore-pytest-deprecationwarning.patch
BuildRequires: %{python_module Cython}
BuildRequires: %{python_module aiosignal >= 1.1.2}
BuildRequires: %{python_module async_timeout >= 4.0}
@ -74,7 +76,7 @@ BuildRequires: %{python_module trustme}
# /SECTION
# SECTION docs
%if %{with docs}
BuildRequires: %{python_module MarkupSafe}
BuildRequires: python3-MarkupSafe
BuildRequires: python3-Pygments >= 2.1
BuildRequires: python3-Sphinx
BuildRequires: python3-aiohttp-theme
@ -124,15 +126,14 @@ rm -r %{buildroot}%{$python_sitearch}/aiohttp/.hash
%check
donttest="test_aiohttp_request_coroutine or test_mark_formdata_as_processed or test_aiohttp_plugin_async"
python36_donttest=" or test_read_boundary_with_incomplete_chunk"
# no name resolution
donttest+=" or test_client_session_timeout_zero or test_requote_redirect_url_default"
# flaky
donttest+=" or test_https_proxy_unsupported_tls_in_tls"
%if 0%{?python3_version_nodots} == 36
donttest+="$python36_donttest"
donttest+=" or test_read_boundary_with_incomplete_chunk"
%endif
%pytest_arch --ignore ./aiohttp -rsEf -k "not ($donttest ${$python_donttest})"
%pytest_arch --ignore ./aiohttp -rsEf -k "not ($donttest)"
%files %{python_files}
%license LICENSE.txt