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.25.1



details:   https://anonhg.NetBSD.org/pkgsrc/rev/f99781549c61
branches:  trunk
changeset: 443616:f99781549c61
user:      adam <adam%pkgsrc.org@localhost>
date:      Fri Dec 18 08:22:39 2020 +0000

description:
py-requests: updated to 2.25.1

2.25.1 (2020-12-16)
-------------------

**Bugfixes**

- Requests now treats `application/json` as `utf8` by default. Resolving
  inconsistencies between `r.text` and `r.json` output.

**Dependencies**

- Requests now supports chardet v4.x.

diffstat:

 devel/py-requests/Makefile                               |   4 +-
 devel/py-requests/distinfo                               |  12 ++++----
 devel/py-requests/patches/patch-requests_____init____.py |  23 ++-------------
 3 files changed, 11 insertions(+), 28 deletions(-)

diffs (68 lines):

diff -r a0b840ed2eec -r f99781549c61 devel/py-requests/Makefile
--- a/devel/py-requests/Makefile        Fri Dec 18 08:19:28 2020 +0000
+++ b/devel/py-requests/Makefile        Fri Dec 18 08:22:39 2020 +0000
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.48 2020/11/12 10:29:43 adam Exp $
+# $NetBSD: Makefile,v 1.49 2020/12/18 08:22:39 adam Exp $
 
-DISTNAME=      requests-2.25.0
+DISTNAME=      requests-2.25.1
 PKGNAME=       ${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=    devel www python
 MASTER_SITES=  ${MASTER_SITE_PYPI:=r/requests/}
diff -r a0b840ed2eec -r f99781549c61 devel/py-requests/distinfo
--- a/devel/py-requests/distinfo        Fri Dec 18 08:19:28 2020 +0000
+++ b/devel/py-requests/distinfo        Fri Dec 18 08:22:39 2020 +0000
@@ -1,8 +1,8 @@
-$NetBSD: distinfo,v 1.38 2020/11/12 10:29:43 adam Exp $
+$NetBSD: distinfo,v 1.39 2020/12/18 08:22:39 adam Exp $
 
-SHA1 (requests-2.25.0.tar.gz) = 189fc6b728eec219b5e204d4edfd1d0e4dd4413a
-RMD160 (requests-2.25.0.tar.gz) = 30e19772064665ce08cbf12e037c20f514038e81
-SHA512 (requests-2.25.0.tar.gz) = dd13ccb6bcd95bdd31a414dba67e5a0914ff172ae6f5d255849837e8e2a7e404e3c02fc3d07e5ff6dc81c12d0fe56c3b83bc62bc377dd3f504b00b97b144db74
-Size (requests-2.25.0.tar.gz) = 101897 bytes
-SHA1 (patch-requests_____init____.py) = 4cffde1f6ca063cd7db4e3ccbfbbaee8e5012d85
+SHA1 (requests-2.25.1.tar.gz) = c447ce806a07c6ba3489afc72345e28ab4640aaa
+RMD160 (requests-2.25.1.tar.gz) = 4a8a60da9b3619a53bd5a74245e58123702ae7e6
+SHA512 (requests-2.25.1.tar.gz) = ca6b0a257b448a999cade0ae173c29cddc9cfffb319d16fc3d051d3e1cd77161536e3cab279b3cba59c60d29d7864a9281c1fa1f689ce48d3bce2ca9f1cd8d45
+Size (requests-2.25.1.tar.gz) = 102161 bytes
+SHA1 (patch-requests_____init____.py) = 9915c51b02dd62f5c961ab388422d6f18a1dbedc
 SHA1 (patch-setup.py) = 1b6ba462a0c3d6079f7d0fc738ba8000b6e892b4
diff -r a0b840ed2eec -r f99781549c61 devel/py-requests/patches/patch-requests_____init____.py
--- a/devel/py-requests/patches/patch-requests_____init____.py  Fri Dec 18 08:19:28 2020 +0000
+++ b/devel/py-requests/patches/patch-requests_____init____.py  Fri Dec 18 08:22:39 2020 +0000
@@ -1,31 +1,14 @@
-$NetBSD: patch-requests_____init____.py,v 1.7 2020/11/12 10:29:44 adam Exp $
+$NetBSD: patch-requests_____init____.py,v 1.8 2020/12/18 08:22:39 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
 
---- requests/__init__.py.orig  2020-11-11 19:58:49.000000000 +0000
+--- requests/__init__.py.orig  2020-12-16 17:43:25.000000000 +0000
 +++ requests/__init__.py
-@@ -60,15 +60,12 @@ def check_compatibility(urllib3_version,
-     # urllib3 >= 1.21.1, <= 1.26
-     assert major == 1
-     assert minor >= 21
--    assert minor <= 26
- 
-     # 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):
-@@ -101,7 +98,6 @@ try:
+@@ -99,7 +99,6 @@ try:
  
      if not getattr(ssl, "HAS_SNI", False):
          from urllib3.contrib import pyopenssl



Home | Main Index | Thread Index | Old Index