pkgsrc-Changes archive

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

CVS commit: pkgsrc/devel/py-requests



Module Name:    pkgsrc
Committed By:   adam
Date:           Sat Jun 16 13:08:32 UTC 2018

Modified Files:
        pkgsrc/devel/py-requests: Makefile distinfo
        pkgsrc/devel/py-requests/patches: patch-requests_____init____.py
            patch-setup.py

Log Message:
py-requests: updated to 2.19.1

2.19.1:
Bugfixes
- Fixed issue where status_codes.py's init function failed trying to append to
  a __doc__ value of None.

2.19.0:
Improvements
- Warn user about possible slowdown when using cryptography version < 1.3.4
- Check for invalid host in proxy URL, before forwarding request to adapter.
- Fragments are now properly maintained 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.
- Calling copy on a RequestsCookieJar will now preserve the cookie policy correctly.


To generate a diff of this commit:
cvs rdiff -u -r1.38 -r1.39 pkgsrc/devel/py-requests/Makefile
cvs rdiff -u -r1.30 -r1.31 pkgsrc/devel/py-requests/distinfo
cvs rdiff -u -r1.2 -r1.3 \
    pkgsrc/devel/py-requests/patches/patch-requests_____init____.py
cvs rdiff -u -r1.4 -r1.5 pkgsrc/devel/py-requests/patches/patch-setup.py

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/devel/py-requests/Makefile
diff -u pkgsrc/devel/py-requests/Makefile:1.38 pkgsrc/devel/py-requests/Makefile:1.39
--- pkgsrc/devel/py-requests/Makefile:1.38      Wed May 23 09:59:33 2018
+++ pkgsrc/devel/py-requests/Makefile   Sat Jun 16 13:08:32 2018
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.38 2018/05/23 09:59:33 adam Exp $
+# $NetBSD: Makefile,v 1.39 2018/06/16 13:08:32 adam Exp $
 
-DISTNAME=      requests-2.18.4
+DISTNAME=      requests-2.19.1
 PKGNAME=       ${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=    devel www python
 MASTER_SITES=  ${MASTER_SITE_PYPI:=r/requests/}

Index: pkgsrc/devel/py-requests/distinfo
diff -u pkgsrc/devel/py-requests/distinfo:1.30 pkgsrc/devel/py-requests/distinfo:1.31
--- pkgsrc/devel/py-requests/distinfo:1.30      Wed Aug 16 07:17:58 2017
+++ pkgsrc/devel/py-requests/distinfo   Sat Jun 16 13:08:32 2018
@@ -1,8 +1,8 @@
-$NetBSD: distinfo,v 1.30 2017/08/16 07:17:58 adam Exp $
+$NetBSD: distinfo,v 1.31 2018/06/16 13:08:32 adam Exp $
 
-SHA1 (requests-2.18.4.tar.gz) = f5e1dbba5a12ff2df063333fd2bf071e24659b63
-RMD160 (requests-2.18.4.tar.gz) = 8217810eff11d3364445efb9f723772adeb80e48
-SHA512 (requests-2.18.4.tar.gz) = 5c59bed82ac1094194f04a973b299f7d783264d372abd7a5229295bccc6b2f7a9f082ee4b0dff348e9c22cf68ddbd7cb67f60fd0b7d9eda41c02e40d075e9472
-Size (requests-2.18.4.tar.gz) = 126224 bytes
-SHA1 (patch-requests_____init____.py) = 733037737da7f012030e89091d1b3ca28c3d7657
-SHA1 (patch-setup.py) = 855002a41e0eee403e1938b714145cb0598b30c1
+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

Index: pkgsrc/devel/py-requests/patches/patch-requests_____init____.py
diff -u pkgsrc/devel/py-requests/patches/patch-requests_____init____.py:1.2 pkgsrc/devel/py-requests/patches/patch-requests_____init____.py:1.3
--- pkgsrc/devel/py-requests/patches/patch-requests_____init____.py:1.2 Mon May 29 10:43:42 2017
+++ pkgsrc/devel/py-requests/patches/patch-requests_____init____.py     Sat Jun 16 13:08:32 2018
@@ -1,33 +1,35 @@
-$NetBSD: patch-requests_____init____.py,v 1.2 2017/05/29 10:43:42 adam Exp $
+$NetBSD: patch-requests_____init____.py,v 1.3 2018/06/16 13:08:32 adam Exp $
 
+* Allow newer py-urllib3 and py-chardet.
 * Add workaround for segfault of security/py-certbot on NetBSD/amd64
   7.0.2 and 7.99.53. It seems that the real root cause is in
   security/py-OpenSSL or OpenSSL. However I do not find how to fix it.
 
   This is introduced in https://github.com/shazow/urllib3
 
-commit 770105ebda5a3a495c944baba51a61fdba1814c7
-Author: Cory Benfield <lukasaoz%gmail.com@localhost>
-Date:   Tue Jul 19 13:00:31 2016 +0100
-
-    Clean up some bugs.
-
-via https://github.com/kennethreitz/requests
-
-t 99fa7becf263473c7bfc1998b41c2c6c80a0f499
-Author: Cory Benfield <lukasaoz%gmail.com@localhost>
-Date:   Tue Nov 15 10:09:11 2016 +0000
-
-    Update urllib3 to 1.19
-
---- requests/__init__.py.orig  2017-05-27 23:15:49.000000000 +0000
+--- requests/__init__.py.orig  2018-06-12 14:39:23.000000000 +0000
 +++ requests/__init__.py
-@@ -76,7 +76,7 @@ except AssertionError:
+@@ -60,15 +60,12 @@ def check_compatibility(urllib3_version,
+     # urllib3 >= 1.21.1, <= 1.23
+     assert major == 1
+     assert minor >= 21
+-    assert minor <= 23
+ 
+     # Check chardet for compatibility.
+     major, minor, patch = chardet_version.split('.')[:3]
+     major, minor, patch = int(major), int(minor), int(patch)
+     # chardet >= 3.0.2, < 3.1.0
+     assert major == 3
+-    assert minor < 1
+-    assert patch >= 2
+ 
+ 
+ def _check_cryptography(cryptography_version):
+@@ -93,7 +90,6 @@ except (AssertionError, ValueError):
  # Attempt to enable urllib3's SNI support, if possible
  try:
      from urllib3.contrib import pyopenssl
 -    pyopenssl.inject_into_urllib3()
-+    #pyopenssl.inject_into_urllib3()
- except ImportError:
-     pass
  
+     # Check cryptography version
+     from cryptography import __version__ as cryptography_version

Index: pkgsrc/devel/py-requests/patches/patch-setup.py
diff -u pkgsrc/devel/py-requests/patches/patch-setup.py:1.4 pkgsrc/devel/py-requests/patches/patch-setup.py:1.5
--- pkgsrc/devel/py-requests/patches/patch-setup.py:1.4 Wed Aug 16 07:17:58 2017
+++ pkgsrc/devel/py-requests/patches/patch-setup.py     Sat Jun 16 13:08:32 2018
@@ -1,16 +1,16 @@
-$NetBSD: patch-setup.py,v 1.4 2017/08/16 07:17:58 adam Exp $
+$NetBSD: patch-setup.py,v 1.5 2018/06/16 13:08:32 adam Exp $
 
 Allow newer versions of dependencies.
 
---- setup.py.orig      2017-08-15 13:19:39.000000000 +0000
+--- setup.py.orig      2018-06-12 14:39:23.000000000 +0000
 +++ setup.py
-@@ -42,13 +42,13 @@ if sys.argv[-1] == 'publish':
+@@ -49,13 +49,13 @@ else:
  packages = ['requests']
  
  requires = [
 -    'chardet>=3.0.2,<3.1.0',
--    'idna>=2.5,<2.7',
--    'urllib3>=1.21.1,<1.23',
+-    'idna>=2.5,<2.8',
+-    'urllib3>=1.21.1,<1.24',
 +    'chardet>=3.0.2',
 +    'idna>=2.5',
 +    'urllib3>=1.21.1',



Home | Main Index | Thread Index | Old Index