pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/devel/py-requests py-requests: updated to 2.20.0



details:   https://anonhg.NetBSD.org/pkgsrc/rev/1d6a7c5fd9b1
branches:  trunk
changeset: 324507:1d6a7c5fd9b1
user:      adam <adam%pkgsrc.org@localhost>
date:      Mon Oct 22 07:55:36 2018 +0000

description:
py-requests: updated to 2.20.0

2.20.0:
Bugfixes
Content-Type header parsing is now case-insensitive (e.g. charset=utf8 v Charset=utf8).
Fixed exception leak where certain redirect urls would raise uncaught urllib3 exceptions.
Requests removes Authorization header from requests redirected from https to http on the same hostname. (CVE-2018-18074)
should_bypass_proxies now handles URIs without hostnames (e.g. files).

Dependencies
Requests now supports urllib3 v1.24.

Deprecations
Requests has officially stopped support for Python 2.6.

diffstat:

 devel/py-requests/Makefile                               |   4 +-
 devel/py-requests/distinfo                               |  14 +++++-----
 devel/py-requests/patches/patch-requests_____init____.py |   8 +++---
 devel/py-requests/patches/patch-setup.py                 |  19 ++++++++-------
 4 files changed, 23 insertions(+), 22 deletions(-)

diffs (95 lines):

diff -r 99bc9a83de91 -r 1d6a7c5fd9b1 devel/py-requests/Makefile
--- a/devel/py-requests/Makefile        Mon Oct 22 04:33:31 2018 +0000
+++ b/devel/py-requests/Makefile        Mon Oct 22 07:55:36 2018 +0000
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.39 2018/06/16 13:08:32 adam Exp $
+# $NetBSD: Makefile,v 1.40 2018/10/22 07:55:36 adam Exp $
 
-DISTNAME=      requests-2.19.1
+DISTNAME=      requests-2.20.0
 PKGNAME=       ${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=    devel www python
 MASTER_SITES=  ${MASTER_SITE_PYPI:=r/requests/}
diff -r 99bc9a83de91 -r 1d6a7c5fd9b1 devel/py-requests/distinfo
--- a/devel/py-requests/distinfo        Mon Oct 22 04:33:31 2018 +0000
+++ b/devel/py-requests/distinfo        Mon Oct 22 07:55:36 2018 +0000
@@ -1,8 +1,8 @@
-$NetBSD: distinfo,v 1.31 2018/06/16 13:08:32 adam Exp $
+$NetBSD: distinfo,v 1.32 2018/10/22 07:55:36 adam Exp $
 
-SHA1 (requests-2.19.1.tar.gz) = b6e6ed992c86835aa1a7d7a81fec2aee0d385416
-RMD160 (requests-2.19.1.tar.gz) = c61074e9faf32196083c6124c5db5235e7fe6b91
-SHA512 (requests-2.19.1.tar.gz) = deef2662227497b472f6e7eb7f0ee468c772069fc66552f71d80e5a12af62a187f8bc6a8a78531915e824c7f277d0db61c1534c89d13d473f68504f0bd6edf47
-Size (requests-2.19.1.tar.gz) = 131068 bytes
-SHA1 (patch-requests_____init____.py) = ffef725d0d3b1f009e76e252c70260ae74bd1ed7
-SHA1 (patch-setup.py) = fb8c36a7b2508d521388b5ff24626b04b2eca118
+SHA1 (requests-2.20.0.tar.gz) = 814a0954406fa7826f5a237865c8705d7e01edea
+RMD160 (requests-2.20.0.tar.gz) = c1aa0e3e8daaaa9cd6ad717470b84d10d88fba2e
+SHA512 (requests-2.20.0.tar.gz) = d9d44ed56f868484e36686dee7a2507d8fef45f9cbd861971bb2b6956c7aecb20988f4830017f111027b5eebd00541805797820b0a455694fdbd1b5dce8907d2
+Size (requests-2.20.0.tar.gz) = 111179 bytes
+SHA1 (patch-requests_____init____.py) = e704f86809821831071301748bb13e5b1d0e971b
+SHA1 (patch-setup.py) = fa562634ceb651882f8f03756659c64b8e4734b1
diff -r 99bc9a83de91 -r 1d6a7c5fd9b1 devel/py-requests/patches/patch-requests_____init____.py
--- a/devel/py-requests/patches/patch-requests_____init____.py  Mon Oct 22 04:33:31 2018 +0000
+++ b/devel/py-requests/patches/patch-requests_____init____.py  Mon Oct 22 07:55:36 2018 +0000
@@ -1,4 +1,4 @@
-$NetBSD: patch-requests_____init____.py,v 1.3 2018/06/16 13:08:32 adam Exp $
+$NetBSD: patch-requests_____init____.py,v 1.4 2018/10/22 07:55:36 adam Exp $
 
 * Allow newer py-urllib3 and py-chardet.
 * Add workaround for segfault of security/py-certbot on NetBSD/amd64
@@ -7,13 +7,13 @@
 
   This is introduced in https://github.com/shazow/urllib3
 
---- requests/__init__.py.orig  2018-06-12 14:39:23.000000000 +0000
+--- requests/__init__.py.orig  2018-10-18 15:41:45.000000000 +0000
 +++ requests/__init__.py
 @@ -60,15 +60,12 @@ def check_compatibility(urllib3_version,
-     # urllib3 >= 1.21.1, <= 1.23
+     # urllib3 >= 1.21.1, <= 1.24
      assert major == 1
      assert minor >= 21
--    assert minor <= 23
+-    assert minor <= 24
  
      # Check chardet for compatibility.
      major, minor, patch = chardet_version.split('.')[:3]
diff -r 99bc9a83de91 -r 1d6a7c5fd9b1 devel/py-requests/patches/patch-setup.py
--- a/devel/py-requests/patches/patch-setup.py  Mon Oct 22 04:33:31 2018 +0000
+++ b/devel/py-requests/patches/patch-setup.py  Mon Oct 22 07:55:36 2018 +0000
@@ -1,24 +1,25 @@
-$NetBSD: patch-setup.py,v 1.5 2018/06/16 13:08:32 adam Exp $
+$NetBSD: patch-setup.py,v 1.6 2018/10/22 07:55:36 adam Exp $
 
 Allow newer versions of dependencies.
 
---- setup.py.orig      2018-06-12 14:39:23.000000000 +0000
+--- setup.py.orig      2018-10-18 15:41:46.000000000 +0000
 +++ setup.py
-@@ -49,13 +49,13 @@ else:
+@@ -42,14 +42,14 @@ if sys.argv[-1] == 'publish':
  packages = ['requests']
  
  requires = [
 -    'chardet>=3.0.2,<3.1.0',
 -    'idna>=2.5,<2.8',
--    'urllib3>=1.21.1,<1.24',
+-    'urllib3>=1.21.1,<1.25',
 +    'chardet>=3.0.2',
 +    'idna>=2.5',
 +    'urllib3>=1.21.1',
      'certifi>=2017.4.17'
  
  ]
--test_requirements = ['pytest-httpbin==0.0.7', 'pytest-cov', 'pytest-mock', 'pytest-xdist', 'PySocks>=1.5.6, !=1.5.7', 'pytest>=2.8.0']
-+test_requirements = ['pytest-httpbin>=0.0.7', 'pytest-cov', 'pytest-mock', 'pytest-xdist', 'PySocks>=1.5.6, !=1.5.7', 'pytest>=2.8.0']
- 
- about = {}
- with open(os.path.join(here, 'requests', '__version__.py'), 'r', 'utf-8') as f:
+ test_requirements = [
+-    'pytest-httpbin==0.0.7',
++    'pytest-httpbin>=0.0.7',
+     'pytest-cov',
+     'pytest-mock',
+     'pytest-xdist',



Home | Main Index | Thread Index | Old Index