git: ba4f577e7379 - main - devel/py-fabric: Allow build with py-invoke 2.0.0+

From: Po-Chuan Hsieh <sunpoet_at_FreeBSD.org>
Date: Mon, 30 Jan 2023 13:20:23 UTC
The branch main has been updated by sunpoet:

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

commit ba4f577e73799f02c8ceefd71c9bdaed4b3236c2
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2023-01-30 12:46:32 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2023-01-30 13:02:36 +0000

    devel/py-fabric: Allow build with py-invoke 2.0.0+
    
    - Bump PORTREVISION for package change
    
    Reference:      https://github.com/fabric/fabric/commit/22c02a1d3106414ac76993f0a2574494d1726a84
---
 devel/py-fabric/Makefile             |  3 ++-
 devel/py-fabric/files/patch-setup.py | 11 +++++++++++
 2 files changed, 13 insertions(+), 1 deletion(-)

diff --git a/devel/py-fabric/Makefile b/devel/py-fabric/Makefile
index 4e57929d9f01..df360560d241 100644
--- a/devel/py-fabric/Makefile
+++ b/devel/py-fabric/Makefile
@@ -1,5 +1,6 @@
 PORTNAME=	fabric
 PORTVERSION=	2.7.1
+PORTREVISION=	1
 PORTEPOCH=	1
 CATEGORIES=	devel python
 MASTER_SITES=	PYPI
@@ -12,7 +13,7 @@ WWW=		https://www.fabfile.org
 LICENSE=	BSD2CLAUSE
 LICENSE_FILE=	${WRKSRC}/LICENSE
 
-RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}invoke>=1.3,<2.0:devel/py-invoke@${PY_FLAVOR} \
+RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}invoke>=1.3:devel/py-invoke@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}paramiko>=2.4:security/py-paramiko@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}pathlib2>0:devel/py-pathlib2@${PY_FLAVOR}
 TEST_DEPENDS=	${PYTHON_PKGNAMEPREFIX}mock>=2.0.0:devel/py-mock@${PY_FLAVOR}
diff --git a/devel/py-fabric/files/patch-setup.py b/devel/py-fabric/files/patch-setup.py
new file mode 100644
index 000000000000..9b328a3a6d2a
--- /dev/null
+++ b/devel/py-fabric/files/patch-setup.py
@@ -0,0 +1,11 @@
+--- setup.py.orig	2022-07-14 22:37:01 UTC
++++ setup.py
+@@ -65,7 +65,7 @@ setuptools.setup(
+         "CI": "https://app.circleci.com/pipelines/github/fabric/fabric",
+         "Twitter": "https://twitter.com/pyfabric",
+     },
+-    install_requires=["invoke>=1.3,<2.0", "paramiko>=2.4", "pathlib2"],
++    install_requires=["invoke>=1.3", "paramiko>=2.4", "pathlib2"],
+     extras_require={
+         "testing": testing_deps,
+         "pytest": testing_deps + pytest_deps,