git: 355fc057d311 - main - www/py-httpx013: Fix build with py-chardet 4.0.0

Po-Chuan Hsieh sunpoet at FreeBSD.org
Thu Jun 10 14:49:02 UTC 2021


The branch main has been updated by sunpoet:

URL: https://cgit.FreeBSD.org/ports/commit/?id=355fc057d311fd9509653c34142aa26e5d00356e

commit 355fc057d311fd9509653c34142aa26e5d00356e
Author:     Po-Chuan Hsieh <sunpoet at FreeBSD.org>
AuthorDate: 2021-06-10 14:30:21 +0000
Commit:     Po-Chuan Hsieh <sunpoet at FreeBSD.org>
CommitDate: 2021-06-10 14:46:16 +0000

    www/py-httpx013: Fix build with py-chardet 4.0.0
    
    - Bump PORTREVISION for package change
---
 www/py-httpx013/Makefile             | 3 ++-
 www/py-httpx013/files/patch-setup.py | 8 ++++++--
 2 files changed, 8 insertions(+), 3 deletions(-)

diff --git a/www/py-httpx013/Makefile b/www/py-httpx013/Makefile
index a85d410ff89c..412bf666b825 100644
--- a/www/py-httpx013/Makefile
+++ b/www/py-httpx013/Makefile
@@ -2,6 +2,7 @@
 
 PORTNAME=	httpx
 PORTVERSION=	0.13.3
+PORTREVISION=	1
 CATEGORIES=	www python
 MASTER_SITES=	CHEESESHOP
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
@@ -14,7 +15,7 @@ LICENSE=	BSD3CLAUSE
 LICENSE_FILE=	${WRKSRC}/LICENSE.md
 
 RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}certifi>=0:security/py-certifi@${PY_FLAVOR} \
-		${PYTHON_PKGNAMEPREFIX}chardet>=3.0,1<4,1:textproc/py-chardet@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}chardet>=3.0,1:textproc/py-chardet@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}hstspreload>=0:www/py-hstspreload@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}httpcore>=0.9:www/py-httpcore@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}idna>=2.0<3:dns/py-idna@${PY_FLAVOR} \
diff --git a/www/py-httpx013/files/patch-setup.py b/www/py-httpx013/files/patch-setup.py
index a314abea292e..6346ee9dc13e 100644
--- a/www/py-httpx013/files/patch-setup.py
+++ b/www/py-httpx013/files/patch-setup.py
@@ -1,7 +1,11 @@
 --- setup.py.orig	2020-05-29 10:29:22 UTC
 +++ setup.py
-@@ -61,7 +61,7 @@ setup(
-         "chardet==3.*",
+@@ -58,10 +58,10 @@ setup(
+         "certifi",
+         "hstspreload",
+         "sniffio",
+-        "chardet==3.*",
++        "chardet>=3.0",
          "idna==2.*",
          "rfc3986>=1.3,<2",
 -        "httpcore==0.9.*",


More information about the dev-commits-ports-main mailing list