git: b8f22bc454cf - main - www/py-bleach: Allow build with py-tinycss2 1.2.0+

From: Po-Chuan Hsieh <sunpoet_at_FreeBSD.org>
Date: Fri, 30 Dec 2022 09:12:56 UTC
The branch main has been updated by sunpoet:

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

commit b8f22bc454cf2b8f176c9fe9a16e721cdab3d993
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2022-12-30 08:46:09 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2022-12-30 09:05:10 +0000

    www/py-bleach: Allow build with py-tinycss2 1.2.0+
    
    - Bump PORTREVISION for package change
---
 www/py-bleach/Makefile             |  3 ++-
 www/py-bleach/files/patch-setup.py | 11 +++++++++++
 2 files changed, 13 insertions(+), 1 deletion(-)

diff --git a/www/py-bleach/Makefile b/www/py-bleach/Makefile
index 7d3999d866c6..dd7ab628df5d 100644
--- a/www/py-bleach/Makefile
+++ b/www/py-bleach/Makefile
@@ -1,5 +1,6 @@
 PORTNAME=	bleach
 PORTVERSION=	5.0.1
+PORTREVISION=	1
 CATEGORIES=	www python
 MASTER_SITES=	CHEESESHOP
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
@@ -26,6 +27,6 @@ OPTIONS_DEFINE=	CSS
 OPTIONS_DEFAULT=CSS
 CSS_DESC=	CSS support
 
-CSS_RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}tinycss2>=1.1.0<1.2:textproc/py-tinycss2@${PY_FLAVOR}
+CSS_RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}tinycss2>=1.1.0<1.3:textproc/py-tinycss2@${PY_FLAVOR}
 
 .include <bsd.port.mk>
diff --git a/www/py-bleach/files/patch-setup.py b/www/py-bleach/files/patch-setup.py
new file mode 100644
index 000000000000..2efabb826070
--- /dev/null
+++ b/www/py-bleach/files/patch-setup.py
@@ -0,0 +1,11 @@
+--- setup.py.orig	2022-06-27 14:39:19 UTC
++++ setup.py
+@@ -32,7 +32,7 @@ INSTALL_REQUIRES = [
+ 
+ EXTRAS_REQUIRE = {
+     "css": [
+-        "tinycss2>=1.1.0,<1.2",
++        "tinycss2>=1.1.0,<1.3",
+     ],
+     "dev": [
+         "black==22.3.0; implementation_name == 'cpython'",