Source-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.24.0
details: https://anonhg.NetBSD.org/pkgsrc/rev/a1ebfb62ce5b
branches: trunk
changeset: 434623:a1ebfb62ce5b
user: adam <adam%pkgsrc.org@localhost>
date: Fri Jun 19 20:45:41 2020 +0000
description:
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:
devel/py-requests/Makefile | 6 ++--
devel/py-requests/distinfo | 12 +++++-----
devel/py-requests/patches/patch-requests_____init____.py | 18 ++++++++--------
3 files changed, 18 insertions(+), 18 deletions(-)
diffs (74 lines):
diff -r 9177d2b94ca1 -r a1ebfb62ce5b devel/py-requests/Makefile
--- a/devel/py-requests/Makefile Fri Jun 19 20:40:11 2020 +0000
+++ b/devel/py-requests/Makefile Fri Jun 19 20:45:41 2020 +0000
@@ -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@localhost
-HOMEPAGE= http://python-requests.org/
+HOMEPAGE= https://requests.readthedocs.io/
COMMENT= HTTP library, written in Python, for human beings
LICENSE= apache-2.0
diff -r 9177d2b94ca1 -r a1ebfb62ce5b devel/py-requests/distinfo
--- a/devel/py-requests/distinfo Fri Jun 19 20:40:11 2020 +0000
+++ b/devel/py-requests/distinfo Fri Jun 19 20:45:41 2020 +0000
@@ -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 -r 9177d2b94ca1 -r a1ebfb62ce5b devel/py-requests/patches/patch-requests_____init____.py
--- a/devel/py-requests/patches/patch-requests_____init____.py Fri Jun 19 20:40:11 2020 +0000
+++ b/devel/py-requests/patches/patch-requests_____init____.py Fri Jun 19 20:45:41 2020 +0000
@@ -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 @@
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 @@
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
Home |
Main Index |
Thread Index |
Old Index