14
0
forked from pool/python-Scrapy

Accepting request 959733 from devel:languages:python

OBS-URL: https://build.opensuse.org/request/show/959733
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-Scrapy?expand=0&rev=14
This commit is contained in:
2022-03-06 17:48:43 +00:00
committed by Git OBS Bridge
2 changed files with 9 additions and 11 deletions

View File

@@ -1,3 +1,8 @@
-------------------------------------------------------------------
Fri Mar 4 00:06:54 UTC 2022 - Ben Greiner <code@bnavigator.de>
- Update runtime requirements and test deselections
-------------------------------------------------------------------
Wed Mar 2 22:17:28 UTC 2022 - Matej Cepl <mcepl@suse.com>

View File

@@ -69,6 +69,7 @@ Requires: python-pyOpenSSL >= 16.2.0
Requires: python-queuelib >= 1.4.2
Requires: python-service_identity >= 16.0.0
Requires: python-setuptools
Requires: python-tldextract
Requires: python-w3lib >= 1.17.2
Requires: python-zope.interface >= 4.1.3
Requires(post): update-alternatives
@@ -106,20 +107,12 @@ popd
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
# tests/test_proxy_connect.py: requires mitmproxy == 0.10.1
# tests/test_downloader_handlers_*.py and test_http2_client_protocol.py: no network
# tests/test_command_check.py: twisted dns resolution of example.com error
# no color in obs chroot console
skiplist="test_pformat"
# correct exception but not recognized due to different format
python310_skiplist=" or test_callback_kwargs"
# no online connection to toscrapy.com
skiplist="$skiplist or CheckCommandTest"
%{pytest \
--ignore tests/test_proxy_connect.py \
--ignore tests/test_command_check.py \
--ignore tests/test_downloader_handlers.py \
--ignore tests/test_downloader_handlers_http2.py \
--ignore tests/test_http2_client_protocol.py \
-k "not (${skiplist} ${$python_skiplist})" \
-k "not (${skiplist})" \
-W ignore::DeprecationWarning \
tests}