git: 3b59c89f701d - main - www/py-uvicorn: Update to 0.17.5

From: Po-Chuan Hsieh <sunpoet_at_FreeBSD.org>
Date: Mon, 07 Mar 2022 18:19:23 UTC
The branch main has been updated by sunpoet:

URL: https://cgit.FreeBSD.org/ports/commit/?id=3b59c89f701d0ee72aa4e8555ee71bbb47c12f98

commit 3b59c89f701d0ee72aa4e8555ee71bbb47c12f98
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2022-03-07 17:58:18 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2022-03-07 18:11:33 +0000

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

diff --git a/www/py-uvicorn/Makefile b/www/py-uvicorn/Makefile
index 27a1a51c19f7..e3c00be72e21 100644
--- a/www/py-uvicorn/Makefile
+++ b/www/py-uvicorn/Makefile
@@ -1,7 +1,7 @@
 # Created by: Po-Chuan Hsieh <sunpoet@FreeBSD.org>
 
 PORTNAME=	uvicorn
-PORTVERSION=	0.17.1
+PORTVERSION=	0.17.5
 CATEGORIES=	www python
 MASTER_SITES=	CHEESESHOP
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
@@ -15,7 +15,7 @@ LICENSE_FILE=	${WRKSRC}/LICENSE.md
 RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}asgiref>=3.4.0:www/py-asgiref@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}click>=7.0:devel/py-click@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}h11>=0.8:net/py-h11@${PY_FLAVOR} \
-		${PYTHON_PKGNAMEPREFIX}httptools>=0.2.0<0.4.0:www/py-httptools@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}httptools>=0.2.0<0.4.1:www/py-httptools@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}python-dotenv>=0.13:www/py-python-dotenv@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}yaml>=5.1:devel/py-yaml@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}uvloop>=0.14.0:devel/py-uvloop@${PY_FLAVOR} \
diff --git a/www/py-uvicorn/distinfo b/www/py-uvicorn/distinfo
index 0ae38c296882..7ff2938702b5 100644
--- a/www/py-uvicorn/distinfo
+++ b/www/py-uvicorn/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1643971146
-SHA256 (uvicorn-0.17.1.tar.gz) = dffbacb8cc25d924d68d231d2c478c4fe6727c36537d8de21e5de591b37afc41
-SIZE (uvicorn-0.17.1.tar.gz) = 39231
+TIMESTAMP = 1646058172
+SHA256 (uvicorn-0.17.5.tar.gz) = c04a9c069111489c324f427501b3840d306c6b91a77b00affc136a840a3f45f1
+SIZE (uvicorn-0.17.5.tar.gz) = 39547
diff --git a/www/py-uvicorn/files/patch-setup.py b/www/py-uvicorn/files/patch-setup.py
new file mode 100644
index 000000000000..cea05aa656b8
--- /dev/null
+++ b/www/py-uvicorn/files/patch-setup.py
@@ -0,0 +1,11 @@
+--- setup.py.orig	2022-02-16 12:54:46 UTC
++++ setup.py
+@@ -53,7 +53,7 @@ minimal_requirements = [
+ 
+ extra_requirements = [
+     "websockets>=10.0",
+-    "httptools>=0.2.0,<0.4.0",
++    "httptools>=0.2.0,<0.4.1",
+     "uvloop>=0.14.0,!=0.15.0,!=0.15.1; " + env_marker_cpython,
+     "colorama>=0.4;" + env_marker_win,
+     "watchgod>=0.6",