git: d71d9cdc6580 - main - net/py-python-glanceclient: Allow build with py-warlock 2.0.0+

From: Po-Chuan Hsieh <sunpoet_at_FreeBSD.org>
Date: Tue, 21 Jun 2022 16:37:30 UTC
The branch main has been updated by sunpoet:

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

commit d71d9cdc6580c4858c1afd5898439773fb141dd6
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2022-06-21 16:33:10 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2022-06-21 16:36:23 +0000

    net/py-python-glanceclient: Allow build with py-warlock 2.0.0+
    
    - Bump PORTREVISION for package change
---
 net/py-python-glanceclient/Makefile                     |  3 ++-
 net/py-python-glanceclient/files/patch-requirements.txt | 11 +++++++++++
 2 files changed, 13 insertions(+), 1 deletion(-)

diff --git a/net/py-python-glanceclient/Makefile b/net/py-python-glanceclient/Makefile
index b3c2700291c1..d394013a8cd2 100644
--- a/net/py-python-glanceclient/Makefile
+++ b/net/py-python-glanceclient/Makefile
@@ -2,6 +2,7 @@
 
 PORTNAME=	python-glanceclient
 PORTVERSION=	4.0.0
+PORTREVISION=	1
 CATEGORIES=	net python
 MASTER_SITES=	CHEESESHOP
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
@@ -20,7 +21,7 @@ RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}keystoneauth1>=3.6.2:devel/py-keystoneauth1@
 		${PYTHON_PKGNAMEPREFIX}prettytable0>=0.7.1:devel/py-prettytable0@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}openssl>=17.1.0:security/py-openssl@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}requests>=2.14.2:www/py-requests@${PY_FLAVOR} \
-		${PYTHON_PKGNAMEPREFIX}warlock>=1.2.0<2:devel/py-warlock@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}warlock>=1.2.0:devel/py-warlock@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}wrapt>=1.7.0:devel/py-wrapt@${PY_FLAVOR}
 
 USES=		python:3.8+
diff --git a/net/py-python-glanceclient/files/patch-requirements.txt b/net/py-python-glanceclient/files/patch-requirements.txt
new file mode 100644
index 000000000000..1473051fd8b1
--- /dev/null
+++ b/net/py-python-glanceclient/files/patch-requirements.txt
@@ -0,0 +1,11 @@
+--- requirements.txt.orig	2022-05-20 20:34:02 UTC
++++ requirements.txt
+@@ -5,7 +5,7 @@ pbr!=2.1.0,>=2.0.0 # Apache-2.0
+ PrettyTable>=0.7.1 # BSD
+ keystoneauth1>=3.6.2 # Apache-2.0
+ requests>=2.14.2 # Apache-2.0
+-warlock<2,>=1.2.0 # Apache-2.0
++warlock>=1.2.0 # Apache-2.0
+ oslo.utils>=3.33.0 # Apache-2.0
+ oslo.i18n>=3.15.3 # Apache-2.0
+ wrapt>=1.7.0 # BSD License