diff options
author | adam <adam@pkgsrc.org> | 2020-06-19 20:45:41 +0000 |
---|---|---|
committer | adam <adam@pkgsrc.org> | 2020-06-19 20:45:41 +0000 |
commit | c2ad5a11d92e9605e7c5236c6189bdf305c0eaa9 (patch) | |
tree | ee798981a4944c5ecd4d9a89a17314e60959d8f5 /devel | |
parent | 8a6ebb5f93109dc2f62f861be3d30f38f302f645 (diff) | |
download | pkgsrc-c2ad5a11d92e9605e7c5236c6189bdf305c0eaa9.tar.gz |
py-requests: updated to 2.24.0
2.24.0:
Improvements
pyOpenSSL TLS implementation is now only used if Python either doesn’t have an ssl module or doesn’t support SNI. Previously pyOpenSSL was unconditionally used if available. This applies even if pyOpenSSL is installed via the requests[security] extra
Redirect resolution should now only occur when allow_redirects is True.
No longer perform unnecessary Content-Length calculation for requests that won’t use it.
Diffstat (limited to 'devel')
-rw-r--r-- | devel/py-requests/Makefile | 6 | ||||
-rw-r--r-- | devel/py-requests/distinfo | 12 | ||||
-rw-r--r-- | devel/py-requests/patches/patch-requests_____init____.py | 18 |
3 files changed, 18 insertions, 18 deletions
diff --git a/devel/py-requests/Makefile b/devel/py-requests/Makefile index 8af83854bdc..96585ca83d5 100644 --- a/devel/py-requests/Makefile +++ b/devel/py-requests/Makefile @@ -1,12 +1,12 @@ -# $NetBSD: Makefile,v 1.46 2020/05/16 16:35:24 adam Exp $ +# $NetBSD: Makefile,v 1.47 2020/06/19 20:45:41 adam Exp $ -DISTNAME= requests-2.23.0 +DISTNAME= requests-2.24.0 PKGNAME= ${PYPKGPREFIX}-${DISTNAME} CATEGORIES= devel www python MASTER_SITES= ${MASTER_SITE_PYPI:=r/requests/} MAINTAINER= imil@NetBSD.org -HOMEPAGE= http://python-requests.org/ +HOMEPAGE= https://requests.readthedocs.io/ COMMENT= HTTP library, written in Python, for human beings LICENSE= apache-2.0 diff --git a/devel/py-requests/distinfo b/devel/py-requests/distinfo index 0042fb1ef3c..97214c90d92 100644 --- a/devel/py-requests/distinfo +++ b/devel/py-requests/distinfo @@ -1,8 +1,8 @@ -$NetBSD: distinfo,v 1.36 2020/02/21 06:42:59 adam Exp $ +$NetBSD: distinfo,v 1.37 2020/06/19 20:45:41 adam Exp $ -SHA1 (requests-2.23.0.tar.gz) = ab724cae3ce1f5175d34598c14e010f770eeac4c -RMD160 (requests-2.23.0.tar.gz) = 676d94a3b4ee6b20af19bf09481aded34a89b046 -SHA512 (requests-2.23.0.tar.gz) = a0f7db5cc9ce67af9f6f81b72e41491735a102f2a1da2fbde98e279846e2140cd26b6370aa5ec79c148c397885a7ae2bbce45c4587215f510dd02b8ac57cb46e -Size (requests-2.23.0.tar.gz) = 114327 bytes -SHA1 (patch-requests_____init____.py) = 39ce838223ca91c36a7a5310b76b70aa7a154c99 +SHA1 (requests-2.24.0.tar.gz) = 9144742bf54db5f2a74a3e724cec3c19431b3539 +RMD160 (requests-2.24.0.tar.gz) = 48f76a63e9f1e11ed97d0f51807692bd8b5a714e +SHA512 (requests-2.24.0.tar.gz) = 46ca8ab70eb39be8398c242404b9b3ffb6baddd5c78eaad125b55c719154eb8c7b6a737a8dc587b0cb51b3b9a074abaa8b2ff347a64d38f4f90cdba4db16a119 +Size (requests-2.24.0.tar.gz) = 115071 bytes +SHA1 (patch-requests_____init____.py) = e71da60ea3a047a4f8bc0dbbc43bd4bec2300cfb SHA1 (patch-setup.py) = 1b6ba462a0c3d6079f7d0fc738ba8000b6e892b4 diff --git a/devel/py-requests/patches/patch-requests_____init____.py b/devel/py-requests/patches/patch-requests_____init____.py index bf78bd77ed7..4758f63d47b 100644 --- a/devel/py-requests/patches/patch-requests_____init____.py +++ b/devel/py-requests/patches/patch-requests_____init____.py @@ -1,4 +1,4 @@ -$NetBSD: patch-requests_____init____.py,v 1.5 2019/05/17 08:34:38 adam Exp $ +$NetBSD: patch-requests_____init____.py,v 1.6 2020/06/19 20:45:42 adam Exp $ * Allow newer py-urllib3 and py-chardet. * Add workaround for segfault of security/py-certbot on NetBSD/amd64 @@ -7,7 +7,7 @@ $NetBSD: patch-requests_____init____.py,v 1.5 2019/05/17 08:34:38 adam Exp $ This is introduced in https://github.com/shazow/urllib3 ---- requests/__init__.py.orig 2019-05-16 14:22:45.000000000 +0000 +--- requests/__init__.py.orig 2020-05-09 04:43:25.000000000 +0000 +++ requests/__init__.py @@ -60,15 +60,12 @@ def check_compatibility(urllib3_version, # urllib3 >= 1.21.1, <= 1.25 @@ -25,11 +25,11 @@ $NetBSD: patch-requests_____init____.py,v 1.5 2019/05/17 08:34:38 adam Exp $ 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() +@@ -101,7 +98,6 @@ try: - # Check cryptography version - from cryptography import __version__ as cryptography_version + if not getattr(ssl, "HAS_SNI", False): + from urllib3.contrib import pyopenssl +- pyopenssl.inject_into_urllib3() + + # Check cryptography version + from cryptography import __version__ as cryptography_version |