git: dac1d0517f75 - main - databases/py-mycli: Convert to USE_PYTHON=pep517

From: Po-Chuan Hsieh <sunpoet_at_FreeBSD.org>
Date: Sat, 23 Mar 2024 15:00:01 UTC
The branch main has been updated by sunpoet:

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

commit dac1d0517f75ed0c1d04ae3e0d42ab81ae65933f
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2024-03-23 14:20:42 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2024-03-23 14:31:05 +0000

    databases/py-mycli: Convert to USE_PYTHON=pep517
    
    - Bump PORTREVISION for package change
---
 databases/py-mycli/Makefile             | 5 ++++-
 databases/py-mycli/files/patch-setup.py | 2 +-
 2 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/databases/py-mycli/Makefile b/databases/py-mycli/Makefile
index 8aaeba14f112..671e2574eef8 100644
--- a/databases/py-mycli/Makefile
+++ b/databases/py-mycli/Makefile
@@ -1,5 +1,6 @@
 PORTNAME=	mycli
 PORTVERSION=	1.27.0
+PORTREVISION=	1
 CATEGORIES=	databases python
 MASTER_SITES=	PYPI
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
@@ -12,6 +13,8 @@ WWW=		https://www.mycli.net/ \
 LICENSE=	BSD3CLAUSE
 LICENSE_FILE=	${WRKSRC}/LICENSE.txt
 
+BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}setuptools>=0:devel/py-setuptools@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}wheel>=0:devel/py-wheel@${PY_FLAVOR}
 RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}cli-helpers>=2.2.1:devel/py-cli-helpers@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}click>=7.0:devel/py-click@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}configobj>=5.0.5:devel/py-configobj@${PY_FLAVOR} \
@@ -24,7 +27,7 @@ RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}cli-helpers>=2.2.1:devel/py-cli-helpers@${PY
 		${PYTHON_PKGNAMEPREFIX}sqlparse>=0.3.0<0.5.0:databases/py-sqlparse@${PY_FLAVOR}
 
 USES=		mysql python
-USE_PYTHON=	autoplist concurrent cryptography distutils
+USE_PYTHON=	autoplist concurrent cryptography pep517
 
 NO_ARCH=	yes
 
diff --git a/databases/py-mycli/files/patch-setup.py b/databases/py-mycli/files/patch-setup.py
index e118b80e0057..b71c7d8df55a 100644
--- a/databases/py-mycli/files/patch-setup.py
+++ b/databases/py-mycli/files/patch-setup.py
@@ -5,7 +5,7 @@
      # Temporary to suppress paramiko Blowfish warning which breaks CI.
      # Pinning cryptography should not be needed after paramiko 2.11.0.
 -    'cryptography == 36.0.2',
-+    'cryptography >= 1.0.0',
++    'cryptography >= 36.0.2',
      # 'Pygments>=1.6,<=2.11.1',
      'Pygments>=1.6',
      'prompt_toolkit>=3.0.6,<4.0.0',