git: 9f29f90e123e - main - www/py-httpx: Update to 0.21.3

From: Po-Chuan Hsieh <sunpoet_at_FreeBSD.org>
Date: Sun, 23 Jan 2022 19:28:55 UTC
The branch main has been updated by sunpoet:

URL: https://cgit.FreeBSD.org/ports/commit/?id=9f29f90e123ea7c898b66168023beb0706cf7859

commit 9f29f90e123ea7c898b66168023beb0706cf7859
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2022-01-23 18:21:18 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2022-01-23 19:07:47 +0000

    www/py-httpx: Update to 0.21.3
    
    - Allow build with py-rfc3986 2.0.0
    
    Changes:        https://github.com/encode/httpx/releases
---
 www/py-httpx/Makefile             |  4 ++--
 www/py-httpx/distinfo             |  6 +++---
 www/py-httpx/files/patch-setup.py | 11 +++++++++++
 3 files changed, 16 insertions(+), 5 deletions(-)

diff --git a/www/py-httpx/Makefile b/www/py-httpx/Makefile
index d1b57d1c0e06..98f386a50fc9 100644
--- a/www/py-httpx/Makefile
+++ b/www/py-httpx/Makefile
@@ -1,7 +1,7 @@
 # Created by: Po-Chuan Hsieh <sunpoet@FreeBSD.org>
 
 PORTNAME=	httpx
-PORTVERSION=	0.21.1
+PORTVERSION=	0.21.3
 CATEGORIES=	www python
 MASTER_SITES=	CHEESESHOP
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
@@ -16,7 +16,7 @@ RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}certifi>=0:security/py-certifi@${PY_FLAVOR}
 		${PYTHON_PKGNAMEPREFIX}charset-normalizer>=0:textproc/py-charset-normalizer@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}httpcore>=0.14.0<0.15.0:www/py-httpcore@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}idna>=0:dns/py-idna@${PY_FLAVOR} \
-		${PYTHON_PKGNAMEPREFIX}rfc3986>=1.3<2:www/py-rfc3986@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}rfc3986>=1.3:www/py-rfc3986@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}sniffio>=0:devel/py-sniffio@${PY_FLAVOR}
 
 USES=		python:3.7+
diff --git a/www/py-httpx/distinfo b/www/py-httpx/distinfo
index 0bd62c6b88fd..40e655763e7f 100644
--- a/www/py-httpx/distinfo
+++ b/www/py-httpx/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1637519910
-SHA256 (httpx-0.21.1.tar.gz) = 02af20df486b78892a614a7ccd4e4e86a5409ec4981ab0e422c579a887acad83
-SIZE (httpx-0.21.1.tar.gz) = 106006
+TIMESTAMP = 1642102369
+SHA256 (httpx-0.21.3.tar.gz) = 7a3eb67ef0b8abbd6d9402248ef2f84a76080fa1c839f8662e6eb385640e445a
+SIZE (httpx-0.21.3.tar.gz) = 106566
diff --git a/www/py-httpx/files/patch-setup.py b/www/py-httpx/files/patch-setup.py
new file mode 100644
index 000000000000..4398d78e3749
--- /dev/null
+++ b/www/py-httpx/files/patch-setup.py
@@ -0,0 +1,11 @@
+--- setup.py.orig	2022-01-06 14:37:19 UTC
++++ setup.py
+@@ -59,7 +59,7 @@ setup(
+         "certifi",
+         "charset_normalizer",
+         "sniffio",
+-        "rfc3986[idna2008]>=1.3,<2",
++        "rfc3986[idna2008]>=1.3",
+         "httpcore>=0.14.0,<0.15.0",
+         "async_generator; python_version < '3.7'"
+     ],