- Update to 1.25.2:

* Change is_ipaddress to not detect IPvFuture addresses. (Pull #1583)
  * Change parse_url to percent-encode invalid characters within the path, query, and target components. (Pull #1586)
  * Add support for Google's Brotli package. (Pull #1572, Pull #1579)
  * Upgrade bundled rfc3986 to v1.3.1 (Pull #1578)
- Require all the deps from the secure list rather than Recommend.
  This makes the check to be run always and ensure the urls are
  "secure".
- Remove ndg-httpsclient as it is not needed since 2015

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-urllib3?expand=0&rev=63
This commit is contained in:
Tomáš Chvátal 2019-05-06 11:21:12 +00:00 committed by Git OBS Bridge
parent ccbae0c7b5
commit e397a5c391
4 changed files with 29 additions and 21 deletions

View File

@ -1,3 +1,16 @@
-------------------------------------------------------------------
Mon May 6 11:18:36 UTC 2019 - Tomáš Chvátal <tchvatal@suse.com>
- Update to 1.25.2:
* Change is_ipaddress to not detect IPvFuture addresses. (Pull #1583)
* Change parse_url to percent-encode invalid characters within the path, query, and target components. (Pull #1586)
* Add support for Google's Brotli package. (Pull #1572, Pull #1579)
* Upgrade bundled rfc3986 to v1.3.1 (Pull #1578)
- Require all the deps from the secure list rather than Recommend.
This makes the check to be run always and ensure the urls are
"secure".
- Remove ndg-httpsclient as it is not needed since 2015
-------------------------------------------------------------------
Tue Apr 23 10:27:36 UTC 2019 - Tomáš Chvátal <tchvatal@suse.com>

View File

@ -18,20 +18,16 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%define oldpython python
%global flavor @BUILD_FLAVOR@%{nil}
%if "%{flavor}" == "test"
%define test 1
%define psuffix -test
%bcond_without test
%else
%define psuffix %{nil}
%bcond_with test
%endif
%if %{with test}
Name: python-urllib3-%{flavor}
%else
Name: python-urllib3
%endif
Version: 1.25
Name: python-urllib3%{psuffix}
Version: 1.25.2
Release: 0
Summary: HTTP library with thread-safe connection pooling, file post, and more
License: MIT
@ -43,11 +39,20 @@ Source: https://files.pythonhosted.org/packages/source/u/urllib3/urllib3
Patch2: urllib3-ssl-default-context.patch
# PATCH-FIX-UPSTREAM python-urllib3-recent-date.patch gh#shazow/urllib3#1303, boo#1074247 dimstar@opensuse.org -- Fix test suite, use correct date
Patch4: python-urllib3-recent-date.patch
# for SSL module on older distros
BuildRequires: %{oldpython}
BuildRequires: %{python_module PySocks}
BuildRequires: %{python_module psutil}
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
BuildRequires: python2-ipaddress
#!BuildIgnore: python-requests
Requires: ca-certificates-mozilla
Requires: python-cryptography
Requires: python-idna
Requires: python-pyOpenSSL
BuildArch: noarch
%if %{with test}
BuildRequires: %{python_module brotlipy}
BuildRequires: %{python_module idna}
@ -56,19 +61,9 @@ BuildRequires: %{python_module pytest}
BuildRequires: %{python_module tornado >= 4.2.1}
BuildRequires: %{python_module urllib3 >= %{version}}
%endif
#!BuildIgnore: python-requests
BuildArch: noarch
%if 0%{?suse_version} >= 1000 || 0%{?fedora_version} >= 24
Recommends: ca-certificates-mozilla
Recommends: python-cryptography
Recommends: python-idna
Recommends: python-ndg-httpsclient
Recommends: python-pyOpenSSL
Recommends: python-brotlipy
%endif
# for SSL module on older distros
BuildRequires: %{oldpython}
BuildRequires: python2-ipaddress
%ifpython2
Requires: python-ipaddress
%endif

3
urllib3-1.25.2.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:a53063d8b9210a7bdec15e7b272776b9d42b2fd6816401a0d43006ad2f9902db
size 261479

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:f03eeb431c77b88cf8747d47e94233a91d0e0fdae1cf09e0b21405a885700266
size 409895