Accepting request 623059 from home:mimi_vx:branches:devel:languages:python

- make multibuild package to resolve circular deps on tests


- make multibuild package to resolve circular deps on tests

- update to version 2.19.1:
  * Fixed issue where status_codes.py’s init function failed trying
    to append to a __doc__ value of None.
- update to version 2.19.0:
  * Improvements
    + Warn about possible slowdown with cryptography version < 1.3.4
    + Check host in proxy URL, before forwarding request to adapter.
    + Maintain fragments properly across redirects. (RFC7231 7.1.2)
    + Removed use of cgi module to expedite library load time.
    + Added support for SHA-256 and SHA-512 digest auth algorithms.
    + Minor performance improvement to Request.content.
    + Migrate to using collections.abc for 3.7 compatibility.
  * Bugfixes
    + Parsing empty Link headers with parse_header_links() no longer
      return one bogus entry.
    + Fixed issue where loading the default certificate bundle from
      a zip archive would raise an IOError.
    + Fixed issue with unexpected ImportError on windows system
      which do not support winreg module.
    + DNS resolution in proxy bypass no longer includes the username
      and password in the request. This also fixes the issue of DNS
      queries failing on macOS.
    + Properly normalize adapter prefixes for url comparison.
    + Passing None as a file pointer to the files param no longer
      raises an exception.

OBS-URL: https://build.opensuse.org/request/show/623059
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-requests?expand=0&rev=109
This commit is contained in:
Tomáš Chvátal 2018-07-16 08:02:35 +00:00 committed by Git OBS Bridge
parent 8e0d77f4df
commit df7ea9c472
4 changed files with 1326 additions and 5 deletions

3
_multibuild Normal file
View File

@ -0,0 +1,3 @@
<multibuild>
<package>test</package>
</multibuild>

1300
python-requests-test.changes Normal file

File diff suppressed because it is too large Load Diff

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Mon Jul 16 00:09:54 UTC 2018 - mimi.vx@gmail.com
- make multibuild package to resolve circular deps on tests
------------------------------------------------------------------- -------------------------------------------------------------------
Mon Jul 2 00:43:03 UTC 2018 - stefan.bruens@rwth-aachen.de Mon Jul 2 00:43:03 UTC 2018 - stefan.bruens@rwth-aachen.de

View File

@ -16,8 +16,18 @@
# #
%global flavor @BUILD_FLAVOR@%{nil}
%define test 0
%if "%{flavor}" == "test"
%define test 1
%endif
%{?!python_module:%define python_module() python-%{**} python3-%{**}} %{?!python_module:%define python_module() python-%{**} python3-%{**}}
%if %{test}
Name: python-requests-%{flavor}
%else
Name: python-requests Name: python-requests
%endif
Version: 2.19.1 Version: 2.19.1
Release: 0 Release: 0
Summary: Awesome Python HTTP Library That's Actually Usable Summary: Awesome Python HTTP Library That's Actually Usable
@ -29,21 +39,24 @@ BuildRequires: %{python_module certifi}
BuildRequires: %{python_module devel} BuildRequires: %{python_module devel}
BuildRequires: %{python_module py} BuildRequires: %{python_module py}
BuildRequires: %{python_module setuptools} BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module urllib3 >= 1.21.1}
BuildRequires: %{python_module urllib3 < 1.24} BuildRequires: %{python_module urllib3 < 1.24}
BuildRequires: %{python_module urllib3 >= 1.21.1}
BuildRequires: ca-certificates BuildRequires: ca-certificates
BuildRequires: fdupes BuildRequires: fdupes
BuildRequires: python BuildRequires: python
BuildRequires: python-rpm-macros BuildRequires: python-rpm-macros
%if %{test}
# SECTION test requirements # SECTION test requirements
BuildRequires: %{python_module PySocks >= 1.5.6} BuildRequires: %{python_module PySocks >= 1.5.6}
BuildRequires: %{python_module chardet >= 3.0.2} BuildRequires: %{python_module chardet >= 3.0.2}
BuildRequires: %{python_module idna >= 2.5}
BuildRequires: %{python_module idna < 2.8} BuildRequires: %{python_module idna < 2.8}
BuildRequires: %{python_module idna >= 2.5}
BuildRequires: %{python_module pytest-httpbin} BuildRequires: %{python_module pytest-httpbin}
BuildRequires: %{python_module pytest-mock} BuildRequires: %{python_module pytest-mock}
BuildRequires: %{python_module pytest} BuildRequires: %{python_module pytest}
Requires: this-is-only-for-build-envs
# /SECTION # /SECTION
%endif
Requires: ca-certificates Requires: ca-certificates
Requires: python Requires: python
Recommends: ca-certificates-mozilla Recommends: ca-certificates-mozilla
@ -52,11 +65,11 @@ Recommends: python-cryptography >= 1.3.4
Recommends: python-PySocks >= 1.5.6 Recommends: python-PySocks >= 1.5.6
Requires: python-certifi >= 2017.4.17 Requires: python-certifi >= 2017.4.17
Requires: python-chardet >= 3.0.2 Requires: python-chardet >= 3.0.2
Requires: python-idna >= 2.5
Requires: python-idna < 2.8 Requires: python-idna < 2.8
Requires: python-idna >= 2.5
Requires: python-py Requires: python-py
Requires: python-urllib3 >= 1.21.1
Requires: python-urllib3 < 1.24 Requires: python-urllib3 < 1.24
Requires: python-urllib3 >= 1.21.1
BuildArch: noarch BuildArch: noarch
%python_subpackages %python_subpackages
@ -100,7 +113,7 @@ test ! -e %{buildroot}%{python3_sitelib}/requests/packages/urllib3
# NOTE(aplanas) If we do not have the certificates, we some of the # NOTE(aplanas) If we do not have the certificates, we some of the
# tests will fail, so for now we only run the tests in openSUSE # tests will fail, so for now we only run the tests in openSUSE
%if 0%{?suse_version} %if 0%{?suse_version} && %{test}
%check %check
touch Pipfile touch Pipfile
# exclude tests connecting to TARPIT # exclude tests connecting to TARPIT