git: 659ee0808735 - main - textproc/py-autopep8: Update to 2.0.1

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

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

commit 659ee08087355e4ecff6c1baad5ede8826e9fce8
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2023-01-30 12:44:37 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2023-01-30 13:02:17 +0000

    textproc/py-autopep8: Update to 2.0.1
    
    Changes:        https://github.com/hhatto/autopep8/releases
---
 textproc/py-autopep8/Makefile | 13 +++++++++----
 textproc/py-autopep8/distinfo |  6 +++---
 2 files changed, 12 insertions(+), 7 deletions(-)

diff --git a/textproc/py-autopep8/Makefile b/textproc/py-autopep8/Makefile
index ae61f8cde0fb..5424697d035a 100644
--- a/textproc/py-autopep8/Makefile
+++ b/textproc/py-autopep8/Makefile
@@ -1,5 +1,5 @@
 PORTNAME=	autopep8
-PORTVERSION=	2.0.0
+PORTVERSION=	2.0.1
 CATEGORIES=	textproc python
 MASTER_SITES=	PYPI
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
@@ -11,12 +11,17 @@ WWW=		https://github.com/hhatto/autopep8
 LICENSE=	MIT
 LICENSE_FILE=	${WRKSRC}/LICENSE
 
-RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}pycodestyle>=2.9.1:devel/py-pycodestyle@${PY_FLAVOR} \
-		${PYTHON_PKGNAMEPREFIX}tomli>=0:textproc/py-tomli@${PY_FLAVOR}
+RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}pycodestyle>=2.10.0:devel/py-pycodestyle@${PY_FLAVOR}
 
 USES=		python:3.6+
 USE_PYTHON=	autoplist concurrent distutils
 
 NO_ARCH=	yes
 
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${PYTHON_REL} < 31100
+RUN_DEPENDS+=	${PYTHON_PKGNAMEPREFIX}tomli>=0:textproc/py-tomli@${PY_FLAVOR}
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/textproc/py-autopep8/distinfo b/textproc/py-autopep8/distinfo
index a7d9718e7e2c..c61fd9c29a6d 100644
--- a/textproc/py-autopep8/distinfo
+++ b/textproc/py-autopep8/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1669058345
-SHA256 (autopep8-2.0.0.tar.gz) = 8b1659c7f003e693199f52caffdc06585bb0716900bbc6a7442fd931d658c077
-SIZE (autopep8-2.0.0.tar.gz) = 117507
+TIMESTAMP = 1674590826
+SHA256 (autopep8-2.0.1.tar.gz) = d27a8929d8dcd21c0f4b3859d2d07c6c25273727b98afc984c039df0f0d86566
+SIZE (autopep8-2.0.1.tar.gz) = 115905