python-requests: bump to 2.33.1
authorAlexandru Ardelean <redacted>
Wed, 1 Apr 2026 15:25:48 +0000 (18:25 +0300)
committerAlexandru Ardelean <redacted>
Thu, 2 Apr 2026 16:23:54 +0000 (19:23 +0300)
Changes since 2.32.5:
- Security fix for CVE-2026-25645 in extract_zipped_paths utility
- Migrated to PEP 517 build system
- Added inline type hints throughout the library
- Fixed Content-Type header parsing for malformed values

Also add test.sh to verify core API imports and PreparedRequest.

Link: https://github.com/psf/requests/blob/main/HISTORY.md
Signed-off-by: Alexandru Ardelean <redacted>
lang/python/python-requests/Makefile
lang/python/python-requests/test.sh [new file with mode: 0644]

index a480ba697ec4484e940b9941117739beb97fa3dc..c5fc71bc96b2c370534cae8b232f3f0e7196df18 100644 (file)
@@ -8,7 +8,7 @@
 include $(TOPDIR)/rules.mk
 
 PKG_NAME:=python-requests
-PKG_VERSION:=2.32.5
+PKG_VERSION:=2.33.1
 PKG_RELEASE:=1
 
 PKG_MAINTAINER:=Josef Schlehofer <pepe.schlehofer@gmail.com>, Alexandru Ardelean <ardeleanalex@gmail.com>
@@ -17,7 +17,7 @@ PKG_LICENSE_FILES:=LICENSE
 PKG_CPE_ID:=cpe:/a:python:requests
 
 PYPI_NAME:=requests
-PKG_HASH:=dbba0bac56e100853db0ea71b82b4dfd5fe2bf6d3754a8893c3af500cec7d7cf
+PKG_HASH:=18817f8c57c6263968bc123d237e3b8b08ac046f5456bd1e307ee8f4250d3517
 
 HOST_BUILD_DEPENDS:= \
   python-chardet/host \
diff --git a/lang/python/python-requests/test.sh b/lang/python/python-requests/test.sh
new file mode 100644 (file)
index 0000000..1112a2f
--- /dev/null
@@ -0,0 +1,40 @@
+#!/bin/sh
+
+[ "$1" = python3-requests ] || exit 0
+
+python3 - << 'EOF'
+import requests
+
+# Verify version and key attributes
+assert requests.__version__
+
+# Verify core API is present
+assert hasattr(requests, 'get')
+assert hasattr(requests, 'post')
+assert hasattr(requests, 'put')
+assert hasattr(requests, 'delete')
+assert hasattr(requests, 'head')
+assert hasattr(requests, 'Session')
+assert hasattr(requests, 'Request')
+assert hasattr(requests, 'Response')
+assert hasattr(requests, 'PreparedRequest')
+
+# Test Session creation and basic functionality
+s = requests.Session()
+assert s is not None
+
+# Test that Request object can be created and prepared
+req = requests.Request('GET', 'http://example.com', headers={'User-Agent': 'test'})
+prepared = req.prepare()
+assert prepared.method == 'GET'
+assert prepared.url == 'http://example.com/'
+assert prepared.headers['User-Agent'] == 'test'
+
+# Test exceptions are importable
+from requests.exceptions import (
+    RequestException, ConnectionError, HTTPError, URLRequired,
+    TooManyRedirects, Timeout, ConnectTimeout, ReadTimeout
+)
+
+print("requests OK")
+EOF
git clone https://git.99rst.org/PROJECT