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: update to 2.28.1.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/912a3567e853
branches:  trunk
changeset: 381608:912a3567e853
user:      wiz <wiz%pkgsrc.org@localhost>
date:      Sun Jul 10 20:09:56 2022 +0000

description:
py-requests: update to 2.28.1.

Fixes PR 56915.

2.28.1 (2022-06-29)
-------------------

**Improvements**

- Speed optimization in `iter_content` with transition to `yield from`. (#6170)

**Dependencies**

- Added support for chardet 5.0.0 (#6179)
- Added support for charset-normalizer 2.1.0 (#6169)

2.28.0 (2022-06-09)
-------------------

**Deprecations**

- ⚠️ Requests has officially dropped support for Python 2.7. ⚠️ (#6091)
- Requests has officially dropped support for Python 3.6 (including pypy3.6). (#6091)

**Improvements**

- Wrap JSON parsing issues in Request's JSONDecodeError for payloads without
  an encoding to make `json()` API consistent. (#6097)
- Parse header components consistently, raising an InvalidHeader error in
  all invalid cases. (#6154)
- Added provisional 3.11 support with current beta build. (#6155)
- Requests got a makeover and we decided to paint it black. (#6095)

**Bugfixes**

- Fixed bug where setting `CURL_CA_BUNDLE` to an empty string would disable
  cert verification. All Requests 2.x versions before 2.28.0 are affected. (#6074)
- Fixed urllib3 exception leak, wrapping `urllib3.exceptions.SSLError` with
  `requests.exceptions.SSLError` for `content` and `iter_content`. (#6057)
- Fixed issue where invalid Windows registry entires caused proxy resolution
  to raise an exception rather than ignoring the entry. (#6149)
- Fixed issue where entire payload could be included in the error message for
  JSONDecodeError. (#6036)

diffstat:

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

diffs (117 lines):

diff -r 5fe167c58c9c -r 912a3567e853 devel/py-requests/Makefile
--- a/devel/py-requests/Makefile        Sun Jul 10 20:02:02 2022 +0000
+++ b/devel/py-requests/Makefile        Sun Jul 10 20:09:56 2022 +0000
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.54 2022/07/03 12:13:07 wiz Exp $
+# $NetBSD: Makefile,v 1.55 2022/07/10 20:09:56 wiz Exp $
 
-DISTNAME=      requests-2.27.1
+DISTNAME=      requests-2.28.1
 PKGNAME=       ${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=    devel www python
 MASTER_SITES=  ${MASTER_SITE_PYPI:=r/requests/}
@@ -10,31 +10,27 @@
 COMMENT=       HTTP library, written in Python, for human beings
 LICENSE=       apache-2.0
 
+DEPENDS+=      ${PYPKGPREFIX}-cryptography-[0-9]*:../../security/py-cryptography
 DEPENDS+=      ${PYPKGPREFIX}-certifi>=2017.4.17:../../security/py-certifi
+DEPENDS+=      ${PYPKGPREFIX}-charset-normalizer>=2:../../converters/py-charset-normalizer
 DEPENDS+=      ${PYPKGPREFIX}-idna>=2.5:../../www/py-idna
 DEPENDS+=      ${PYPKGPREFIX}-urllib3>=1.21.1:../../www/py-urllib3
 TEST_DEPENDS+= ${PYPKGPREFIX}-Socks>=1.5.8:../../net/py-Socks
+TEST_DEPENDS+= ${PYPKGPREFIX}-test>=3:../../devel/py-test
 TEST_DEPENDS+= ${PYPKGPREFIX}-test-cov-[0-9]*:../../devel/py-test-cov
-TEST_DEPENDS+= ${PYPKGPREFIX}-test-httpbin-[0-9]*:../../www/py-test-httpbin
+TEST_DEPENDS+= ${PYPKGPREFIX}-test-httpbin>=0.0.7:../../www/py-test-httpbin
 TEST_DEPENDS+= ${PYPKGPREFIX}-test-mock-[0-9]*:../../devel/py-test-mock
 TEST_DEPENDS+= ${PYPKGPREFIX}-test-xdist-[0-9]*:../../devel/py-test-xdist
+TEST_DEPENDS+= ${PYPKGPREFIX}-trustme-[0-9]*:../../security/py-trustme
 
-PYTHON_VERSIONED_DEPENDENCIES+=        test:test
-PYTHON_VERSIONED_DEPENDENCIES+=        cryptography
+PYTHON_VERSIONS_INCOMPATIBLE=  27
 
 USE_LANGUAGES=         # none
 REPLACE_PYTHON+=       requests/certs.py
 
-.include "../../lang/python/pyversion.mk"
-.if ${_PYTHON_VERSION} == 27
-DEPENDS+=      ${PYPKGPREFIX}-chardet>=3.0.2:../../converters/py-chardet4
-TEST_DEPENDS=  # none; py-test-httpbin is incompatible with py27
 do-test:
-.else
-DEPENDS+=      ${PYPKGPREFIX}-charset-normalizer>=2.0.0:../../converters/py-charset-normalizer
-.endif
+       cd ${WRKSRC} && ${SETENV} ${TEST_ENV} pytest-${PYVERSSUFFIX}
 
 .include "../../lang/python/application.mk"
 .include "../../lang/python/egg.mk"
-.include "../../lang/python/versioned_dependencies.mk"
 .include "../../mk/bsd.pkg.mk"
diff -r 5fe167c58c9c -r 912a3567e853 devel/py-requests/distinfo
--- a/devel/py-requests/distinfo        Sun Jul 10 20:02:02 2022 +0000
+++ b/devel/py-requests/distinfo        Sun Jul 10 20:09:56 2022 +0000
@@ -1,7 +1,6 @@
-$NetBSD: distinfo,v 1.43 2022/01/07 16:23:16 adam Exp $
+$NetBSD: distinfo,v 1.44 2022/07/10 20:09:56 wiz Exp $
 
-BLAKE2s (requests-2.27.1.tar.gz) = 4c64ba900706dfa6f21ec1780bb7169aed52804061cfe67f1bcd7cb01b92f4d5
-SHA512 (requests-2.27.1.tar.gz) = e51916abea8125254c5ee72c97e84a73e6981cab09961486873387522d2ce041ee3fe8fa2ff0b9bbe6707eefdc05145e9adcf127bcd999dea127acdfabd5312f
-Size (requests-2.27.1.tar.gz) = 106758 bytes
-SHA1 (patch-requests_____init____.py) = 9915c51b02dd62f5c961ab388422d6f18a1dbedc
-SHA1 (patch-setup.py) = 1b6ba462a0c3d6079f7d0fc738ba8000b6e892b4
+BLAKE2s (requests-2.28.1.tar.gz) = 15383c6cce96f85d3c00f95ac18718cccfc4d6d8e818ab0c89d2632ad8efacab
+SHA512 (requests-2.28.1.tar.gz) = c123ec07171c2c7c34e4173b97750adfa313b4312d91c0d58e4eb8750361604017e5b370c23ec886d2cbf704f9074ec5ad0fa9c2cd8e6f9521532adafff39d41
+Size (requests-2.28.1.tar.gz) = 109805 bytes
+SHA1 (patch-setup.py) = 644ec23fce2579cf26656ddb5518c788c3b6d61d
diff -r 5fe167c58c9c -r 912a3567e853 devel/py-requests/patches/patch-requests_____init____.py
--- a/devel/py-requests/patches/patch-requests_____init____.py  Sun Jul 10 20:02:02 2022 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,18 +0,0 @@
-$NetBSD: patch-requests_____init____.py,v 1.8 2020/12/18 08:22:39 adam Exp $
-
-* 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-12-16 17:43:25.000000000 +0000
-+++ requests/__init__.py
-@@ -99,7 +99,6 @@ try:
- 
-     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
diff -r 5fe167c58c9c -r 912a3567e853 devel/py-requests/patches/patch-setup.py
--- a/devel/py-requests/patches/patch-setup.py  Sun Jul 10 20:02:02 2022 +0000
+++ b/devel/py-requests/patches/patch-setup.py  Sun Jul 10 20:09:56 2022 +0000
@@ -1,15 +1,15 @@
-$NetBSD: patch-setup.py,v 1.9 2020/02/21 06:42:59 adam Exp $
+$NetBSD: patch-setup.py,v 1.10 2022/07/10 20:09:56 wiz Exp $
 
 Allow newer test dependencies.
 
---- setup.py.orig      2020-02-18 22:55:51.000000000 +0000
+--- setup.py.orig      2022-06-29 15:09:45.000000000 +0000
 +++ setup.py
-@@ -49,7 +49,7 @@ requires = [
- 
+@@ -65,7 +65,7 @@ requires = [
+     "certifi>=2017.4.17",
  ]
  test_requirements = [
--    'pytest-httpbin==0.0.7',
-+    'pytest-httpbin>=0.0.7',
-     'pytest-cov',
-     'pytest-mock',
-     'pytest-xdist',
+-    "pytest-httpbin==0.0.7",
++    "pytest-httpbin>=0.0.7",
+     "pytest-cov",
+     "pytest-mock",
+     "pytest-xdist",


Home | Main Index | Thread Index | Old Index