git: a8e804f77826 - main - databases/py-pgcli: Add SSHTUNNEL option
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 15 Aug 2024 11:55:03 UTC
The branch main has been updated by sunpoet:
URL: https://cgit.FreeBSD.org/ports/commit/?id=a8e804f77826c76b1a261311cf4c45ed8422cd8a
commit a8e804f77826c76b1a261311cf4c45ed8422cd8a
Author: Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2024-08-15 09:45:00 +0000
Commit: Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2024-08-15 10:55:33 +0000
databases/py-pgcli: Add SSHTUNNEL option
---
databases/py-pgcli/Makefile | 4 +++-
databases/py-pgcli/files/patch-setup.py | 11 +++++++++++
2 files changed, 14 insertions(+), 1 deletion(-)
diff --git a/databases/py-pgcli/Makefile b/databases/py-pgcli/Makefile
index 277b67c59e9f..e7058f492b59 100644
--- a/databases/py-pgcli/Makefile
+++ b/databases/py-pgcli/Makefile
@@ -33,9 +33,11 @@ USE_PYTHON= autoplist concurrent pep517 pytest
NO_ARCH= yes
PYTEST_BROKEN_TESTS= test_obfuscate_process_password
-OPTIONS_DEFINE= KEYRING
+OPTIONS_DEFINE= KEYRING SSHTUNNEL
KEYRING_DESC= keyring support
+SSHTUNNEL_DESC= SSH tunnel support
KEYRING_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}keyring>=12.2.0,1:security/py-keyring@${PY_FLAVOR}
+SSHTUNNEL_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}sshtunnel>=0:net/py-sshtunnel@${PY_FLAVOR}
.include <bsd.port.mk>
diff --git a/databases/py-pgcli/files/patch-setup.py b/databases/py-pgcli/files/patch-setup.py
new file mode 100644
index 000000000000..7ab0eab96497
--- /dev/null
+++ b/databases/py-pgcli/files/patch-setup.py
@@ -0,0 +1,11 @@
+--- setup.py.orig 2024-05-10 03:17:53 UTC
++++ setup.py
+@@ -44,7 +44,7 @@ setup(
+ ],
+ extras_require={
+ "keyring": ["keyring >= 12.2.0"],
+- "sshtunnel": ["sshtunnel >= 0.4.0"],
++ "sshtunnel": ["sshtunnel"],
+ },
+ python_requires=">=3.8",
+ entry_points="""