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:           Fri May 24 16:44:07 UTC 2024

Modified Files:
        pkgsrc/devel/py-requests: Makefile PLIST distinfo

Log Message:
py-requests: updated to 2.32.2

2.32.2 (2024-05-21)
-------------------

**Deprecations**
- To provide a more stable migration for custom HTTPAdapters impacted
  by the CVE changes in 2.32.0, we've renamed `_get_connection` to
  a new public API, `get_connection_with_tls_context`. Existing custom
  HTTPAdapters will need to migrate their code to use this new API.
  `get_connection` is considered deprecated in all versions of Requests>=2.32.0.

  A minimal (2-line) example has been provided in the linked PR to ease
  migration, but we strongly urge users to evaluate if their custom adapter
  is subject to the same issue described in CVE-2024-35195.

2.32.1 (2024-05-20)
-------------------

**Bugfixes**
- Add missing test certs to the sdist distributed on PyPI.

2.32.0 (2024-05-20)
-------------------

**Security**
- Fixed an issue where setting `verify=False` on the first request from a
  Session will cause subsequent requests to the _same origin_ to also ignore
  cert verification, regardless of the value of `verify`.
  (https://github.com/psf/requests/security/advisories/GHSA-9wx4-h78v-vm56)

**Improvements**
- `verify=True` now reuses a global SSLContext which should improve
  request time variance between first and subsequent requests. It should
  also minimize certificate load time on Windows systems when using a Python
  version built with OpenSSL 3.x.
- Requests now supports optional use of character detection
  (`chardet` or `charset_normalizer`) when repackaged or vendored.
  This enables `pip` and other projects to minimize their vendoring
  surface area. The `Response.text()` and `apparent_encoding` APIs
  will default to `utf-8` if neither library is present.

**Bugfixes**
- Fixed bug in length detection where emoji length was incorrectly
  calculated in the request content-length.
- Fixed deserialization bug in JSONDecodeError.
- Fixed bug where an extra leading `/` (path separator) could lead
  urllib3 to unnecessarily reparse the request URI.

**Deprecations**

- Requests has officially added support for CPython 3.12
- Requests has officially added support for PyPy 3.9 and 3.10
- Requests has officially dropped support for CPython 3.7
- Requests has officially dropped support for PyPy 3.7 and 3.8

**Documentation**
- Various typo fixes and doc improvements.

**Packaging**
- Requests has started adopting some modern packaging practices.
  The source files for the projects (formerly `requests`) is now located
  in `src/requests` in the Requests sdist.
- Starting in Requests 2.33.0, Requests will migrate to a PEP 517 build system
  using `hatchling`. This should not impact the average user, but extremely old
  versions of packaging utilities may have issues with the new packaging format.


To generate a diff of this commit:
cvs rdiff -u -r1.61 -r1.62 pkgsrc/devel/py-requests/Makefile
cvs rdiff -u -r1.12 -r1.13 pkgsrc/devel/py-requests/PLIST
cvs rdiff -u -r1.49 -r1.50 pkgsrc/devel/py-requests/distinfo

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.61 pkgsrc/devel/py-requests/Makefile:1.62
--- pkgsrc/devel/py-requests/Makefile:1.61      Fri May 26 19:42:57 2023
+++ pkgsrc/devel/py-requests/Makefile   Fri May 24 16:44:07 2024
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.61 2023/05/26 19:42:57 adam Exp $
+# $NetBSD: Makefile,v 1.62 2024/05/24 16:44:07 adam Exp $
 
-DISTNAME=      requests-2.31.0
+DISTNAME=      requests-2.32.2
 PKGNAME=       ${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=    devel www python
 MASTER_SITES=  ${MASTER_SITE_PYPI:=r/requests/}
@@ -10,6 +10,8 @@ HOMEPAGE=     https://requests.readthedocs.i
 COMMENT=       HTTP library, written in Python, for human beings
 LICENSE=       apache-2.0
 
+TOOL_DEPENDS+= ${PYPKGPREFIX}-setuptools-[0-9]*:../../devel/py-setuptools
+TOOL_DEPENDS+= ${PYPKGPREFIX}-wheel-[0-9]*:../../devel/py-wheel
 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
@@ -19,20 +21,16 @@ TEST_DEPENDS+=      ${PYPKGPREFIX}-test-cov-[
 TEST_DEPENDS+= ${PYPKGPREFIX}-test-httpbin>=2.0.0:../../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}-test>=3:../../devel/py-test
 TEST_DEPENDS+= ${PYPKGPREFIX}-trustme-[0-9]*:../../security/py-trustme
 
-PYTHON_VERSIONED_DEPENDENCIES+=        cryptography
-
-PYTHON_VERSIONS_INCOMPATIBLE=  27
-
 USE_LANGUAGES=         # none
 REPLACE_PYTHON+=       requests/certs.py
 
-do-test:
-       cd ${WRKSRC} && ${SETENV} ${TEST_ENV} pytest-${PYVERSSUFFIX} tests
+PYTHON_VERSIONED_DEPENDENCIES+=        cryptography
+
+PYTHON_VERSIONS_INCOMPATIBLE=  27
 
 .include "../../lang/python/application.mk"
-.include "../../lang/python/egg.mk"
+.include "../../lang/python/wheel.mk"
 .include "../../lang/python/versioned_dependencies.mk"
 .include "../../mk/bsd.pkg.mk"

Index: pkgsrc/devel/py-requests/PLIST
diff -u pkgsrc/devel/py-requests/PLIST:1.12 pkgsrc/devel/py-requests/PLIST:1.13
--- pkgsrc/devel/py-requests/PLIST:1.12 Mon May 29 10:43:42 2017
+++ pkgsrc/devel/py-requests/PLIST      Fri May 24 16:44:07 2024
@@ -1,10 +1,9 @@
-@comment $NetBSD: PLIST,v 1.12 2017/05/29 10:43:42 adam Exp $
-${PYSITELIB}/${EGG_INFODIR}/PKG-INFO
-${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt
-${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt
-${PYSITELIB}/${EGG_INFODIR}/not-zip-safe
-${PYSITELIB}/${EGG_INFODIR}/requires.txt
-${PYSITELIB}/${EGG_INFODIR}/top_level.txt
+@comment $NetBSD: PLIST,v 1.13 2024/05/24 16:44:07 adam Exp $
+${PYSITELIB}/${WHEEL_INFODIR}/LICENSE
+${PYSITELIB}/${WHEEL_INFODIR}/METADATA
+${PYSITELIB}/${WHEEL_INFODIR}/RECORD
+${PYSITELIB}/${WHEEL_INFODIR}/WHEEL
+${PYSITELIB}/${WHEEL_INFODIR}/top_level.txt
 ${PYSITELIB}/requests/__init__.py
 ${PYSITELIB}/requests/__init__.pyc
 ${PYSITELIB}/requests/__init__.pyo

Index: pkgsrc/devel/py-requests/distinfo
diff -u pkgsrc/devel/py-requests/distinfo:1.49 pkgsrc/devel/py-requests/distinfo:1.50
--- pkgsrc/devel/py-requests/distinfo:1.49      Fri May 26 19:42:57 2023
+++ pkgsrc/devel/py-requests/distinfo   Fri May 24 16:44:07 2024
@@ -1,5 +1,5 @@
-$NetBSD: distinfo,v 1.49 2023/05/26 19:42:57 adam Exp $
+$NetBSD: distinfo,v 1.50 2024/05/24 16:44:07 adam Exp $
 
-BLAKE2s (requests-2.31.0.tar.gz) = 860cbb87ba43dd7244f420c4b38e6a8453335b9101286fc246a718ef9c222c94
-SHA512 (requests-2.31.0.tar.gz) = ce50d64973752f4cf7f7c7c91401669854b55c66d7465bea3689772fae8a6b646cf6720d84a2984bbe6fd78fc8b9ce0aa377f291fb6d7c20c7c2a4be8193acdd
-Size (requests-2.31.0.tar.gz) = 110794 bytes
+BLAKE2s (requests-2.32.2.tar.gz) = 55ffa05c4e1d1667cdecf5bef6bd3c9a4a8db51dfb265b31e676733d35d1348a
+SHA512 (requests-2.32.2.tar.gz) = 6f85e41f30d8bdf8d3343092d7fc163342c22c21cf0490eabd65cb66b59a464fbd6a4cd28f1f3ab1eac636adff2a8d55ded54c40351df93deafeb2aba62bcbde
+Size (requests-2.32.2.tar.gz) = 130327 bytes



Home | Main Index | Thread Index | Old Index