Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 30 Mar 2022 22:24:30 GMT
From:      Po-Chuan Hsieh <sunpoet@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: 7d35df119f11 - main - www/py-requests: Update to 2.27.1
Message-ID:  <202203302224.22UMOU4O065494@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by sunpoet:

URL: https://cgit.FreeBSD.org/ports/commit/?id=7d35df119f111cb4d74c8b29f9ce34541fc7feaa

commit 7d35df119f111cb4d74c8b29f9ce34541fc7feaa
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2022-03-30 22:07:22 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2022-03-30 22:21:21 +0000

    www/py-requests: Update to 2.27.1
    
    - Remove SECURITY option [1]
    - Upadte pkg-descr
    - Update WWW
    
    Changes:        https://github.com/psf/requests/releases
    Reference:      https://github.com/psf/requests/commit/f6c0619d892a41dcf84933810ffda89e9f6b10d4 [1]
---
 www/py-requests/Makefile                           | 12 +++----
 www/py-requests/distinfo                           |  6 ++--
 www/py-requests/files/patch-setup.py               | 11 -------
 .../files/patch-tests_test__requests.py            | 12 -------
 www/py-requests/pkg-descr                          | 37 +++++++++++-----------
 5 files changed, 26 insertions(+), 52 deletions(-)

diff --git a/www/py-requests/Makefile b/www/py-requests/Makefile
index 0f240f59bbfa..53943c2e152c 100644
--- a/www/py-requests/Makefile
+++ b/www/py-requests/Makefile
@@ -1,8 +1,7 @@
 # Created by: Olivier Duchateau <duchateau.olivier@gmail.com>
 
 PORTNAME=	requests
-PORTVERSION=	2.25.1
-PORTREVISION=	1
+PORTVERSION=	2.27.1
 CATEGORIES=	www python
 MASTER_SITES=	CHEESESHOP
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
@@ -14,7 +13,7 @@ LICENSE=	APACHE20
 LICENSE_FILE=	${WRKSRC}/LICENSE
 
 RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}certifi>=2017.4.17:security/py-certifi@${PY_FLAVOR} \
-		${PYTHON_PKGNAMEPREFIX}chardet>=3.0.2,1<5,1:textproc/py-chardet@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}charset-normalizer>=2.0.0<2.1:textproc/py-charset-normalizer@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}idna>=2.5<4:dns/py-idna@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}urllib3>=1.21.1,1<1.27,1:net/py-urllib3@${PY_FLAVOR}
 TEST_DEPENDS=	${PYTHON_PKGNAMEPREFIX}pysocks>=1.5.6:net/py-pysocks@${PY_FLAVOR} \
@@ -31,13 +30,10 @@ NO_ARCH=	yes
 
 CPE_VENDOR=	python
 
-OPTIONS_DEFINE=	SECURITY SOCKS
-OPTIONS_DEFAULT=SECURITY SOCKS
-SECURITY_DESC=	Extra security functionalities
+OPTIONS_DEFINE=	SOCKS
+OPTIONS_DEFAULT=SOCKS
 SOCKS_DESC=	Extra socks functionalities
 
-SECURITY_RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}cryptography>=1.3.4:security/py-cryptography@${PY_FLAVOR} \
-			${PYTHON_PKGNAMEPREFIX}openssl>=0.14:security/py-openssl@${PY_FLAVOR}
 SOCKS_RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}pysocks>=1.5.6:net/py-pysocks@${PY_FLAVOR}
 
 do-test:
diff --git a/www/py-requests/distinfo b/www/py-requests/distinfo
index 7787211fb0ff..f4003e24d89f 100644
--- a/www/py-requests/distinfo
+++ b/www/py-requests/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1609030585
-SHA256 (requests-2.25.1.tar.gz) = 27973dd4a904a4f13b263a19c866c13b92a39ed1c964655f025f3f8d3d75b804
-SIZE (requests-2.25.1.tar.gz) = 102161
+TIMESTAMP = 1648249002
+SHA256 (requests-2.27.1.tar.gz) = 68d7c56fd5a8999887728ef304a6d12edc7be74f1cfa47714fc8b414525c9a61
+SIZE (requests-2.27.1.tar.gz) = 106758
diff --git a/www/py-requests/files/patch-setup.py b/www/py-requests/files/patch-setup.py
deleted file mode 100644
index 601ce557a7df..000000000000
--- a/www/py-requests/files/patch-setup.py
+++ /dev/null
@@ -1,11 +0,0 @@
---- setup.py.orig	2020-12-16 17:43:25 UTC
-+++ setup.py
-@@ -43,7 +43,7 @@ packages = ['requests']
- 
- requires = [
-     'chardet>=3.0.2,<5',
--    'idna>=2.5,<3',
-+    'idna>=2.5,<4',
-     'urllib3>=1.21.1,<1.27',
-     'certifi>=2017.4.17'
- 
diff --git a/www/py-requests/files/patch-tests_test__requests.py b/www/py-requests/files/patch-tests_test__requests.py
deleted file mode 100644
index c29b374e559e..000000000000
--- a/www/py-requests/files/patch-tests_test__requests.py
+++ /dev/null
@@ -1,12 +0,0 @@
-# https://github.com/psf/requests/issues/5530
---- tests/test_requests.py.orig	2020-12-16 17:43:25 UTC
-+++ tests/test_requests.py
-@@ -838,7 +838,7 @@ class TestRequests:
-     def test_https_warnings(self, httpbin_secure, httpbin_ca_bundle):
-         """warnings are emitted with requests.get"""
-         if HAS_MODERN_SSL or HAS_PYOPENSSL:
--            warnings_expected = ('SubjectAltNameWarning', )
-+            warnings_expected = ()
-         else:
-             warnings_expected = ('SNIMissingWarning',
-                                  'InsecurePlatformWarning',
diff --git a/www/py-requests/pkg-descr b/www/py-requests/pkg-descr
index 38bd58eb30b8..f9c5e0c991b8 100644
--- a/www/py-requests/pkg-descr
+++ b/www/py-requests/pkg-descr
@@ -1,22 +1,23 @@
 Requests is an elegant and simple HTTP library for Python, built for human
 beings.
 
-Features:
+Beloved Features:
+- Requests is ready for today’s web.
+- Keep-Alive & Connection Pooling
+- International Domains and URLs
+- Sessions with Cookie Persistence
+- Browser-style SSL Verification
+- Automatic Content Decoding
+- Basic/Digest Authentication
+- Elegant Key/Value Cookies
+- Automatic Decompression
+- Unicode Response Bodies
+- HTTP(S) Proxy Support
+- Multipart File Uploads
+- Streaming Downloads
+- Connection Timeouts
+- Chunked Requests
+- .netrc Support
 
-  * Keep-Alive & Connection Pooling
-  * International Domains and URLs
-  * Sessions with Cookie Persistence
-  * Browser-style SSL Verification
-  * Automatic Content Decoding
-  * Basic/Digest Authentication
-  * Elegant Key/Value Cookies
-  * Automatic Decompression
-  * Unicode Response Bodies
-  * HTTP(S) Proxy Support
-  * Multipart File Uploads
-  * Streaming Downloads
-  * Connection Timeouts
-  * Chunked Requests
-  * .netrc Support
-
-WWW: https://docs.python-requests.org/en/master/
+WWW: https://docs.python-requests.org/en/latest/
+WWW: https://github.com/psf/requests



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202203302224.22UMOU4O065494>