git: c146f5c2cb4b - main - devel/py-autoflake: Update to 2.1.1

From: Robert Clausecker <fuz_at_FreeBSD.org>
Date: Thu, 11 May 2023 23:26:29 UTC
The branch main has been updated by fuz:

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

commit c146f5c2cb4b5d5bd47f5ea5ed431385f83c36b9
Author:     Goran Mekić <meka@tilda.center>
AuthorDate: 2023-03-26 14:08:09 +0000
Commit:     Robert Clausecker <fuz@FreeBSD.org>
CommitDate: 2023-05-11 23:23:26 +0000

    devel/py-autoflake: Update to 2.1.1
    
    Migrate to pep517.
    
    PR:             271342
---
 devel/py-autoflake/Makefile | 13 +++++--------
 devel/py-autoflake/distinfo |  6 +++---
 2 files changed, 8 insertions(+), 11 deletions(-)

diff --git a/devel/py-autoflake/Makefile b/devel/py-autoflake/Makefile
index 840f2f573564..9fc9499d355d 100644
--- a/devel/py-autoflake/Makefile
+++ b/devel/py-autoflake/Makefile
@@ -1,5 +1,5 @@
 PORTNAME=	autoflake
-PORTVERSION=	1.3.1
+PORTVERSION=	2.1.1
 CATEGORIES=	devel python
 MASTER_SITES=	PYPI
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
@@ -11,17 +11,14 @@ WWW=		https://github.com/PyCQA/autoflake
 LICENSE=	MIT
 LICENSE_FILE=	${WRKSRC}/LICENSE
 
+BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}hatchling>=0:devel/py-hatchling@${PY_FLAVOR}
 RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}pyflakes>=1.1.0:devel/py-pyflakes@${PY_FLAVOR}
-TEST_DEPENDS=	${PYTHON_PKGNAMEPREFIX}pytest>0:devel/py-pytest@${PY_FLAVOR}
 
-USES=		python:3.6+
-USE_PYTHON=	autoplist concurrent distutils
+USES=		pytest python:3.6+ shebangfix
+USE_PYTHON=	autoplist pep517
 
-TEST_ENV=	PYTHONPATH=${WRKSRC}/src
+SHEBANG_FILES=	autoflake.py test_autoflake.py
 
 NO_ARCH=	yes
 
-do-test:
-	cd ${WRKSRC} && ${SETENV} ${TEST_ENV} ${PYTHON_CMD} -m pytest -v -rs -o addopts=
-
 .include <bsd.port.mk>
diff --git a/devel/py-autoflake/distinfo b/devel/py-autoflake/distinfo
index a4aea36e0574..127a3a853985 100644
--- a/devel/py-autoflake/distinfo
+++ b/devel/py-autoflake/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1584024731
-SHA256 (autoflake-1.3.1.tar.gz) = 680cb9dade101ed647488238ccb8b8bfb4369b53d58ba2c8cdf7d5d54e01f95b
-SIZE (autoflake-1.3.1.tar.gz) = 17443
+TIMESTAMP = 1683710144
+SHA256 (autoflake-2.1.1.tar.gz) = 75524b48d42d6537041d91f17573b8a98cb645642f9f05c7fcc68de10b1cade3
+SIZE (autoflake-2.1.1.tar.gz) = 26564