Accepting request 854910 from home:mcalabkova:branches:devel:languages:python
- Fixed the testsuite and updated dependencies OBS-URL: https://build.opensuse.org/request/show/854910 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-urllib3?expand=0&rev=106
This commit is contained in:
parent
39b831d5b8
commit
36a5e3eac9
@ -1,3 +1,8 @@
|
||||
-------------------------------------------------------------------
|
||||
Fri Dec 11 14:18:57 UTC 2020 - Markéta Machová <mmachova@suse.com>
|
||||
|
||||
- Fixed the testsuite and updated dependencies
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Nov 26 09:02:30 UTC 2020 - Dirk Mueller <dmueller@suse.com>
|
||||
|
||||
|
@ -46,29 +46,28 @@ Requires: ca-certificates-mozilla
|
||||
Requires: python-certifi
|
||||
Requires: python-cryptography >= 1.3.4
|
||||
Requires: python-idna >= 2.0.0
|
||||
Requires: python-pyOpenSSL
|
||||
Requires: python-pyOpenSSL >= 0.14
|
||||
Requires: python-six >= 1.12.0
|
||||
Recommends: python-PySocks >= 1.5.6
|
||||
Recommends: python-brotlipy >= 0.6.0
|
||||
BuildArch: noarch
|
||||
# for SSL module on older distros
|
||||
%if 0%{?suse_version} < 1500
|
||||
BuildRequires: %{oldpython}
|
||||
%endif
|
||||
%if %{with test}
|
||||
BuildRequires: %{python_module PySocks}
|
||||
BuildRequires: %{python_module PySocks >= 1.5.6}
|
||||
BuildRequires: %{python_module brotlipy >= 0.6.0}
|
||||
BuildRequires: %{python_module certifi}
|
||||
BuildRequires: %{python_module cryptography >= 1.3.4}
|
||||
BuildRequires: %{python_module idna >= 2.0.0}
|
||||
BuildRequires: %{python_module mock >= 1.3.0}
|
||||
BuildRequires: %{python_module mock}
|
||||
BuildRequires: %{python_module psutil}
|
||||
BuildRequires: %{python_module pytest-freezegun}
|
||||
BuildRequires: %{python_module pytest-timeout}
|
||||
BuildRequires: %{python_module pytest}
|
||||
BuildRequires: %{python_module six >= 1.12.0}
|
||||
BuildRequires: %{python_module tornado < 6}
|
||||
BuildRequires: %{python_module python-dateutil}
|
||||
BuildRequires: %{python_module tornado >= 6}
|
||||
BuildRequires: %{python_module trustme >= 0.5.3}
|
||||
BuildRequires: %{python_module urllib3 >= %{version}}
|
||||
%endif
|
||||
Recommends: python-PySocks >= 1.5.6
|
||||
Recommends: python-brotlipy >= 0.6.0
|
||||
%python_subpackages
|
||||
|
||||
%description
|
||||
@ -128,18 +127,13 @@ ln -sf %{python3_sitelib}/__pycache__/six.cpython-%{python3_version_nodots}.pyc
|
||||
|
||||
%if %{with test}
|
||||
%check
|
||||
skiplist='not test_select_interrupt_exception and not test_selector_error and not timeout and not test_request_host_header_ignores_fqdn_dot and not test_dotted_fqdn and not TestImportWithoutSSL and not test_ssl_failed_fingerprint_verification'
|
||||
case $(uname -m) in
|
||||
ppc*)
|
||||
skiplist="$skiplist and not test_select_timing and not test_select_multiple_interrupts_with_event and not test_interrupt_wait_for_read_with_event and not test_select_interrupt_with_event";;
|
||||
esac
|
||||
# the certificate validation is much stricter in new openssl so skip
|
||||
# tests which would not validate it
|
||||
skiplist="$skiplist and not test_client_no_intermediate"
|
||||
|
||||
# still broken with new ssl
|
||||
skiplist='test_import_urllib3'
|
||||
# skip some randomly failing tests (mostly on i586, but sometimes they fail on other architectures)
|
||||
skiplist="$skiplist or test_ssl_read_timeout or test_ssl_failed_fingerprint_verification or test_ssl_custom_validation_failure_terminates"
|
||||
export PYTHONDONTWRITEBYTECODE=1
|
||||
export LANG="en_US.UTF8"
|
||||
%pytest -k "${skiplist}"
|
||||
%pytest -k "not (${skiplist})"
|
||||
%endif
|
||||
|
||||
%if ! %{with test}
|
||||
|
Loading…
Reference in New Issue
Block a user